7.5high
Maliciously crafted Git server replies can cause DoS on go-git clients
- Severity
- 7.5high CVSS:3.1 by Bitdefender
- Exploit likelihood
- 0.70% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Bitdefender
- Also known as
- GHSA-mw99-9chc-xw7rGO-2024-2466
Description
A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. 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. Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability. This is a go-git implementation issue and does not affect the upstream git cli.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| go-git go-git | 5.11.0 | CVE List |
| github.com/go-git/go-git/v5 (Go) | before 5.11.0, from 5.0.0 before 5.11.0 | GitHub Advisory Database, Go Vulnerability Database |
| gopkg.in/src-d/go-git.v4 (Go) | from 4.7.1 up to 4.13.1, from 4.7.1 | GitHub Advisory Database, Go Vulnerability Database |
| go-git_project go-git | from 4.0.0 before 5.11.0 | NVD |
All scores
| Bitdefender | 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 |
| NVD | 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
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. 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. Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability. This is a go-git implementation issue and does not affect the upstream git cli.
GitHub Advisory Database
Impact
A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. 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.
Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability.
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.11 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.
References
Go Vulnerability Database
Denial of service in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4
NVD (es)
Se descubrió una vulnerabilidad de denegación de servicio (DoS) en versiones de go-git anteriores a la v5.11. Esta vulnerabilidad permite a un atacante realizar ataques de denegación de servicio proporcionando respuestas especialmente manipuladas desde un servidor Git que provoca el agotamiento de los recursos en los clientes go-git. Las aplicaciones que utilizan únicamente el sistema de archivos en memoria compatible con go-git no se ven afectadas por esta vulnerabilidad. Este es un problema de implementación de go-git y no afecta el cli de git ascendente.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-49568 changed 2025-06-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mw99-9chc-xw7r changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2466 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-49568 changed 2026-06-17 | Public domain |