CVE-2026-33762
go-git: Missing validation decoding Index v4 files leads to panic
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.
Fixes and workarounds
Fix
github.com/go-git/go-git/v5 (Go): OSV reports a fixed version 5.17.1. Check the advisory for supported release branches.
Source: OSV GHSA-gm2x-2g9h-ccm8Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| go-git go-git |
< 5.17.1 (affected) | CNA: GitHub_M |
github.com/go-git/go-git/v5github.com/go-git/go-git/v5
Go |
≥ 0; < 5.17.1 (affected, semver); OSV events: introduced 0; fixed 5.17.1Source events (semver)
Other versions: unaffected |
OSV GHSA-gm2x-2g9h-ccm8 |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
NVD applicability configurations (1)
These expressions retain AND/OR operators, negation, and required environmental products. A listed product is not sufficient to establish exposure when additional conditions apply.
[
{
"negate": false,
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*",
"versionEndExcluding": "5.17.1",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
}
]CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 2.8 low |
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L | CNA: GitHub_M |
| 3.1 / 2.8 low |
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/go-git/go-git/security/advisories/GHSA-gm2x-2g9h-ccm8CNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/go-git/go-git/commit/e9b65df44cb97faeba148b47523a362beaecddf9CNA: GitHub_M · x_refsource_MISC
- https://github.com/go-git/go-git/releases/tag/v5.17.1CNA: GitHub_M · x_refsource_MISC
- https://github.com/go-git/go-git/commit/e9b65df44cb97faeba148b47523a362beaecddf9[email protected]
- https://github.com/go-git/go-git/releases/tag/v5.17.1[email protected] · Product, Release Notes
- https://github.com/go-git/go-git/security/advisories/GHSA-gm2x-2g9h-ccm8[email protected] · Vendor Advisory
- https://github.com/advisories/GHSA-gm2x-2g9h-ccm8OSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-gm2x-2g9h-ccm8OSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.