{"id":"CVE-2026-33762","aliases":["CVE-2026-33762","GHSA-gm2x-2g9h-ccm8","GO-2026-4909"],"related":["CGA-9gc9-qwwq-vf3j"],"kind":"vulnerability","state":"published","title":"go-git: Missing validation decoding Index v4 files leads to panic","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`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.\n\nThis issue only affects Git index format version 4. Earlier formats (`go-git` supports only `v2` and `v3`) are not vulnerable to this issue.\n\nAn 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.\n\nExploitation 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.\n\n### Patches\n\nUsers should upgrade to `v5.17.1`, or the latest `v6` [pseudo-version](https://go.dev/ref/mod#pseudo-versions), in order to mitigate this vulnerability.\n\n### Credit\n\ngo-git maintainers thank @kq5y for finding and reporting this issue privately to the `go-git` project.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Missing validation decoding Index v4 files leads to panic in github.com/go-git/go-git","format":"markdown","source":"go"},{"lang":"es","text":"go-git es una biblioteca de implementación de Git extensible escrita en Go puro. Antes de la versión 5.17.1, el decodificador de índice de go-git para la versión 4 del formato no valida la longitud del prefijo del nombre de ruta antes de aplicarlo al nombre de ruta decodificado previamente. Un archivo de índice creado maliciosamente puede desencadenar una operación de segmento fuera de límites, lo que resulta en un pánico en tiempo de ejecución durante el análisis normal del índice. Este problema solo afecta a la versión 4 del formato de índice de Git. Formatos anteriores (go-git solo soporta v2 y v3) no son vulnerables a este problema. Este problema ha sido parcheado en la versión 5.17.1.","source":"nvd"}],"published":"2026-03-30T17:05:23.000Z","modified":"2026-11-02T23:17:20.417Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.8,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.8,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.8,"rating":"LOW"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"version":"< 5.17.1","status":"affected"}],"vendor":"go-git","product":"go-git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.17.1"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/go-git/go-git","purl":"pkg:golang/github.com/go-git/go-git","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v4","purl":"pkg:golang/github.com/go-git/go-git/v4","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.17.1"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"go"},{"ranges":[{"status":"affected","fixed":"5.17.1"}],"vendor":"go-git_project","product":"go-git","cpe":"cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-gm2x-2g9h-ccm8","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-git/go-git/commit/e9b65df44cb97faeba148b47523a362beaecddf9","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/go-git/go-git/releases/tag/v5.17.1","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33762","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/go-git/go-git","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-31T18:50:26.187Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33762","url":"https://www.cve.org/CVERecord?id=CVE-2026-33762","licence":"CVE Terms of Use","modified":"2026-11-02T22:58:36.908Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gm2x-2g9h-ccm8","url":"https://github.com/advisories/GHSA-gm2x-2g9h-ccm8","licence":"CC-BY-4.0","modified":"2026-11-02T23:15:03.598Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4909","url":"https://pkg.go.dev/vuln/GO-2026-4909","licence":"CC-BY-4.0","modified":"2026-04-08T15:44:15.876Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33762","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33762","licence":"Public domain","modified":"2026-11-02T23:17:20.417Z"}],"updatedAt":"2026-11-25T22:59:17.583Z","epss":{"score":0.00199,"percentile":0.10189,"date":"2026-12-01T12:00:22.000Z"}}