5.0medium
go-git: Maliciously crafted idx file can cause asymmetric memory consumption
- Severity
- 5.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jhf3-xxhw-2wppGO-2026-4910
Description
go-git is an extensible git implementation library written in pure Go. From version 5.0.0 to before version 5.17.1, a vulnerability has been identified in which a maliciously crafted .idx file can cause asymmetric memory consumption, potentially exhausting available memory and resulting in a denial-of-service (DoS) condition. Exploitation requires write access to the local repository's .git directory, it order to create or alter existing .idx files. This issue has been patched in version 5.17.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| go-git go-git | >= 5.0.0, < 5.17.1 | CVE List |
| github.com/go-git/go-git/v5 (Go) | from 5.0.0 before 5.17.1 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/go-git/go-git (Go) | all versions | Go Vulnerability Database |
| github.com/go-git/go-git/v4 (Go) | all versions | Go Vulnerability Database |
| go-git_project go-git | from 5.0.0 before 5.17.1 | NVD |
All scores
| GitHub_M | 5.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 5.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
go-git is an extensible git implementation library written in pure Go. From version 5.0.0 to before version 5.17.1, a vulnerability has been identified in which a maliciously crafted .idx file can cause asymmetric memory consumption, potentially exhausting available memory and resulting in a denial-of-service (DoS) condition. Exploitation requires write access to the local repository's .git directory, it order to create or alter existing .idx files. This issue has been patched in version 5.17.1.
GitHub Advisory Database
Impact
A vulnerability has been identified in which a maliciously crafted .idx file can cause asymmetric memory consumption, potentially exhausting available memory and resulting in a Denial of Service (DoS) condition.
Exploitation requires write access to the local repository's .git directory, it order to create or alter existing .idx files.
Patches
Users should upgrade to v5.17.1, or the latest v6 pseudo-version, in order to mitigate this vulnerability.
Credit
The go-git maintainers thank @kq5y for finding and reporting this issue privately to the go-git project.
Go Vulnerability Database
Maliciously crafted idx file can cause asymmetric memory consumption in github.com/go-git/go-git
NVD (es)
go-git es una biblioteca de implementación de git extensible escrita en Go puro. Desde la versión 5.0.0 hasta antes de la versión 5.17.1, se ha identificado una vulnerabilidad en la que un archivo .idx creado maliciosamente puede causar un consumo asimétrico de memoria, agotando potencialmente la memoria disponible y resultando en una condición de denegación de servicio (DoS). La explotación requiere acceso de escritura al directorio .git del repositorio local, para crear o alterar archivos .idx existentes. Este problema ha sido parcheado en la versión 5.17.1.
References
| https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp | advisory, vendor-advisory, web | |
| https://github.com/go-git/go-git/releases/tag/v5.17.1 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-34165 | advisory | |
| https://github.com/go-git/go-git | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-34165 changed 2026-04-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jhf3-xxhw-2wpp changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4910 changed 2026-04-08 | CC-BY-4.0 |
| NVD | CVE-2026-34165 changed 2026-07-24 | Public domain |