CVE-2026-33762
ADVISORY - githubSummary
Impact
go-git’s index decoder for format version 4 fails to validate the path name prefix length before applying it to the previously decoded path name. A maliciously crafted index file can trigger an out-of-bounds slice operation, resulting in a runtime panic during normal index parsing.
This issue only affects Git index format version 4. Earlier formats (go-git supports only v2 and v3) are not vulnerable to this issue.
An attacker able to supply a crafted .git/index file can cause applications using go-git to panic while reading the index. If the application does not recover from panics, this results in process termination, leading to a denial-of-service (DoS) condition.
Exploitation requires the ability to modify or inject a Git index file within the local repository in disk. This typically implies write access to the .git directory.
Patches
Users should upgrade to v5.17.1, or the latest v6 pseudo-version, in order to mitigate this vulnerability.
Credit
go-git maintainers thank @kq5y for finding and reporting this issue privately to the go-git project.
Common Weakness Enumeration (CWE)
Improper Validation of Array Index
Improper Validation of Array Index
NIST
1.3
CVSS SCORE
2.8lowGitHub
1.3
CVSS SCORE
2.8lowDebian
-
Ubuntu
-
CVSS SCORE
N/AmediumGoLang
-
Chainguard
CGA-9gc9-qwwq-vf3j
-
minimos
MINI-2956-3qrx-mw79
-
minimos
MINI-3285-2839-mh97
-
minimos
MINI-3pmf-85qf-jq4c
-
minimos
MINI-3x6h-jggj-3rpw
-
minimos
MINI-42vm-pvp5-rwr5
-
minimos
MINI-4pw7-9v4r-c54v
-
minimos
MINI-6457-8pc8-pj57
-
minimos
MINI-6mmq-wp6m-v5f3
-
minimos
MINI-6w5h-8vgx-8hfm
-
minimos
MINI-7f97-mxqp-mgpv
-
minimos
MINI-7fp2-377m-6f2g
-
minimos
MINI-8ffr-fwhg-gj65
-
minimos
MINI-8vrf-3xcp-c8xm
-
minimos
MINI-8x23-f5f5-phpf
-
minimos
MINI-cm9c-qv6h-63rv
-
minimos
MINI-fm3p-874h-mcp5
-
minimos
MINI-fp99-6x64-j2wx
-
minimos
MINI-fr98-w2q3-vgcx
-
minimos
MINI-ghf3-73q7-mmwh
-
minimos
MINI-gp5c-mvrh-jvfm
-
minimos
MINI-hqwq-qcqv-gmjw
-
minimos
MINI-j3rq-g2m4-fxhw
-
minimos
MINI-m25p-xvjh-p36v
-
minimos
MINI-m56j-wxf2-rcpm
-
minimos
MINI-m623-9gcr-m429
-
minimos
MINI-m7wq-mg28-p3qp
-
minimos
MINI-mvg8-8x47-7fr4
-
minimos
MINI-pjf3-qpgx-gwr8
-
minimos
MINI-pmvc-h3wc-qj47
-
minimos
MINI-pphj-f63j-7353
-
minimos
MINI-pqvm-wp84-q6cx
-
minimos
MINI-pvrq-prpp-h7fr
-
minimos
MINI-pw2r-6rvq-jqf9
-
minimos
MINI-qffh-9vmh-2j2m
-
minimos
MINI-r2c8-fjj7-j5m2
-
minimos
MINI-rhmr-4wgr-h9xg
-
minimos
MINI-v664-55h2-vgqw
-
minimos
MINI-vc43-575h-mwph
-
minimos
MINI-vm6c-2pvq-2j5g
-
minimos
MINI-vp2q-fvg3-6jwx
-
minimos
MINI-vwr9-p82j-vr8q
-
minimos
MINI-w86v-rhch-p892
-
minimos
MINI-wc22-52jp-9frv
-
minimos
MINI-wv9j-j4m6-pmw5
-
minimos
MINI-wxqm-7q3c-m5x4
-
minimos
MINI-xfh7-fmwg-6pgv
-
minimos
MINI-xh2p-948g-8q3w
-
minimos
MINI-xj84-c6xc-6p6h
-