go-git: Maliciously crafted idx file can cause asymmetric memory consumption
cve-program · CVE-2026-34165
Publishedgo-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.
Read the publisher's advisoryeuvd · EUVD-2026-17449
Publishedgo-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.
Read the publisher's advisorynvd · CVE-2026-34165
Publishedgo-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.
Read the publisher's advisoryosv · GHSA-jhf3-xxhw-2wpp
Published### 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](https://go.dev/ref/mod#pseudo-versions), 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.
Read the publisher's advisoryosv · GO-2026-4910
PublishedMaliciously crafted idx file can cause asymmetric memory consumption in github.com/go-git/go-git
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-34165 · CVE overview and exploitation status
cve-program · CVE-2026-34165
- https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp
- https://github.com/go-git/go-git/releases/tag/v5.17.1
euvd · EUVD-2026-17449
- https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp
- https://github.com/go-git/go-git/releases/tag/v5.17.1
nvd · CVE-2026-34165
- https://github.com/go-git/go-git/releases/tag/v5.17.1
- https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp
osv · GHSA-jhf3-xxhw-2wpp
- https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp
- https://nvd.nist.gov/vuln/detail/CVE-2026-34165
- https://github.com/go-git/go-git
- https://github.com/go-git/go-git/releases/tag/v5.17.1
osv · GO-2026-4910
Related changes
Linked by CVE identifierNo related changes are available here.