CVE-2026-33762
Packer vulnerability analysis and mitigation

Overview

CVE-2026-33762 is a denial-of-service vulnerability in go-git, a pure Go implementation of the Git version control system. The index decoder for Git index format version 4 fails to validate the path name prefix length before applying it to the previously decoded path name, allowing a maliciously crafted .git/index file to trigger an out-of-bounds slice operation and runtime panic. Affected versions are all releases of github.com/go-git/go-git/v5 up to and including v5.17.0; only Git index format version 4 is affected (v2 and v3 are not vulnerable). The vulnerability was reported privately by researcher @kq5y, published on March 29–30, 2026, and assigned a CVSS v3.1 base score of 2.8 (Low) (GitHub Advisory, Github Advisory DB).

Technical details

The root cause is improper validation of an array index (CWE-129): the index decoder for Git index format version 4 reads a path name prefix length from the file without bounds-checking it against the length of the previously decoded path name before performing a slice operation. An attacker who can place a crafted .git/index file on disk — requiring local write access to the .git directory — can trigger an out-of-bounds slice that causes a Go runtime panic during normal index parsing. The fix was implemented in PR #1935 (plumbing: format/index, Improve v4 entry name validation) included in the v5.17.1 release (GitHub Advisory, v5.17.1 Release).

Impact

Successful exploitation causes a Go runtime panic in any application using go-git to parse a Git index, which — if the application does not recover from panics — results in process termination and a denial-of-service (DoS) condition. There is no impact on confidentiality or data integrity; the sole consequence is availability loss scoped to the affected process. The vulnerability does not enable remote code execution, privilege escalation, or lateral movement (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported. The EPSS score is approximately 0.006% (0th percentile), indicating a very low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local write access to the .git directory and user interaction (a user or process must trigger index parsing), significantly limiting the attack surface (Github Advisory DB).

Exploitation steps

  1. Gain write access: Obtain local write access to the .git directory of a repository processed by an application using go-git v5.17.0 or earlier.
  2. Craft malicious index file: Create a Git index file in format version 4 with a path name prefix length field set to a value exceeding the length of the previously decoded path name entry, producing an invalid slice boundary.
  3. Place the file: Replace or inject the crafted file as .git/index in the target repository on disk.
  4. Trigger index parsing: Cause the target application to read the repository index — for example, by initiating a git status, checkout, or any operation that causes go-git to decode the index file.
  5. Achieve DoS: The out-of-bounds slice operation triggers a Go runtime panic; if the application does not recover, the process terminates, resulting in a denial-of-service condition (GitHub Advisory).

Indicators of compromise

  • File System: Unexpected modification timestamp on .git/index inconsistent with normal git operations; .git/index file with a format version 4 header (DIRC magic bytes followed by version bytes \x00\x00\x00\x04) in repositories where version 4 is not expected.
  • Logs / Process: Sudden application crash or Go runtime panic stack trace referencing go-git index decoding functions (e.g., plumbing/format/index) in application logs; unexpected process termination of services that use go-git for repository operations.

Mitigation and workarounds

Users should upgrade github.com/go-git/go-git/v5 to v5.17.1 or use the latest v6 pseudo-version, both of which include improved validation of path name prefix lengths in the index v4 decoder. No configuration-based workaround is available; upgrading is the only remediation. Downstream projects and tools that embed go-git (e.g., Portainer, external-secrets, Forgejo Runner, JFrog CLI) should also update their dependencies to pull in the patched version (GitHub Advisory, v5.17.1 Release).

Community reactions

The vulnerability was responsibly disclosed by researcher @kq5y directly to the go-git maintainers and patched promptly. Several downstream projects — including Portainer, external-secrets, JFrog CLI, and Forgejo Runner — have released updates incorporating the fix, indicating broad ecosystem awareness. No significant public controversy or media coverage beyond standard advisory distribution has been observed.

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