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.

Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)0.2%top 95.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-34165
Debian:13golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-34165
Debian:14golang-github-go-git-go-git5.17.1-1DEBIAN-CVE-2026-34165
Gogithub.com/go-git/go-gitno fix listedGO-2026-4910
Gogithub.com/go-git/go-git/v4no fix listedGO-2026-4910
Gogithub.com/go-git/go-git/v55.17.1GHSA-jhf3-xxhw-2wpp
Gogithub.com/go-git/go-git/v55.17.1GO-2026-4910
Ubuntu:25.10golang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-34165
Ubuntu:26.10golang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-34165

Affected products (as reported)

VendorProductVersions
go-git go-git >= 5.0.0, < 5.17.1

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