{"id":"GHSA-v725-9546-7q7m","revision":"a3cd1b3114744ff8963da0bbb1165c54","records":[{"revision":"a3cd1b3114744ff8963da0bbb1165c54","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-v725-9546-7q7m","aliases":["CVE-2025-21613","GO-2025-3368"],"title":"go-git has an Argument Injection via the URL field","description":"### Impact\nAn argument injection vulnerability was discovered in `go-git` versions prior to `v5.13`. \n\nSuccessful exploitation of this vulnerability could allow an attacker to set arbitrary values to [git-upload-pack flags](https://git-scm.com/docs/git-upload-pack). This only happens when the `file` transport protocol is being used, as that is the only protocol that shells out to `git` binaries.\n\n### Affected versions\nUsers running versions of `go-git` from `v4` and above are recommended to upgrade to `v5.13` in order to mitigate this vulnerability.\n\n### Workarounds\nIn cases where a bump to the latest version of `go-git` is not possible, we recommend users to enforce restrict validation rules for values passed in the URL field.\n\n## Credit\nThanks to @vin01 for responsibly disclosing this vulnerability to us.","state":0,"publishedAt":"2025-01-06T16:16:30+00:00","modifiedAt":"2026-09-10T03:50:22.2225412+00:00","affected":[{"ecosystem":"Go","name":"gopkg.in/src-d/go-git.v4","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0"},{"kind":"last_affected","version":"4.13.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.13.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"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/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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m","https://nvd.nist.gov/vuln/detail/CVE-2025-21613","https://github.com/go-git/go-git"],"sourceUrl":"https://github.com/advisories/GHSA-v725-9546-7q7m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-v725-9546-7q7m","identifiers":["GHSA-v725-9546-7q7m","CVE-2025-21613","GO-2025-3368"]},"retained":false,"historicalAffected":[]}],"coverage":[]}