CVE-2025-21613
CRITICAL 9.2CVSS 4.0go-git has an Argument Injection via the URL field
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.
- Published
- 6 Jan 2025
- Last modified
- 23 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-88
- Also known as
- GHSA-v725-9546-7q7mGO-2025-3368
- Sources
- NVDJSONOSV GHSA-v725-9546-7q7mJSONOSV GO-2025-3368JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | CRITICAL 9.2 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Clear |
| OSV | GitHub | CVSS 4.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Clear | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:* |
< 5.13.0 | 5.13.0 |
| OSV | Go | gopkg.in/src-d/go-git.v4 | >= 4.0.0, <= 4.13.1 | |
| OSV | Go | github.com/go-git/go-git/v5 | < 5.13.0 | 5.13.0 |
| OSV | Go | github.com/go-git/go-git/v4 | >= 4.0.0 | |
| OSV | Go | gopkg.in/src-d/go-git.v4 | >= 4.0.0 |
References
- https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-21613 · ADVISORY
- https://github.com/go-git/go-git · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 6 Jan 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jan 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2025)