{"id":"CVE-2025-21613","published":"2025-01-06T16:13:10Z","modified":"2025-01-06T16:45:02Z","title":"go-git has an Argument Injection via the URL field","vendor":"go-git","product":"go-git","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01278,"percentile":0.70694,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m","tags":["x_refsource_CONFIRM"]}],"priority":{"score":20.6,"factors":[{"name":"EPSS percentile","points":14.14},{"name":"CVSS severity","points":6.44}]},"vendorSlug":"go-git","affectedVersions":[{"vendor":"go-git","product":"go-git","versions":[">= 4.0.0,  < 5.13.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-01-06T16:38:34.120792Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gopkg.in/src-d/go-git.v4","vulnerableRanges":[">=4.0.0, <=4.13.1",">=4.0.0"],"patched":[],"from":["GHSA-v725-9546-7q7m","GO-2025-3368"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git/v5","vulnerableRanges":["<5.13.0"],"patched":["5.13.0"],"from":["GHSA-v725-9546-7q7m","GO-2025-3368"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git/v4","vulnerableRanges":[">=4.0.0"],"patched":[],"from":["GO-2025-3368"],"provenance":"source"}],"summary":{"text":"go-git, a pure Go git implementation library, contains an argument injection flaw in its handling of the URL field, affecting versions prior to v5.13. An attacker who can supply a URL that uses the file transport protocol can set arbitrary values to git-upload-pack flags, since that protocol is the only one that shells out to git binaries; the attack requires no privileges or user interaction and is reachable over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:11:24Z"},"euvd":{"id":"EUVD-2025-0045","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-49568","published":"2024-01-12","fixed":"5.11.0","kev":false},{"cve":"CVE-2023-49569","published":"2024-01-12","fixed":"5.11.0","kev":false,"link":{"from":"CVE-2023-49569","to":"CVE-2025-21613","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v5","fromFixed":"5.11.0","toFixed":"5.13.0","daysApart":360}]}},{"cve":"CVE-2025-21613","published":"2025-01-06","fixed":"5.13.0","kev":false},{"cve":"CVE-2025-21614","published":"2025-01-06","fixed":"5.13.0","kev":false},{"cve":"CVE-2026-25934","published":"2026-02-09","fixed":"5.16.5","kev":false},{"cve":"CVE-2026-33762","published":"2026-03-31","fixed":"5.17.1","kev":false}],"package":"Go:github.com/go-git/go-git/v5"}}