CVE-2026-33762Go-git Project Go-git
Low 2.8
Follow: this CVE · Go-git Project · Go-git Project Go-git We alert you by email or Slack (account required).
- Priority
- 17
- CVSS 3.1
- 2.8
- EPSS
- —
- Auth required
- Yes
- Published
- Mar 31, 2026
- Updated
- Nov 2, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-129
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for Go-git.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-git/go-git |
all |
no fixed version | — |
| Go | github.com/go-git/go-git/v4 |
all |
no fixed version | — |
| Go | github.com/go-git/go-git/v5 |
< 5.17.1 |
5.17.1 |
go get github.com/go-git/go-git/v5@v5.17.1 |
| Go | github.com/go-git/go-git/v5 |
< 5.17.1 |
5.17.1 |
go get github.com/go-git/go-git/v5@v5.17.1 |
Per OSV / GitHub Advisories (GO-2026-4909, GHSA-gm2x-2g9h-ccm8). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| go-git_project | go-git | < 5.17.1 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com
- github.com Product Release Notes
- github.com Vendor Advisory