Vulnerability · Published Mar 31, 2026 · Assigned by GitHub_M
CVE-2026-33762go-git: Missing validation decoding Index v4 files leads to panic
Low 2.8
In plain English
A low-severity security flaw in go-git from go-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
go-git is an extensible git implementation library written in pure Go. Prior to version 5.17.1, 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. This issue has been patched in version 5.17.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2026-33762 |
| Debian:13 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2026-33762 |
| Debian:14 | golang-github-go-git-go-git | 5.17.1-1 | DEBIAN-CVE-2026-33762 |
| Go | github.com/go-git/go-git | no fix listed | GO-2026-4909 |
| Go | github.com/go-git/go-git/v4 | no fix listed | GO-2026-4909 |
| Go | github.com/go-git/go-git/v5 | 5.17.1 | GHSA-gm2x-2g9h-ccm8 |
| Go | github.com/go-git/go-git/v5 | 5.17.1 | GO-2026-4909 |
| Ubuntu:25.10 | golang-github-go-git-go-git | no fix listed | UBUNTU-CVE-2026-33762 |
| Ubuntu:26.10 | golang-github-go-git-go-git | no fix listed | UBUNTU-CVE-2026-33762 |
Affected products (as reported)
Weakness: CWE-129 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
References
- https://github.com/go-git/go-git/security/advisories/GHSA-gm2x-2g9h-ccm8 x_refsource_CONFIRM
- https://github.com/go-git/go-git/commit/e9b65df44cb97faeba148b47523a362beaecddf9 x_refsource_MISC
- https://github.com/go-git/go-git/releases/tag/v5.17.1 x_refsource_MISC