Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2022-25912

CVE-2022-25912: Simple-git RCE Vulnerability

CVE-2022-25912 is a remote code execution flaw in Simple-git that allows attackers to execute arbitrary code via the clone() method. This article covers technical details, affected versions, impact, and mitigation.

Published: February 17, 2026

CVE-2022-25912 Overview

CVE-2022-25912 is a Remote Code Execution (RCE) vulnerability affecting the simple-git package for Node.js. The vulnerability exists in versions prior to 3.15.0 and can be exploited when the ext transport protocol is enabled, making it exploitable via the clone() method. This security flaw represents an incomplete fix of a previously disclosed vulnerability (CVE-2022-24066), highlighting the challenges of comprehensive security patching.

Critical Impact

Attackers can achieve remote code execution on systems using vulnerable versions of simple-git by exploiting the ext transport protocol through the clone() method, potentially leading to complete system compromise.

Affected Products

  • simple-git versions prior to 3.15.0 (Node.js)
  • Applications and services using simple-git as a dependency
  • Java applications via WebJars npm package (org.webjars.npm:simple-git)

Discovery Timeline

  • December 6, 2022 - CVE-2022-25912 published to NVD
  • April 22, 2025 - Last updated in NVD database

Technical Details for CVE-2022-25912

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The flaw resides in how the simple-git library handles the ext transport protocol. When this protocol is enabled, user-controlled input passed to the clone() method can be manipulated to inject and execute arbitrary system commands.

The vulnerability emerged as an incomplete remediation of CVE-2022-24066, indicating that the original patch did not fully address all attack vectors. This pattern of incomplete fixes often occurs when security researchers or developers fail to identify all potential exploitation paths during the initial remediation effort.

Root Cause

The root cause of this vulnerability stems from insufficient input validation and sanitization when processing git URLs with the ext transport protocol. The ext protocol in Git allows specifying an external command to be used for the connection, which creates an opportunity for command injection if not properly restricted.

When applications using simple-git accept user-provided repository URLs and pass them to the clone() method without adequate validation, attackers can craft malicious URLs that leverage the ext protocol to execute arbitrary commands on the underlying system. The original fix for CVE-2022-24066 failed to account for all possible input permutations that could bypass the sanitization logic.

Attack Vector

The attack leverages the network-accessible nature of the vulnerability. An attacker can exploit this flaw remotely without requiring any authentication or user interaction. The attack flow typically involves:

  1. An application using a vulnerable version of simple-git accepts a repository URL from an untrusted source
  2. The attacker provides a specially crafted URL utilizing the ext protocol
  3. When the clone() method processes this URL, the embedded commands are executed on the server
  4. The attacker achieves code execution with the privileges of the Node.js process

The security patches applied in version 3.15.0 included changes to configuration handling and protocol restrictions. Below is the relevant patch from the security fix:

text
-node_modules
+*.md
+.changeset
 dist
-CHANGELOG.md
+coverage
+node_modules

Source: GitHub Commit Update

Additional configuration changes were made to the project structure:

text
       "license": "MIT"
     }
   },
-  "ignoreChanges": [
-    "**/test/**",
-    "**/*.md"
-  ],
+  "ignoreChanges": ["**/test/**", "**/*.md"],
   "useWorkspaces": true,
   "version": "2.48.0"
 }

Source: GitHub Commit Update

Detection Methods for CVE-2022-25912

Indicators of Compromise

  • Unusual process spawning from Node.js applications, particularly git-related subprocesses with suspicious command-line arguments
  • Network connections to unexpected external hosts originating from applications using simple-git
  • Log entries showing git clone operations with ext:: protocol URLs
  • Unexpected file system modifications in directories accessible to Node.js processes

Detection Strategies

  • Implement software composition analysis (SCA) to identify vulnerable versions of simple-git in your dependency tree
  • Monitor application logs for git operations containing ext:: protocol references
  • Use runtime application self-protection (RASP) solutions to detect command injection attempts
  • Deploy network traffic analysis to identify suspicious git clone operations to untrusted repositories

Monitoring Recommendations

  • Enable verbose logging for applications using simple-git to capture all git operations
  • Implement alerting for any use of non-standard git protocols (ext, file, etc.)
  • Monitor system process trees for unexpected child processes spawned by Node.js applications
  • Audit npm package installations and updates to ensure vulnerable versions are not deployed

How to Mitigate CVE-2022-25912

Immediate Actions Required

  • Upgrade simple-git to version 3.15.0 or later immediately across all environments
  • Audit all applications using simple-git to identify potential exposure points
  • Review and restrict the protocols allowed by your simple-git configuration using the unsafe actions plugin
  • Implement input validation to reject any user-provided URLs containing the ext:: protocol prefix

Patch Information

The vulnerability is addressed in simple-git version 3.15.0. The fix implements proper restrictions on the ext transport protocol to prevent command injection through the clone() method. Organizations should update their package dependencies using their standard package management workflow. The patch commit can be reviewed at the GitHub Commit Update. Additional details about managing unsafe actions and protocol restrictions are available in the GitHub Plugin Unsafe Actions Guide.

Workarounds

  • Disable the ext transport protocol entirely if your application does not require it
  • Implement strict URL validation to only allow https:// and git:// protocols for clone operations
  • Use a proxy or gateway to sanitize git URLs before they reach the simple-git library
  • Run Node.js applications with minimal privileges to limit the impact of successful exploitation
bash
# Configuration example
# Update simple-git to the patched version
npm update simple-git@3.15.0

# Verify the installed version
npm list simple-git

# For yarn users
yarn upgrade simple-git@3.15.0

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSimple Git

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability43.30%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Plugin Unsafe Actions Guide

  • GitHub Release Notes v3.15.0
  • Vendor Resources
  • GitHub Commit Update

  • Snyk Java Vulnerability Database

  • Snyk JS Vulnerability Database
  • Related CVEs
  • CVE-2026-28291: simple-git RCE Vulnerability

  • CVE-2026-28292: Simple-git 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