CVE-2026-33762
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.
How to fix
- go-git_project go-git5.17.1 or later
- github.com/go-git/go-git/v55.17.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| go-git_project go-git | v < 5.17.1 | 5.17.1 |
| github.com/go-git/go-git/v5Go | v < 5.17.1, v ≤ 5.17.0 | 5.17.1 |
| github.com/go-git/go-gitGo | No range specified | — |
| github.com/go-git/go-git/v4Go | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.