CVE-2025-21613 go-git has an Argument Injection via the URL field
CriticalCVSS 9.2
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
12 packages: 8 fixed, 2 partially fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/golang-github-go-git-go-git(Debian 12) | = 5.4.2-3; = 5.4.2-4; = 5.11.0-1; = 5.11.0-2 +10 more | No fix listed | No fix yet |
| go-git(Go) | < 5.13.0; >= 4.0.0 | 5.13.0 | Partially fixed |
| gopkg.in/src-d/go-git.v4(Go) | >= 4.0.0; >= 4.0.0, <= 4.13.1 | after 4.13.1 | Partially fixed |
| azure linux packer(Azure Linux 3.0) | < 1.9.5-5 | 1.9.5-5 | Fixed |
| cbl-mariner cri-o(CBL-Mariner 2.0) | < 1.22.3-12 | 1.22.3-12 | Fixed |
| cbl-mariner packer(CBL-Mariner 2.0) | < 1.9.5-7 | 1.9.5-7 | Fixed |
| debian/golang-github-go-git-go-git(Debian 13) | < 5.13.2-1 | 5.13.2-1 | Fixed |
| debian/golang-github-go-git-go-git(Debian 14) | < 5.13.2-1 | 5.13.2-1 | Fixed |
| go-git project go-git | < 5.13.0 | 5.13.0 | Fixed |
| ubuntu/golang-github-go-git-go-git(Ubuntu 22.04) | < 5.4.2-3ubuntu0.1~esm1 | 5.4.2-3ubuntu0.1~esm1 | Fixed |
| ubuntu/golang-github-go-git-go-git(Ubuntu 24.04) | < 5.4.2-4ubuntu0.24.04.3+esm2 | 5.4.2-4ubuntu0.24.04.3+esm2 | Fixed |
| go-git | = >= 4.0.0, < 5.13.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gopkg.in/src-d/go-git.v4(Go) | >= 4.0.0, <= 4.13.1 | No fix listed |
| go-git(Go) | < 5.13.0 | 5.13.0 |
| cbl-mariner packer(CBL-Mariner:2.0) | < 1.9.5-7 | 1.9.5-7 |
| cbl-mariner cri-o(CBL-Mariner:2.0) | < 1.22.3-12 | 1.22.3-12 |
| azure linux packer(Azure Linux:3.0) | < 1.9.5-5 | 1.9.5-5 |
| debian/golang-github-go-git-go-git(Debian:12) | All versions | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.11.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.11.0-2 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.11.0-3 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.11.0-4 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.12.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.13.2-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.14.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.16.2-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.17.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.17.1-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.19.1-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.4.2-3 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.4.2-4 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:13) | < 5.13.2-1 | 5.13.2-1 |
| debian/golang-github-go-git-go-git(Debian:14) | < 5.13.2-1 | 5.13.2-1 |
| go-git | = >= 4.0.0, < 5.13.0 | No fix listed |
| ubuntu/golang-github-go-git-go-git(Ubuntu:22.04) | < 5.4.2-3ubuntu0.1~esm1 | 5.4.2-3ubuntu0.1~esm1 |
| ubuntu/golang-github-go-git-go-git(Ubuntu:24.04) | < 5.4.2-4ubuntu0.24.04.3+esm2 | 5.4.2-4ubuntu0.24.04.3+esm2 |
| go-git project go-git | < 5.13.0 | 5.13.0 |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| go-git(Go) | >= 4.0.0 | No fix listed |
| gopkg.in/src-d/go-git.v4(Go) | >= 4.0.0 | No fix listed |
References
- https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- github.com
- Debian Security Tracker CVE-2025-21613 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8088-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking