CVE-2025-21613Argument Injection in Go-git Go-git V5

CWE-88Argument Injection10 documents7 sources
Severity
9.2CRITICALNVD
OSV7.5
EPSS
2.9%
top 13.73%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJan 6
Latest updateMar 12

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

🔴Vulnerability Details

5
OSV
golang-github-go-git-go-git vulnerabilities2026-03-12
OSV
Argument Injection via the URL field in github.com/go-git/go-git2025-01-07
GHSA
go-git has an Argument Injection via the URL field2025-01-06
OSV
CVE-2025-21613: go-git is a highly extensible git implementation library written in pure Go2025-01-06
OSV
go-git has an Argument Injection via the URL field2025-01-06

📋Vendor Advisories

4
Ubuntu
go-git vulnerabilities2026-03-12
Microsoft
go-git has an Argument Injection via the URL field2025-01-14
Red Hat
go-git: argument injection via the URL field2025-01-06
Debian
CVE-2025-21613: golang-github-go-git-go-git - go-git is a highly extensible git implementation library written in pure Go. An ...2025