cve.bz

CVE-2025-21613

9.2 criticalEPSS 1.3%

Critical (9.2) in go-git project go-git. EPSS 1.3% chance of exploitation in the next 30 days. Fixed in github.com/go-git/go-git/v5 5.13.0.

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.

Severity

CVSS 4.0

9.2 critical
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/U:Clear

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.3% chance of exploitation in the next 30 days; higher than 69% of CVEs (scores of 2026-10-31)
CWE
CWE-88
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v725-9546-7q7mGogopkg.in/src-d/go-git.v4>=4.0.0 <=4.13.1no fix published
GHSA-v725-9546-7q7mGogithub.com/go-git/go-git/v5<5.13.05.13.0
GO-2025-3368Gogithub.com/go-git/go-git/v4>=4.0.0no fix published
GO-2025-3368Gogithub.com/go-git/go-git/v5<5.13.05.13.0
GO-2025-3368Gogopkg.in/src-d/go-git.v4>=4.0.0no fix published

References

Check your stackJSON