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

CVE-2025-21613: Go-git RCE Vulnerability

CVE-2025-21613 is an argument injection RCE vulnerability in Go-git that allows attackers to set arbitrary values to git-upload-pack flags. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-21613 Overview

CVE-2025-21613 is a critical argument injection vulnerability discovered in go-git, a highly extensible Git implementation library written in pure Go. This vulnerability allows attackers to set arbitrary values to git-upload-pack flags when the file transport protocol is used, as this is the only protocol that shells out to Git binaries.

Critical Impact

Successful exploitation could allow attackers to inject arbitrary arguments into git-upload-pack commands, potentially leading to remote code execution or unauthorized repository access.

Affected Products

  • go-git versions prior to 5.13.0
  • Applications utilizing go-git with file transport protocol
  • Go-based Git clients and services leveraging the vulnerable library

Discovery Timeline

  • 2025-01-06 - CVE-2025-21613 published to NVD
  • 2025-04-17 - Last updated in NVD database

Technical Details for CVE-2025-21613

Vulnerability Analysis

This vulnerability falls under CWE-88 (Improper Neutralization of Argument Delimiters in a Command), commonly known as argument injection. The flaw exists in how go-git handles user-supplied input when constructing command-line arguments for the git-upload-pack binary.

When go-git uses the file transport protocol to interact with Git repositories, it spawns external Git processes. The vulnerability arises because user-controlled input is not properly sanitized before being passed as arguments to these processes. An attacker can craft malicious input containing argument delimiters that, when processed, inject additional flags into the git-upload-pack command execution.

The file transport protocol is specifically affected because it's the only transport mechanism in go-git that executes external Git binaries. Other transport protocols (HTTP, SSH) handle Git operations internally without shelling out to external commands.

Root Cause

The root cause is insufficient input validation and sanitization when constructing command-line arguments for external Git binary execution. The go-git library fails to properly escape or validate parameters before passing them to the shell, allowing specially crafted input to be interpreted as additional command-line arguments rather than data.

Attack Vector

The attack vector is network-based, requiring no user interaction or prior authentication. An attacker can exploit this vulnerability remotely by providing malicious input to applications using go-git's file transport protocol. The attack involves crafting repository URLs or references that contain embedded argument delimiters, causing the git-upload-pack command to receive attacker-controlled flags.

The exploitation path typically involves:

  1. Identifying an application using go-git with file transport enabled
  2. Crafting malicious input containing argument injection payloads
  3. Triggering a Git operation that causes go-git to shell out to git-upload-pack
  4. The injected arguments are executed with the privileges of the go-git process

For detailed technical analysis and proof-of-concept information, see the GitHub Security Advisory.

Detection Methods for CVE-2025-21613

Indicators of Compromise

  • Unusual command-line arguments in process logs for git-upload-pack executions
  • Unexpected Git operations or repository access patterns
  • Process execution logs showing injected flags in Git commands
  • Application logs indicating file transport protocol usage with suspicious inputs

Detection Strategies

  • Monitor process creation events for git-upload-pack with unusual or unexpected command-line arguments
  • Implement application-level logging for all Git operations using file transport protocol
  • Deploy endpoint detection rules to identify argument injection patterns in Git command executions
  • Audit go-git library versions in deployed applications and flag versions prior to 5.13.0

Monitoring Recommendations

  • Enable detailed logging for applications utilizing go-git library
  • Configure alerting for anomalous Git process executions with non-standard flags
  • Implement file integrity monitoring on Git binaries and related configuration files
  • Review and audit all input sources that could influence Git repository URLs or references

How to Mitigate CVE-2025-21613

Immediate Actions Required

  • Upgrade go-git to version 5.13.0 or later immediately
  • Audit all applications in your environment that depend on go-git library
  • If upgrading is not immediately possible, disable file transport protocol usage where feasible
  • Review application code for user-controlled input that flows into Git operations

Patch Information

The vulnerability is fixed in go-git version 5.13.0. Organizations should update their Go module dependencies to include the patched version. The fix addresses the argument injection by properly sanitizing and validating input before constructing command-line arguments for external Git processes.

For complete patch details and security guidance, refer to the GitHub Security Advisory GHSA-v725-9546-7q7m.

Workarounds

  • Disable file transport protocol and use alternative transport mechanisms (HTTP, SSH) where possible
  • Implement strict input validation at the application layer before passing data to go-git
  • Deploy network segmentation to limit exposure of vulnerable applications
  • Apply principle of least privilege to processes running go-git operations
bash
# Update go-git dependency to patched version
go get github.com/go-git/go-git/v5@v5.13.0

# Verify the updated version
go list -m github.com/go-git/go-git/v5

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGo Git

  • SeverityCRITICAL

  • CVSS Score9.2

  • EPSS Probability0.59%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Clear
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-88
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33762: Go-git Buffer Overflow Vulnerability

  • CVE-2025-21614: Go-git Library DOS 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