Vulnerability · Published Mar 31, 2026 · Assigned by GitHub_M
CVE-2026-34165go-git: Maliciously crafted idx file can cause asymmetric memory consumption
Medium 5.0
In plain English
A medium-severity resource allocation without limits in go-git from go-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2026-34165 |
| Debian:13 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2026-34165 |
| Debian:14 | golang-github-go-git-go-git | 5.17.1-1 | DEBIAN-CVE-2026-34165 |
| Go | github.com/go-git/go-git | no fix listed | GO-2026-4910 |
| Go | github.com/go-git/go-git/v4 | no fix listed | GO-2026-4910 |
| Go | github.com/go-git/go-git/v5 | 5.17.1 | GHSA-jhf3-xxhw-2wpp |
| Go | github.com/go-git/go-git/v5 | 5.17.1 | GO-2026-4910 |
| Ubuntu:25.10 | golang-github-go-git-go-git | no fix listed | UBUNTU-CVE-2026-34165 |
| Ubuntu:26.10 | golang-github-go-git-go-git | no fix listed | UBUNTU-CVE-2026-34165 |
Affected products (as reported)
Weakness: CWE-191, CWE-770 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
References
- https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp x_refsource_CONFIRM
- https://github.com/go-git/go-git/releases/tag/v5.17.1 x_refsource_MISC