7.5high
go-git clients vulnerable to DoS via maliciously crafted Git server replies
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.71% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-r9px-m959-cxf4GO-2025-3367
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| go-git go-git | >= 4.0.0, < 5.13.0 | CVE List |
| gopkg.in/src-d/go-git.v4 (Go) | from 4.0.0 up to 4.13.1, from 4.0.0 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/go-git/go-git/v5 (Go) | before 5.13.0 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/go-git/go-git (Go) | from 4.0.0 up to 4.13.1 | GitHub Advisory Database |
| github.com/go-git/go-git/v4 (Go) | from 4.0.0 | Go Vulnerability Database |
| go-git_project go-git | before 5.13.0 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
This is a go-git implementation issue and does not affect the upstream git cli.
Patches
Users running versions of go-git from v4 and above are recommended to upgrade to v5.13 in order to mitigate this vulnerability.
Workarounds
In 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.
Credit
Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.
Go Vulnerability Database
Clients vulnerable to DoS via maliciously crafted Git server replies in github.com/go-git/go-git
NVD (es)
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.
References
| https://github.com/go-git/go-git/security/advisories/GHSA-r9px-m959-cxf4 | advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-21614 | advisory | |
| https://github.com/go-git/go-git | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21614 changed 2025-08-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r9px-m959-cxf4 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3367 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2025-21614 changed 2026-06-17 | Public domain |