Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-git/go-git/v5
  4. ›
  5. CVE-2026-34165

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

March 30, 2026 (updated March 31, 2026)

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.

References

  • github.com/advisories/GHSA-jhf3-xxhw-2wpp
  • github.com/go-git/go-git
  • github.com/go-git/go-git/releases/tag/v5.17.1
  • github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp
  • nvd.nist.gov/vuln/detail/CVE-2026-34165

Code Behaviors & Features

Detect and mitigate CVE-2026-34165 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.0.0 before 5.17.1

Fixed versions

  • 5.17.1

Solution

Upgrade to version 5.17.1 or above.

Impact 5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

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

Source file

go/github.com/go-git/go-git/v5/CVE-2026-34165.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 16 Nov 2026 00:17:05 +0000.