CVE-2026-34165
Packer vulnerability analysis and mitigation

Overview

CVE-2026-34165 is a Denial of Service (DoS) vulnerability in the go-git library (a pure Go implementation of Git) caused by asymmetric memory consumption when parsing a maliciously crafted .idx file. It affects go-git versions 5.0.0 through 5.17.0 (inclusive) and was privately reported by researcher @kq5y to the go-git maintainers. The advisory was published on March 29–30, 2026, with NVD publication on March 31, 2026. It carries a CVSS v3.1 base score of 5.0 (Medium) (GitHub Advisory, go-git Advisory).

Technical details

The root cause is a combination of CWE-191 (Integer Underflow/Wrap or Wraparound) and CWE-770 (Allocation of Resources Without Limits or Throttling) in go-git's .idx file parsing logic — specifically in the plumbing/format/idxfile package where version and fanout checks were insufficient. An attacker with write access to a repository's .git directory can craft or alter a .idx pack index file to trigger an integer underflow, causing the library to allocate an unbounded amount of memory when the file is subsequently processed. The fix in v5.17.1 introduced improved v4 entry name validation and corrected version and fanout checks (GitHub Advisory, go-git Release).

Impact

Successful exploitation results in memory exhaustion on the host running the vulnerable go-git code, leading to a Denial of Service condition that can crash or hang git-related operations. There is no impact on confidentiality or data integrity — the vulnerability is limited to availability. Applications and CI/CD pipelines that use go-git to process untrusted or shared repositories are most at risk, as an attacker with local write access to the .git directory could disrupt repository operations for all users of that system (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for this vulnerability. Exploitation requires low-privilege local access and user interaction (i.e., another user or process must trigger parsing of the malicious .idx file), significantly limiting the attack surface. The EPSS score is approximately 0.013% (0th percentile), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory).

Exploitation steps

  1. Gain local write access: Obtain low-privileged write access to a target system's local Git repository .git directory — for example, through a shared development environment or a compromised local account.
  2. Craft a malicious .idx file: Create or modify a pack index (.idx) file within .git/objects/pack/ with specially crafted version or fanout values designed to trigger an integer underflow in go-git's parsing logic.
  3. Trigger parsing: Wait for or induce a victim process (e.g., a CI/CD pipeline, automated script, or another user) running a vulnerable version of go-git (v5.0.0–v5.17.0) to perform a git operation that reads the malicious .idx file (e.g., git fetch, git clone, or pack file inspection).
  4. Achieve DoS: The integer underflow causes go-git to allocate memory without bounds, exhausting available system memory and resulting in a crash or hang of the affected process (GitHub Advisory, go-git Advisory).

Indicators of compromise

  • File System: Unexpected or recently modified .idx files in .git/objects/pack/ with anomalous file sizes or malformed headers; .idx files with unusual fanout table values.
  • Process: Go-git-based processes (CI/CD agents, git tooling) consuming abnormally high memory (approaching system limits) before crashing or being OOM-killed.
  • Logs: Out-of-memory (OOM) kernel log entries (dmesg or /var/log/syslog) associated with go-git processes; application-level panics or error messages referencing plumbing/format/idxfile in go-git stack traces.

Mitigation and workarounds

Users should upgrade go-git to v5.17.1 or the latest v6 pseudo-version, which includes fixes for version and fanout validation in the .idx file parser (go-git Release, GitHub Advisory). No configuration-based workaround is available; upgrading is the only remediation. As a defense-in-depth measure, restrict write access to .git directories on shared systems to minimize the risk of a malicious .idx file being introduced.

Community reactions

The vulnerability was responsibly disclosed by researcher @kq5y directly to the go-git maintainers and patched promptly. Several downstream projects that depend on go-git — including Portainer, CircleCI Server, external-secrets, pulumi-kubernetes, and Forgejo Runner — have released updates incorporating the fix, indicating broad ecosystem awareness. Tenable/Nessus and Qualys have both added detection plugins for this CVE, reflecting standard scanner coverage for a moderate-severity library vulnerability (go-git Release).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

golang-github-go-git-go-git

Affected

sid

golang-github-go-git-go-git: 5.17.1-1

Fixed

trixie

golang-github-go-git-go-git

Affected

Ubuntu

Unknown

devel

golang-github-go-git-go-git

Unknown

jammy

golang-github-go-git-go-git

Unknown

jammy (esm-apps)

golang-github-go-git-go-git

Unknown

noble

golang-github-go-git-go-git

Unknown

noble (esm-apps)

golang-github-go-git-go-git

Unknown

resolute

golang-github-go-git-go-git

Unknown

resolute (esm-apps)

golang-github-go-git-go-git

Unknown

RHEL / CentOS

Affected

OpenShift

cri-o.src

Affected

RHEL 8

grafana.src

Affected

RHEL 9

grafana.src

Affected

SourceThis report was generated using AI

Related Packer vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-84304HIGH8.7
  • cAdvisor logocAdvisor
  • envoy-gateway-fips-1.8
NoYesSep 01, 2026
CVE-2026-78662HIGH7.5
  • Docker logoDocker
  • kubescape-server-fips
NoYesSep 02, 2026
CVE-2026-56855HIGH7.5
  • Docker logoDocker
  • fulcio-fips
NoYesSep 02, 2026
CVE-2026-19589HIGH7.1
  • Packer logoPacker
  • cpe:2.3:a:hashicorp:packer
NoYesAug 17, 2026
CVE-2026-71557MEDIUM6.3
  • Packer logoPacker
  • kyverno-fips-1.17
NoYesAug 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management