Vulnerability in Go-Git
CVE-2025-21613
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.
EPSS: 0.013 (68.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Go-git — versions >= 4.0.0, < 5.13.0
- Go-git_project Go-git
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
Frequently asked questions
- What is CVE-2025-21613?
- CVE-2025-21613 is a critical-severity vulnerability in Go-Git, classified under Argument Injection. CVSS score: 9.8/10. Published 2025-01-06.
- How severe is CVE-2025-21613?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2025-21613 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.