A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-9164

CVE-2024-9164: GitLab EE Pipeline RCE Vulnerability

CVE-2024-9164 is a remote code execution vulnerability in GitLab EE that allows attackers to run pipelines on arbitrary branches. This article covers technical details, affected versions, security impact, and mitigation.

Updated: May 15, 2026

CVE-2024-9164 Overview

CVE-2024-9164 is a high-severity authorization flaw in GitLab Enterprise Edition (EE). The vulnerability allows authenticated users to run continuous integration and continuous deployment (CI/CD) pipelines on arbitrary branches without proper access controls. The flaw affects all GitLab EE versions starting from 12.5 prior to 17.2.9, from 17.3 prior to 17.3.5, and from 17.4 prior to 17.4.2. The issue is classified under [CWE-306] Missing Authentication for Critical Function. Successful exploitation enables tampering with protected branches, injection of malicious code into build pipelines, and compromise of the software supply chain.

Critical Impact

Authenticated attackers can execute CI/CD pipelines against arbitrary branches, leading to code injection, secret exposure, and supply chain compromise across protected repositories.

Affected Products

  • GitLab Enterprise Edition versions 12.5 through 17.2.8
  • GitLab Enterprise Edition versions 17.3 through 17.3.4
  • GitLab Enterprise Edition versions 17.4 through 17.4.1

Discovery Timeline

  • 2024-10-11 - CVE-2024-9164 published to NVD
  • 2024-12-13 - Last updated in NVD database

Technical Details for CVE-2024-9164

Vulnerability Analysis

The vulnerability resides in GitLab EE's pipeline execution authorization logic. The platform fails to properly enforce branch-level permissions when initiating pipeline runs. Attackers with low-privilege accounts can trigger pipelines on branches they should not be authorized to execute against. This includes protected branches that typically house production code and sensitive deployment workflows.

The weakness maps to [CWE-306] Missing Authentication for Critical Function. GitLab pipelines often hold elevated permissions and access to CI/CD variables, deployment keys, and registry credentials. Running pipelines on arbitrary branches exposes these secrets and creates execution contexts under attacker-controlled configurations.

Root Cause

The root cause is incomplete authorization validation in the pipeline trigger workflow. GitLab does not verify that the requesting user holds developer or higher access on the target branch before queuing the pipeline. Branch protection rules and project membership boundaries are bypassed during pipeline scheduling, allowing unauthorized job execution.

Attack Vector

An authenticated user with minimal access to a GitLab project sends a pipeline creation request targeting an arbitrary branch. Because the platform skips the branch authorization check, the pipeline executes using the .gitlab-ci.yml configuration present on that branch. The attacker can extract CI/CD secrets, manipulate build artifacts, or deploy unauthorized code through automated workflows. Refer to GitLab Issue #493946 and HackerOne Report #2711204 for additional technical context.

Detection Methods for CVE-2024-9164

Indicators of Compromise

  • Pipeline executions initiated by users without explicit developer or maintainer roles on the target branch
  • Unexpected pipeline runs against protected branches outside normal merge request workflows
  • CI/CD job logs showing access to secrets or deployment credentials from low-privilege user contexts
  • Newly created or modified .gitlab-ci.yml files on feature branches followed by pipeline runs on protected branches

Detection Strategies

  • Audit the GitLab ci_pipelines table and correlate pipeline user_id with project membership and branch protection rules
  • Review GitLab audit events for pipeline_created actions targeting protected branches by non-privileged users
  • Monitor GitLab API access logs for POST /projects/:id/pipeline requests with unusual ref parameters
  • Compare pipeline trigger sources against expected merge request and scheduled pipeline patterns

Monitoring Recommendations

  • Forward GitLab audit logs and CI/CD job events to a centralized logging platform for retention and correlation
  • Configure alerts for pipeline executions on protected branches initiated outside merge request contexts
  • Track CI/CD variable access patterns and flag retrievals from pipelines triggered by low-privilege users
  • Establish a baseline of normal pipeline activity per project and alert on deviations

How to Mitigate CVE-2024-9164

Immediate Actions Required

  • Upgrade GitLab EE to version 17.2.9, 17.3.5, 17.4.2, or later as appropriate for your deployment
  • Rotate all CI/CD variables, deployment tokens, and registry credentials that may have been exposed
  • Audit recent pipeline executions for unauthorized runs against protected branches
  • Review project membership and remove unnecessary low-privilege accounts from sensitive repositories

Patch Information

GitLab released fixed versions 17.2.9, 17.3.5, and 17.4.2 that enforce branch-level authorization during pipeline creation. Self-managed GitLab administrators should apply the upgrade immediately. GitLab.com SaaS customers received the patch automatically. Consult the GitLab Issue #493946 tracker for upgrade guidance.

Workarounds

  • Restrict project membership to trusted users until the upgrade is completed
  • Disable CI/CD on critical projects temporarily if patching cannot be performed immediately
  • Remove sensitive CI/CD variables from project settings and rely on external secret managers with stricter access controls
  • Enforce protected branch settings and review pipeline trigger permissions for all production repositories
bash
# Verify GitLab version and upgrade on self-managed instances
sudo gitlab-rake gitlab:env:info | grep "GitLab information"

# Debian/Ubuntu upgrade example
sudo apt-get update
sudo apt-get install gitlab-ee=17.4.2-ee.0

# Restart GitLab services after upgrade
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGitlab

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-306

  • NVD-CWE-noinfo
  • Technical References
  • GitLab Issue #493946

  • HackerOne Report #2711204
  • Related CVEs
  • CVE-2026-1868: GitLab AI Gateway RCE Vulnerability

  • CVE-2025-13761: GitLab RCE Vulnerability

  • CVE-2021-22205: GitLab CE/EE RCE Vulnerability

  • CVE-2022-2884: GitLab CE/EE RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English