← Vulnerability feed

Vulnerability record · CVE-2025-21613 · published 6 January 2025

CVE-2025-21613: Go-git project go-git argument injection vulnerability

GGo Git Project · Go Git

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

9.2 CVSS 4.0 Critical EPSS 1.3% · top 31.0% CWE-88 · Argument injection
9.2CVSS 4.0 base score
1.3%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
1References
17 Jun 2026Last modified by NVD

Description

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

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:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-21613 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2023-49569Go-git project go-git path traversal vulnerabilityA path traversal vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to create and amend files acro…EPSS 1.5%7.5CVE-2025-21614Go-git project go-git uncontrolled resource consumption vulnerabilitygo-git is a highly extensible git implementation library written in pure Go. A denial of service (DoS) vulnerability was discovered in go-git version…EPSS 0.72%7.5CVE-2023-49568Go-git project go-git improper input validation vulnerabilityA denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to perform denial of …EPSS 0.70%7.4CVE-2026-41506Go-git project go-git insufficiently protected credentials vulnerabilitygo-git is an extensible git implementation library written in pure Go. Prior to versions 5.18.0 and 6.0.0-alpha.2, go-git may leak HTTP authenticatio…EPSS 0.26%7.0CVE-2026-45022Go-git project go-git insufficient verification of data authenticity vulnerabilitygo-git is an extensible git implementation library written in pure Go. Prior to 5.19.0 and 6.0.0-alpha.3, go-git may parse malformed Git objects in a…EPSS 0.16%5.4CVE-2026-45571Go-git project go-git path traversal vulnerabilitygo-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, a path validation issue in go-git could all…EPSS 0.33%5.0CVE-2026-34165Go-git project go-git allocation without limits vulnerabilitygo-git is an extensible git implementation library written in pure Go. From version 5.0.0 to before version 5.17.1, a vulnerability has been identifi…EPSS 0.15%4.3CVE-2026-25934Go-git project go-git vulnerabilitygo-git is a highly extensible git implementation library written in pure Go. Prior to 5.16.5, a vulnerability was discovered in go-git whereby data i…EPSS 0.16%

Source: NIST National Vulnerability Database (record CVE-2025-21613), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.