# CVE-2025-21613: go-git has an Argument Injection via the URL field

- Severity: Critical 9.2 (CVSS:4.0, scored by GitHub_M) `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/U:Clear`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.28%, higher than 70% of CVEs (2026-12-01)
- Published: 2025-01-06T16:13:10.611Z
- Modified: 2026-11-23T21:12:29.663Z
- Also known as: GHSA-v725-9546-7q7m, GO-2025-3368
- Related: RHSA-2025:0401, RHSA-2025:0662, RHSA-2025:3344
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- go-git go-git: >= 4.0.0,  < 5.13.0
- gopkg.in/src-d/go-git.v4 (Go): from 4.0.0 up to 4.13.1; from 4.0.0
- github.com/go-git/go-git/v5 (Go): before 5.13.0
- github.com/go-git/go-git/v4 (Go): from 4.0.0
- go-git_project go-git: before 5.13.0

## Every score

- GitHub_M: CVSS:4.0 9.2 Critical `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/U:Clear`
- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`

## References

- <https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-21613> (advisory)
- <https://github.com/go-git/go-git> (package)

## Sources

- CVE List: [CVE-2025-21613](https://www.cve.org/CVERecord?id=CVE-2025-21613), CVE Terms of Use, modified 2025-01-06
- GitHub Advisory Database: [GHSA-v725-9546-7q7m](https://github.com/advisories/GHSA-v725-9546-7q7m), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3368](https://pkg.go.dev/vuln/GO-2025-3368), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2025-21613](https://nvd.nist.gov/vuln/detail/CVE-2025-21613), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21613 · Whole record: https://cve.day/CVE-2025-21613.json · Rebuilt by cve.day 2026-11-25T22:58:53.127Z
