Live threats

All CVEs / Go-git Project

CVE-2026-33762Go-git Project Go-git

Low 2.8

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-git.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
go-git_projectgo-git< 5.17.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.