Cyber Resilience

CVE-2025-21613

Go-Git Project Go-Git ≤ 5.13.0

Published
06 January 2025
Modified
17 April 2025
Patch / advisory
CVSS Score v4 9.2
Click a component to see what it means
Raw vectorCVSS: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
EPSS Score 0.013 68th percentile
Risk Priority 51 floored blend · peak EPSS

Summary

CVE-2025-21613 is a critical-severity Argument Injection (CWE-88) vulnerability in Go-Git Project Go-Git. Its CVSS base score is 9.2 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Command and Scripting Interpreter (T1059); ranked in the top 32% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

go-git is a pure Go implementation of Git that provides library support for interacting with repositories. An argument injection vulnerability tracked as CVE-2025-21613 affects all versions prior to 5.13.0 and is assigned CWE-88. The flaw permits an attacker to supply arbitrary values for git-upload-pack flags, but only when the file transport protocol is in use because that code path invokes external Git binaries rather than handling operations entirely in-process.

An unauthenticated remote attacker can exploit the issue over the network by supplying a malicious repository URL that triggers the file transport. Successful exploitation can result in high impact to confidentiality, integrity, and availability because the attacker gains control over command-line flags passed to the Git binary.

The GitHub Security Advisory for GHSA-v725-9546-7q7m states that the vulnerability is resolved in go-git release 5.13.0 and recommends that users upgrade immediately. The associated EPSS score has remained flat at 0.0383 with no material increase since disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

go-git is a highly extensible git implementation library written in pure Go. An argument injection vulnerability was discovered in go-git versions prior to v5.13. Successful exploitation of this vulnerability could allow an attacker to set arbitrary values to git-upload-pack flags.…

more

This only happens when the file transport protocol is being used, as that is the only protocol that shells out to git binaries. This vulnerability is fixed in 5.13.0.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
T1059.001 PowerShell Execution
Adversaries may abuse PowerShell commands and scripts for execution.
T1059.003 Windows Command Shell Execution
Adversaries may abuse the Windows command shell for execution.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-45570Same product: Go-Git Project Go-Git
CVE-2026-45571Same product: Go-Git Project Go-Git
CVE-2026-33762Same product: Go-Git Project Go-Git
CVE-2025-21614Same product: Go-Git Project Go-Git
CVE-2026-34165Same product: Go-Git Project Go-Git
CVE-2023-49568Same product: Go-Git Project Go-Git
CVE-2023-49569Same product: Go-Git Project Go-Git
CVE-2026-25934Same product: Go-Git Project Go-Git
CVE-2026-45022Same product: Go-Git Project Go-Git
CVE-2026-41506Same product: Go-Git Project Go-Git

Affected Assets

go-git project
go-git
≤ 5.13.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.2.5

Mitigating Controls (NIST 800-53 r5) AI

Developer testing can discover argument-injection flaws in command-construction code but does not stop their introduction.

Input validation directly stops construction of command strings containing unneutralized delimiters or injected arguments.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require proper input validation and command construction to prevent argument injection.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can detect argument injection but does not prevent it at the source.

prevents

Secure development lifecycle mandates input validation and command construction practices that directly prevent argument injection.

prevents

Application security requirements include explicit rules for safe command-line argument handling and escaping.

prevents

Secure architecture principles discourage unsafe command invocation patterns and favor safer APIs.

prevents

Secure coding standards explicitly require proper neutralization of command arguments, directly eliminating CWE-88.

none

Change management can catch unsafe command patterns during reviews but is not a direct mitigation.

References