Improper Validation of Array Index Affecting github.com/go-git/go-git/v4/plumbing/format/index package, versions >=4.0.0-rc2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITGOGITV4PLUMBINGFORMATINDEX-15855247
  • published31 Mar 2026
  • disclosed30 Mar 2026
  • creditkq5y

Introduced: 30 Mar 2026

CVE-2026-33762  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Improper Validation of Array Index through improper validation in the index decoding for version 4 files. An attacker with write access to the .git directory to modify or inject the index file can cause a panic and terminate the process by supplying a maliciously crafted .git/index file that triggers an out-of-bounds slice operation during index parsing.

CVSS Base Scores

version 4.0
version 3.1