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-2185

CVE-2022-2185: GitLab Project Import RCE Vulnerability

CVE-2022-2185 is a remote code execution vulnerability in GitLab that allows authenticated users to execute arbitrary code through malicious project imports. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-2185 Overview

A critical remote code execution vulnerability has been discovered in GitLab affecting all versions starting from 14.0 prior to 14.10.5, 15.0 prior to 15.0.4, and 15.1 prior to 15.1.1. This vulnerability allows an authenticated user authorized to import projects to import a maliciously crafted project, leading to remote code execution on the GitLab server. The flaw is classified as CWE-78 (OS Command Injection), enabling attackers to execute arbitrary system commands through the project import functionality.

Critical Impact

Authenticated attackers can achieve remote code execution on GitLab servers by importing a specially crafted project, potentially compromising the entire GitLab instance and any connected CI/CD pipelines.

Affected Products

  • GitLab Community Edition versions 14.0 to 14.10.4
  • GitLab Enterprise Edition versions 14.0 to 14.10.4
  • GitLab Community Edition versions 15.0 to 15.0.3
  • GitLab Enterprise Edition versions 15.0 to 15.0.3
  • GitLab Community Edition version 15.1.0
  • GitLab Enterprise Edition version 15.1.0

Discovery Timeline

  • 2022-07-01 - CVE-2022-2185 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-2185

Vulnerability Analysis

This vulnerability exists within GitLab's project import functionality and is classified as an OS Command Injection vulnerability (CWE-78). The flaw allows authenticated users with project import permissions to execute arbitrary commands on the underlying server by crafting a malicious project export file. When GitLab processes the import, insufficient sanitization of input data allows command injection through the import pipeline.

The vulnerability is particularly dangerous because it requires only low-privilege authenticated access—any user with the ability to import projects can potentially exploit this flaw. The attack can be executed remotely over the network without user interaction, and successful exploitation results in complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause of CVE-2022-2185 lies in improper input validation and sanitization within GitLab's project import processing logic. When handling project export files, the application fails to properly sanitize user-controlled data before passing it to system commands. This allows specially crafted project files to inject arbitrary OS commands that are then executed with the privileges of the GitLab application process.

Attack Vector

The attack requires an authenticated user account with permissions to import projects. The attacker creates a maliciously crafted project export file containing embedded command injection payloads. When this file is uploaded and processed through GitLab's project import feature, the injected commands are executed on the server.

The attack flow involves:

  1. Creating a specially crafted project export archive
  2. Embedding command injection payloads in project metadata or file contents
  3. Uploading the malicious export file via GitLab's project import functionality
  4. Triggering command execution during the import processing pipeline

For technical details on the exploitation mechanism, refer to the HackerOne Vulnerability Report and GitLab Issue Discussion.

Detection Methods for CVE-2022-2185

Indicators of Compromise

  • Unusual project import activities from user accounts, especially imports followed by suspicious server behavior
  • Unexpected child processes spawned by GitLab application processes (Puma, Sidekiq workers)
  • Anomalous network connections originating from GitLab server processes
  • Unusual file system modifications in GitLab directories or system locations
  • Evidence of command execution in GitLab application logs during import operations

Detection Strategies

  • Monitor GitLab audit logs for unusual project import activity patterns
  • Implement process monitoring on GitLab servers to detect unexpected command execution from GitLab processes
  • Review Sidekiq job logs for anomalies during project import jobs
  • Deploy endpoint detection solutions to identify suspicious process trees originating from GitLab services

Monitoring Recommendations

  • Enable comprehensive audit logging for all project import operations
  • Configure alerting for failed or suspicious import attempts
  • Monitor system resource utilization during import operations for anomalies
  • Implement network traffic analysis for unexpected outbound connections from GitLab servers

How to Mitigate CVE-2022-2185

Immediate Actions Required

  • Upgrade GitLab to version 14.10.5, 15.0.4, or 15.1.1 or later immediately
  • Review recent project import activity for signs of exploitation
  • Audit user accounts with project import permissions and restrict access where possible
  • Consider temporarily disabling project import functionality until patching is complete

Patch Information

GitLab has released security patches addressing this vulnerability. Organizations should upgrade to the following minimum versions:

  • GitLab 14.10.5 for installations on the 14.x branch
  • GitLab 15.0.4 for installations on the 15.0.x branch
  • GitLab 15.1.1 for installations on the 15.1.x branch

Refer to the GitLab CVE Detail for official patch information and security advisory details.

Workarounds

  • Restrict project import permissions to only trusted administrator accounts
  • Implement network segmentation to limit the impact of potential RCE
  • Deploy web application firewalls (WAF) with rules to detect malicious import payloads
  • Enable enhanced audit logging and monitoring for project import operations
bash
# Restrict project import permissions in GitLab settings
# Navigate to Admin Area > Settings > General > Visibility and access controls
# Disable or restrict "Project import sources" to limit exposure
# Alternatively, use GitLab Rails console to disable imports:
gitlab-rails console
# In console:
# ApplicationSetting.current.update!(import_sources: [])

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 Probability90.01%

  • 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-78
  • Technical References
  • GitLab Issue Discussion

  • HackerOne Vulnerability Report
  • Vendor Resources
  • GitLab CVE Detail
  • 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 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