Skip to main content

CVE-2026-33762

| EUVDEUVD-2026-17443 LOW
Improper Validation of Array Index (CWE-129)
2026-03-30 https://github.com/go-git/go-git GHSA-gm2x-2g9h-ccm8
2.8
CVSS 3.1 · Vendor: https://github.com/go-git/go-git
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
Impact

This vulnerability presents low real-world risk despite its clear technical merit. The CVSS score of 2.8 with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L correctly reflects multiple limiting factors: attack vector is local (AV:L), requiring direct filesystem access; privileges required are low (PR:L), but user interaction is mandatory (UI:R); and impact is availability only (A:L), with no confidentiality or integrity compromise. The EPSS score and exploitation probability are not provided in available data. No CISA KEV confirmation of active exploitation is present, and no public exploit code is referenced. The vulnerability requires an attacker to already possess write access to the target repository's .git directory, which is a significant precondition typically reserved for repository collaborators, CI/CD systems, or compromised development machines. For applications designed to handle panics gracefully or running in sandboxed environments, the practical impact is further reduced. Organizations using go-git should prioritize patching in development and build environments where untrusted repositories may be cloned, but the risk is substantially lower than network-based vulnerabilities.

Exploit ScenarioDerived

An attacker with write access to a shared or CI/CD repository crafts a malicious .git/index file using Git index format version 4 with an invalid path prefix length field. When a go-git application (or a CI/CD pipeline using go-git) attempts to read the index-such as during a git clone, status, or diff operation-the decoder encounters the malformed prefix length and attempts an out-of-bounds slice operation on a previously decoded path name, triggering a runtime panic. If the application does not recover from the panic, the process terminates, resulting in denial of service. No public exploit code has been identified at time of analysis, and successful exploitation requires local filesystem write access combined with triggering the affected code path.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 30, 2026

Denial-of-service vulnerability in go-git v5 and earlier versions allows local attackers with write access to the repository to craft a malicious Git index file (format version 4) that triggers an out-of-bounds slice operation during parsing, causing application panic and process termination. The vulnerability requires local disk write access to the .git directory and user interaction (file opening), making it a low-severity but exploitable DoS vector for applications that do not gracefully handle panics. Patch versions v5.17.1 and v6 are available.

RemediationAI

Users should upgrade go-git to version v5.17.1 or later, or migrate to the latest v6 pseudo-version. In Go projects using go.mod, run go get -u github.com/go-git/go-git/v5@v5.17.1 or go get github.com/go-git/go-git/v6@latest. No known workarounds exist to mitigate the vulnerability short of upgrading, though applications may implement panic recovery mechanisms (defer/recover) to prevent process termination when parsing untrusted Git repositories. Detailed remediation guidance is available in the official advisory at https://github.com/advisories/GHSA-gm2x-2g9h-ccm8.

Affected VersionsENISA

go-git < 5.17.1

Affected Packages

go github.com/go-git/go-git no fix
go github.com/go-git/go-git/v4 no fix
go github.com/go-git/go-git/v5 fix: 5.17.1
euvd go_git fix: 5.17.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

go-git is a pure Go implementation of the Git version control system that includes an index file parser supporting Git index format versions 2, 3, and 4. The vulnerability exists in the format version 4 decoder, which processes delta-compressed path names using a prefix-length encoding scheme. The decoder fails to validate that the decoded prefix length is within the bounds of the previously decoded path name before performing a slice operation on that path. This triggers Go's runtime bounds check, resulting in a panic rather than silent data corruption. The root cause is an insufficient input validation error (CWE-129: Improper Validation of Array Index) in the index parsing logic. The affected CPE is pkg:go/github.com_go-git_go-git_v5, indicating Go module imports of the go-git library at version 5 and earlier minor versions.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/go-git/go-git) PRIMARY 2.8 LOW
AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

Primary rating from Vendor (https://github.com/go-git/go-git) · only source for this CVE.

CVSS VectorVendor: https://github.com/go-git/go-git

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 30, 2026 - 17:05 nvd
LOW 2.8

DescriptionCVE.org

Impact

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.

An attacker able to supply a crafted .git/index file can cause applications using go-git to panic while reading the index. If the application does not recover from panics, this results in process termination, leading to a denial-of-service (DoS) condition.

Exploitation requires the ability to modify or inject a Git index file within the local repository in disk. This typically implies write access to the .git directory.

Patches

Users should upgrade to v5.17.1, or the latest v6 pseudo-version, in order to mitigate this vulnerability.

Credit

go-git maintainers thank @kq5y for finding and reporting this issue privately to the go-git project.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

14
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy