{"cve":"CVE-2025-21613","nvd":{"published":"2025-01-06T17:15:47.043","modified":"2026-06-17T08:43:51.353","status":"Analyzed","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.","cvss_v4":{"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","score":9.2},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-88"],"references":["https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m"],"products":["go-git_project:go-git"],"source":"nvd","synced_at":"2026-10-19T21:57:56.913276502+00:00"},"epss":{"cve":"CVE-2025-21613","score":0.01278,"percentile":0.69989,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v725-9546-7q7m","url":"https://osv.dev/vulnerability/GHSA-v725-9546-7q7m","summary":"go-git has an Argument Injection via the URL field","modified":"2026-09-10T03:50:22.222541182Z","packages":[{"ecosystem":"Go","name":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","ranges":[">=4.0.0 <=4.13.1"],"fixed":[]},{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","ranges":["<5.13.0"],"fixed":["5.13.0"]}]},{"id":"GO-2025-3368","url":"https://osv.dev/vulnerability/GO-2025-3368","summary":"Argument Injection via the URL field in github.com/go-git/go-git","modified":"2026-07-08T10:44:27.247041938Z","packages":[{"ecosystem":"Go","name":"github.com/go-git/go-git/v4","purl":"pkg:golang/github.com/go-git/go-git/v4","ranges":[">=4.0.0"],"fixed":[]},{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","ranges":["<5.13.0"],"fixed":["5.13.0"]},{"ecosystem":"Go","name":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","ranges":[">=4.0.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}