GHSA-v725-9546-7q7m · GO-2025-3368 · published 6 Jan 2025 · updated 14 Nov 2026
go-git has an Argument Injection via the URL field
9.2CriticalCVSS 9.2EPSS 1%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. 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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| go-git | >=4.0.0 <5.13.0 | ||
| go: github.com/go-git/go-git/v4 | >=4.0.0 | ||
| go: github.com/go-git/go-git/v5 | <5.13.0 | 5.13.0 | |
| go: gopkg.in/src-d/go-git.v4 | >=4.0.0 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket