{"id":"CVE-2025-21614","aliases":["CVE-2025-21614","GHSA-r9px-m959-cxf4","GO-2025-3367"],"related":["CGA-rxrq-jmmh-wchr","RHSA-2025:0401","RHSA-2025:0662"],"kind":"vulnerability","state":"published","title":"go-git clients vulnerable to DoS via maliciously crafted Git server replies","summary":"go-git is a highly extensible git implementation library written in pure Go. A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.13. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Users running versions of go-git from v4 and above are recommended to upgrade to v5.13 in order to mitigate this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"go-git is a highly extensible git implementation library written in pure Go. A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.13. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Users running versions of go-git from v4 and above are recommended to upgrade to v5.13 in order to mitigate this vulnerability.","source":"cvelist"},{"lang":"en","text":"### Impact\nA denial of service (DoS) vulnerability was discovered in go-git versions prior to `v5.13`. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in `go-git` clients. \n\nThis is a `go-git` implementation issue and does not affect the upstream `git` cli.\n\n### Patches\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 limiting its use to only trust-worthy Git servers.\n\n## Credit\nThanks to Ionut Lalu for responsibly disclosing this vulnerability to us.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Clients vulnerable to DoS via maliciously crafted Git server replies in github.com/go-git/go-git","format":"markdown","source":"go"},{"lang":"es","text":"Go-git es una librería de implementación de Git altamente extensible escrita en Go puro. Se descubrió una vulnerabilidad de denegación de servicio (DoS) en versiones de Go-git anteriores a la v5.13. Esta vulnerabilidad permite a un atacante realizar ataques de denegación de servicio al proporcionar respuestas especialmente manipuladas desde un servidor Git que desencadenan el agotamiento de recursos en los clientes de Go-git. Se recomienda a los usuarios que ejecutan versiones de Go-git de la v4 y posteriores que actualicen a la v5.13 para mitigar esta vulnerabilidad.","source":"nvd"}],"published":"2025-01-06T16:20:16.140Z","modified":"2026-09-10T03:50:22.178Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20","CWE-400","CWE-770"],"affected":[{"ranges":[{"version":">= 4.0.0, < 5.13.0","status":"affected"}],"vendor":"go-git","product":"go-git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","lastAffected":"4.13.1"}],"ecosystem":"Go","package":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.13.0"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","lastAffected":"4.13.1"}],"ecosystem":"Go","package":"github.com/go-git/go-git","purl":"pkg:golang/github.com/go-git/go-git","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v4","purl":"pkg:golang/github.com/go-git/go-git/v4","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.13.0"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"go"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected"}],"ecosystem":"Go","package":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","source":"go"},{"ranges":[{"status":"affected","fixed":"5.13.0"}],"vendor":"go-git_project","product":"go-git","cpe":"cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-r9px-m959-cxf4","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21614","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/go-git/go-git","tags":["package"],"sources":["ghsa"]}],"credits":["Ionut Lalu"],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-01-06T16:34:38.131Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21614","url":"https://www.cve.org/CVERecord?id=CVE-2025-21614","licence":"CVE Terms of Use","modified":"2025-08-26T19:48:04.692Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r9px-m959-cxf4","url":"https://github.com/advisories/GHSA-r9px-m959-cxf4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:22.178Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3367","url":"https://pkg.go.dev/vuln/GO-2025-3367","licence":"CC-BY-4.0","modified":"2026-02-04T02:33:58.878Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21614","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21614","licence":"Public domain","modified":"2026-06-17T08:43:51.603Z"}],"updatedAt":"2026-11-25T22:58:53.127Z","epss":{"score":0.00711,"percentile":0.54776,"date":"2026-12-01T12:00:22.000Z"}}