The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2022-2884

CVE-2022-2884: GitLab CE/EE RCE Vulnerability

CVE-2022-2884 is a remote code execution vulnerability in GitLab CE/EE that allows authenticated users to execute arbitrary code via the Import from GitHub API. This article covers technical details, affected versions, and mitigations.

Published: February 11, 2026

CVE-2022-2884 Overview

CVE-2022-2884 is a critical remote code execution (RCE) vulnerability affecting GitLab Community Edition (CE) and Enterprise Edition (EE). This vulnerability exists in the Import from GitHub API endpoint and allows authenticated users to execute arbitrary code on vulnerable GitLab servers. The flaw stems from improper input validation (CWE-78: OS Command Injection) in the GitHub import functionality, enabling attackers with valid credentials to compromise the underlying system.

Critical Impact

Authenticated attackers can achieve full remote code execution on GitLab servers, potentially compromising source code repositories, CI/CD pipelines, secrets, and the underlying infrastructure.

Affected Products

  • GitLab Community Edition (CE) versions 11.3.4 to 15.1.5
  • GitLab Enterprise Edition (EE) versions 11.3.4 to 15.1.5
  • GitLab CE/EE versions 15.2 to 15.2.3
  • GitLab CE/EE versions 15.3 to 15.3.1

Discovery Timeline

  • 2022-10-17 - CVE-2022-2884 published to NVD
  • 2025-05-14 - Last updated in NVD database

Technical Details for CVE-2022-2884

Vulnerability Analysis

This vulnerability is classified as an OS Command Injection flaw (CWE-78) that resides within GitLab's Import from GitHub API endpoint. The vulnerability allows authenticated users to inject malicious commands through the import functionality, which are then executed with the privileges of the GitLab application server.

The attack is network-accessible and requires low privilege authentication (a valid GitLab user account). No user interaction is required for exploitation. The scope is changed, meaning successful exploitation can affect resources beyond the vulnerable component itself, potentially compromising the entire GitLab infrastructure including connected CI/CD systems, container registries, and stored secrets.

Public exploit code is available through Packet Storm Security, and the vulnerability was initially reported through the HackerOne Bug Bounty Program.

Root Cause

The root cause of CVE-2022-2884 is improper input validation and sanitization in the GitHub import API endpoint. When processing import requests from GitHub, the application fails to adequately validate and sanitize user-controlled input before passing it to system command execution functions. This allows specially crafted input to break out of the intended context and execute arbitrary OS commands on the server.

Attack Vector

The attack vector is network-based, requiring an authenticated user to send specially crafted requests to the Import from GitHub API endpoint. The attacker must have valid credentials for a GitLab account with permissions to create projects and use the import functionality.

The exploitation flow involves:

  1. Authenticating to the GitLab instance with valid user credentials
  2. Crafting a malicious import request targeting the GitHub import API
  3. Injecting OS commands through vulnerable input parameters
  4. Commands execute with GitLab application server privileges

Detailed technical information and proof-of-concept exploit code can be found in the Packet Storm RCE Exploit and the GitLab Issue Discussion.

Detection Methods for CVE-2022-2884

Indicators of Compromise

  • Unusual or unexpected GitHub import API requests, particularly those with malformed or suspicious parameters
  • Unexpected processes spawned by GitLab application processes (Puma/Unicorn workers)
  • Suspicious outbound network connections originating from GitLab server processes
  • Anomalous file system modifications in GitLab installation directories
  • Unexpected user or project creation activity correlated with import operations

Detection Strategies

  • Monitor GitLab application logs for unusual Import from GitHub API activity, especially failed or malformed requests
  • Implement network-level monitoring for connections to GitLab's import API endpoints with suspicious payloads
  • Deploy endpoint detection and response (EDR) solutions to identify command injection patterns and unusual process execution chains
  • Review audit logs for import operations performed by unexpected users or at unusual times
  • Configure web application firewall (WAF) rules to detect command injection attempts in API requests

Monitoring Recommendations

  • Enable verbose logging for GitLab import operations and centralize logs for analysis
  • Set up alerts for process execution anomalies on GitLab servers, particularly shell spawning from application processes
  • Monitor for unauthorized access to sensitive files such as /etc/passwd, GitLab secrets, and configuration files
  • Track outbound connections from GitLab servers to unknown or suspicious IP addresses
  • Implement file integrity monitoring on critical GitLab directories and configuration files

How to Mitigate CVE-2022-2884

Immediate Actions Required

  • Upgrade GitLab CE/EE to version 15.1.5, 15.2.3, or 15.3.1 or later immediately
  • If immediate patching is not possible, disable the GitHub import feature through GitLab administration settings
  • Review audit logs for any suspicious import activity that may indicate prior exploitation
  • Restrict network access to GitLab instances to trusted networks only
  • Audit user accounts and remove unnecessary privileges, particularly import permissions

Patch Information

GitLab has released security patches addressing CVE-2022-2884 in the following versions:

  • GitLab 15.1.5 for the 15.1.x branch
  • GitLab 15.2.3 for the 15.2.x branch
  • GitLab 15.3.1 for the 15.3.x branch

Organizations should upgrade to the latest patched version appropriate for their deployment. Detailed patch information is available in the GitLab CVE Definition.

Workarounds

  • Disable the Import from GitHub feature in GitLab Admin settings until patching is complete
  • Restrict API access by implementing network-level controls or API gateway policies to limit access to the import endpoints
  • Implement additional authentication requirements for import operations, such as requiring admin approval
  • Use GitLab's built-in rate limiting to reduce the potential for automated exploitation attempts
  • Segment GitLab servers from critical infrastructure to limit lateral movement in case of compromise
bash
# Disable GitHub import feature via Rails console (temporary workaround)
# Access GitLab Rails console
sudo gitlab-rails console

# Disable the import feature
Feature.disable(:import_github)

# Verify the feature is disabled
Feature.enabled?(:import_github)
# Should return: false

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGitlab

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability73.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • Packet Storm RCE Exploit

  • GitLab CVE-2022-2884 Definition

  • GitLab Issue Discussion

  • HackerOne Report #1672388
  • 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-2023-1708: GitLab CE/EE RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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