# CVE-2026-33762: go-git: Missing validation decoding Index v4 files leads to panic

- Severity: Low 2.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-03-30T17:05:23.000Z
- Modified: 2026-11-02T23:17:20.417Z
- Also known as: GHSA-gm2x-2g9h-ccm8, GO-2026-4909
- Related: CGA-9gc9-qwwq-vf3j
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- go-git go-git: < 5.17.1
- github.com/go-git/go-git/v5 (Go): before 5.17.1
- github.com/go-git/go-git (Go): all versions
- github.com/go-git/go-git/v4 (Go): all versions
- go-git_project go-git: before 5.17.1

## Every score

- GitHub_M: CVSS:3.1 2.8 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 2.8 Low `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> (advisory, vendor-advisory, web)
- <https://github.com/go-git/go-git/commit/e9b65df44cb97faeba148b47523a362beaecddf9> (web)
- <https://github.com/go-git/go-git/releases/tag/v5.17.1> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33762> (advisory)
- <https://github.com/go-git/go-git> (package)

## Sources

- CVE List: [CVE-2026-33762](https://www.cve.org/CVERecord?id=CVE-2026-33762), CVE Terms of Use, modified 2026-11-02
- GitHub Advisory Database: [GHSA-gm2x-2g9h-ccm8](https://github.com/advisories/GHSA-gm2x-2g9h-ccm8), CC-BY-4.0, modified 2026-11-02
- Go Vulnerability Database: [GO-2026-4909](https://pkg.go.dev/vuln/GO-2026-4909), CC-BY-4.0, modified 2026-04-08
- NVD: [CVE-2026-33762](https://nvd.nist.gov/vuln/detail/CVE-2026-33762), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-33762 · Whole record: https://cve.day/CVE-2026-33762.json · Rebuilt by cve.day 2026-11-25T22:59:17.583Z
