CVE-2026-34165

go-git: Maliciously crafted idx file can cause asymmetric memory consumption

State
Published
Severity
5.0 Medium
Published
Mar 31, 2026
Updated
Apr 2, 2026
Reserved
Mar 25, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.0 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-191 Integer Underflow (Wrap or Wraparound)
  • CWE-770 Allocation of Resources Without Limits or Throttling

Affected Products

ProductVersions
go-gitgo-git
  • >= 5.0.0, < 5.17.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.