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-2025-2938

CVE-2025-2938: GitLab Privilege Escalation Vulnerability

CVE-2025-2938 is a privilege escalation vulnerability in GitLab CE/EE allowing authenticated users to gain elevated project privileges through access requests. This article covers technical details, affected versions, impact, and mitigation.

Published: June 2, 2026

CVE-2025-2938 Overview

CVE-2025-2938 is a privilege escalation vulnerability in GitLab Community Edition (CE) and Enterprise Edition (EE). The flaw affects all versions from 17.3 before 17.11.5, 18.0 before 18.0.3, and 18.1 before 18.1.1. Authenticated users could gain elevated project privileges by requesting access to projects when role modifications occurred during the approval process. The unintended permission grants resulted from a business logic flaw in how GitLab handled role changes during pending access requests. The issue is tracked under [CWE-840] (Business Logic Errors).

Critical Impact

Authenticated GitLab users could escalate their project privileges by exploiting race conditions and role-modification logic in the project access approval workflow, leading to high impact on confidentiality, integrity, and availability.

Affected Products

  • GitLab Community Edition (CE) versions 17.3 through 17.11.4
  • GitLab Enterprise Edition (EE) versions 18.0 through 18.0.2
  • GitLab CE/EE version 18.1.0

Discovery Timeline

  • 2025-06-26 - CVE-2025-2938 published to NVD
  • 2025-08-12 - Last updated in NVD database

Technical Details for CVE-2025-2938

Vulnerability Analysis

The vulnerability resides in GitLab's project access request approval workflow. When a user requests access to a project, GitLab queues the request for an authorized maintainer or owner to approve. The approval path assigns a role to the requesting user. The flaw occurs when role modifications take place during the approval process, granting permissions higher than intended. An authenticated attacker with a low-privilege GitLab account could request access to a target project and manipulate the timing or sequence of role changes to receive an elevated role such as Maintainer or Owner. The flaw enables a network-based attack with low complexity and only requires low privileges, with no user interaction beyond standard approval workflows.

Root Cause

The root cause is a business logic error [CWE-840] in the access request approval routine. GitLab did not adequately reconcile concurrent or interleaved role modifications against the role assigned during approval. The result is a state inconsistency that grants the requesting user a higher-privileged role than the approver intended to assign.

Attack Vector

The attack vector is network-based and requires an authenticated GitLab account with the ability to submit access requests. The attacker submits an access request to a project where role modification activity occurs during approval processing. Because the approval flow does not validate the final effective role against the intended role, the user receives elevated privileges. With Maintainer or Owner privileges, the attacker can read confidential source code, push malicious commits, modify CI/CD pipelines, exfiltrate secrets, or pivot through GitLab's runner infrastructure.

No verified proof-of-concept code is publicly available. Technical details are tracked in GitLab Issue #529006 and HackerOne Report #3063091.

Detection Methods for CVE-2025-2938

Indicators of Compromise

  • Unexpected role assignments on projects following recent request_access events in GitLab audit logs.
  • Members appearing with Maintainer or Owner access who were never explicitly granted those roles by a project administrator.
  • Rapid sequence of member_created and member_updated events for the same user within the access approval workflow.
  • Unusual CI/CD pipeline modifications or secret variable reads originating from newly added project members.

Detection Strategies

  • Query the GitLab audit log API for member_access_granted and member_role_updated events and correlate them with prior access_request events from the same user.
  • Compare assigned project roles against expected role baselines derived from group membership policies.
  • Alert on any non-administrator account that gains the Maintainer or Owner role on a project within a short window of submitting an access request.

Monitoring Recommendations

  • Forward GitLab audit events, Rails production logs, and API access logs to a centralized log platform for correlation and retention.
  • Track project membership changes against an approved baseline and flag any divergence for review.
  • Monitor CI/CD job activity from recently added project members for unusual secret access, runner usage, or push events to protected branches.

How to Mitigate CVE-2025-2938

Immediate Actions Required

  • Upgrade GitLab CE/EE to a fixed version: 17.11.5, 18.0.3, or 18.1.1 or later.
  • Audit all project memberships granted since deploying any affected GitLab version and revoke unauthorized elevated roles.
  • Rotate any CI/CD secrets, deploy tokens, and access tokens stored in projects where unauthorized role escalation may have occurred.
  • Review protected branch and pipeline configurations for unauthorized modifications.

Patch Information

GitLab addressed the vulnerability in versions 17.11.5, 18.0.3, and 18.1.1. Self-managed GitLab administrators should apply the upgrade through standard package management or the official Omnibus update process. GitLab.com is operated by GitLab Inc. and has received the fix on the SaaS platform. Refer to GitLab Issue #529006 for upstream fix details.

Workarounds

  • Restrict the ability to request project access by disabling the access request feature on sensitive projects until patching is complete.
  • Require manual administrator review of all newly granted project memberships during the exposure window.
  • Limit which user accounts can be granted Maintainer or Owner roles through group-level membership policies.
bash
# Verify GitLab version after upgrade
sudo gitlab-rake gitlab:env:info | grep "GitLab information" -A 5

# Disable project access requests via the API for a sensitive project
curl --request PUT --header "PRIVATE-TOKEN: <admin_token>" \
  "https://gitlab.example.com/api/v4/projects/<project_id>?request_access_enabled=false"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechGitlab

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.05%

  • 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-840

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

  • HackerOne Report #3063091
  • Related CVEs
  • CVE-2026-2601: GitLab Privilege Escalation Vulnerability

  • CVE-2026-6063: GitLab EE Privilege Escalation Vulnerability

  • CVE-2026-4916: GitLab Privilege Escalation Vulnerability

  • CVE-2026-1747: GitLab EE Privilege Escalation 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