CVE-2026-33762

Low

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.

SeverityLow
CVSS2.8
Exploit probability—
ProductGo-git
PublishedMar 31, 2026
First seenMar 31, 2026
Weakness typeCWE-129CWE-129

How to fix

Update
  • go-git_project go-git5.17.1 or later
  • github.com/go-git/go-git/v55.17.1 or later

Affected products

ProductAffected versionsFixed in
go-git_project go-gitv < 5.17.15.17.1
github.com/go-git/go-git/v5Gov < 5.17.1, v ≤ 5.17.05.17.1
github.com/go-git/go-gitGoNo range specified—
github.com/go-git/go-git/v4GoNo range specified—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.