Vulnerability · Published Jan 6, 2025 · Assigned by GitHub_M
CVE-2025-21613go-git has an Argument Injection via the URL field
Critical 9.8
In plain English
A critical-severity argument injection in go-git from go-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | grafana | 9.2.10-21.el8_10 | ALSA-2025:0401 |
| AlmaLinux:8 | grafana-selinux | 9.2.10-21.el8_10 | ALSA-2025:0401 |
| Debian:12 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2025-21613 |
| Debian:13 | golang-github-go-git-go-git | 5.13.2-1 | DEBIAN-CVE-2025-21613 |
| Debian:14 | golang-github-go-git-go-git | 5.13.2-1 | DEBIAN-CVE-2025-21613 |
| Go | github.com/go-git/go-git/v4 | no fix listed | GO-2025-3368 |
| Go | github.com/go-git/go-git/v5 | 5.13.0 | GO-2025-3368 |
| Go | github.com/go-git/go-git/v5 | 5.13.0 | GHSA-v725-9546-7q7m |
| Go | gopkg.in/src-d/go-git.v4 | no fix listed | GO-2025-3368 |
| Go | gopkg.in/src-d/go-git.v4 | no fix listed | GHSA-v725-9546-7q7m |
| Rocky Linux:8 | grafana | 0:9.2.10-21.el8_10 | RLSA-2025:0401 |
Affected products (as reported)
Weakness: CWE-88 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m x_refsource_CONFIRM