{"id":"CVE-2026-33762","published":"2026-03-31T13:47:42Z","modified":"2026-11-02T22:58:36Z","title":"go-git: Missing validation decoding Index v4 files leads to panic","vendor":"go-git","product":"go-git","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.8,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00181,"percentile":0.07875,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-gm2x-2g9h-ccm8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/go-git/go-git/commit/e9b65df44cb97faeba148b47523a362beaecddf9","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-git/go-git/releases/tag/v5.17.1","tags":["x_refsource_MISC"]}],"priority":{"score":3.5,"factors":[{"name":"EPSS percentile","points":1.57},{"name":"CVSS severity","points":1.96}]},"vendorSlug":"go-git","affectedVersions":[{"vendor":"go-git","product":"go-git","versions":["< 5.17.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-31T18:50:26.187250Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-git/go-git/v5","vulnerableRanges":["<5.17.1"],"patched":["5.17.1"],"from":["GHSA-gm2x-2g9h-ccm8","GO-2026-4909"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-4909"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git/v4","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-4909"],"provenance":"source"}],"summary":{"text":"go-git, the pure Go git implementation library, has a missing validation flaw in its index decoder for format version 4, where the path name prefix length is not checked before being applied to the previously decoded path name. An attacker who can supply a maliciously crafted index file, with local access and a low-privilege account plus user interaction, can trigger an out-of-bounds slice operation that causes a runtime panic during normal index parsing; the flaw affects only index format version 4 and is fixed in version 5.17.1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:32Z"},"euvd":{"id":"EUVD-2026-17443","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-21613","published":"2025-01-06","fixed":"5.13.0","kev":false},{"cve":"CVE-2025-21614","published":"2025-01-06","fixed":"5.13.0","kev":false},{"cve":"CVE-2026-25934","published":"2026-02-09","fixed":"5.16.5","kev":false,"link":{"from":"CVE-2026-25934","to":"CVE-2026-33762","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v5","fromFixed":"5.16.5","toFixed":"5.17.1","daysApart":50}]}},{"cve":"CVE-2026-33762","published":"2026-03-31","fixed":"5.17.1","kev":false},{"cve":"CVE-2026-34165","published":"2026-03-31","fixed":"5.17.1","kev":false},{"cve":"CVE-2026-41506","published":"2026-05-08","fixed":"5.18.0","kev":false,"link":{"from":"CVE-2026-33762","to":"CVE-2026-41506","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v5","fromFixed":"5.17.1","toFixed":"5.18.0","daysApart":38}]}},{"cve":"CVE-2026-45022","published":"2026-05-27","fixed":"5.19.0","kev":false}],"package":"Go:github.com/go-git/go-git/v5"}}