Skip to main content

CVE-2026-34165

MEDIUM
Integer Underflow (CWE-191)
2026-03-30 https://github.com/go-git/go-git GHSA-jhf3-xxhw-2wpp
5.0
CVSS 3.1 · Vendor: https://github.com/go-git/go-git
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
Impact

CVSS 5.0 with local attack vector (AV:L) and low privilege requirement (PR:L) combined with required user interaction (UI:R) produces a moderate but real risk profile. The attack vector is constrained to local exploitation, and the attacker must already possess low-privilege access to the system and the ability to write to or modify repository files. CVSS emphasizes availability impact (A:H) with no confidentiality or integrity compromise. The integer overflow tag and DoS nature suggest this is not a speculative scoring but a confirmed memory exhaustion mechanism. However, the requirement for local file system write access and user interaction significantly reduces exploitability compared to remote network-vector vulnerabilities. Risk is elevated for development teams using untrusted dependency sources or for CI/CD pipelines that process externally-supplied Git repositories without repository integrity validation.

Exploit ScenarioDerived

An attacker with local access to a shared development environment or a compromised CI/CD worker injects a maliciously crafted .idx file into a Git repository. When a developer or automated process uses go-git v5 to perform repository operations (clone, fetch, or index parsing), the integer overflow in the index parser causes a memory allocation miscalculation. The parser then attempts to write beyond the allocated buffer, rapidly consuming heap memory until the process is terminated by the OS out-of-memory killer, resulting in service disruption. No publicly available exploit code has been identified, but the attack is trivial to execute for any actor with file system write privileges to the target repository.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Maliciously crafted .idx files in go-git v5 cause asymmetric memory consumption leading to Denial of Service through integer overflow vulnerabilities. Exploitation requires local write access to the .git directory, limiting attack surface to scenarios where an attacker has already compromised repository access or can inject files into a shared repository. No public exploit code or active exploitation has been confirmed; however, the low CVSS complexity and requirement for only low-privilege local access make this a moderate operational concern for development environments and CI/CD systems that process untrusted repositories.

RemediationAI

Vendor-released patch: Upgrade go-git to v5.17.1 or migrate to the latest v6 pseudo-version. For Go module-based projects, execute go get -u github.com/go-git/go-git/v5@v5.17.1 or transition to v6 via go get -u github.com/go-git/go-git/v6@latest. If immediate patching is not feasible, restrict write access to .git directories in shared development or CI/CD environments and validate repository sources before processing. See the official advisory at https://github.com/go-git/go-git/security/advisories/GHSA-jhf3-xxhw-2wpp for additional context.

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

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go

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

Technical ContextAI · show details

The vulnerability exists in go-git (github.com/go-git/go-git), a pure Go implementation of Git that lacks bindings to platform-specific code. The root cause is an integer overflow condition (CWE-191) triggered by maliciously formatted Git index (.idx) files. Git index files contain metadata about staged objects and are parsed during repository operations. The integer overflow causes memory allocation calculations to wrap, resulting in undersized buffer allocation followed by excessive write operations that exhaust heap memory. This is a parsing-layer vulnerability in the go-git library's index file handler, affecting any application that uses go-git v5 to interact with Git repositories without validating index file integrity.

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 5.0 MEDIUM
AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
SUSE 3.1 LOW
AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
Red Hat 5.0 MEDIUM

Primary rating from Vendor (https://github.com/go-git/go-git).

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
High

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 30, 2026 - 17:17 nvd
MEDIUM 5.0

DescriptionCVE.org

Impact

A vulnerability has been identified in which a maliciously crafted .idx file can cause asymmetric memory consumption, potentially exhausting available memory and resulting in a Denial of Service (DoS) condition.

Exploitation requires write access to the local repository's .git directory, it order to create or alter existing .idx files.

Patches

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

Credit

The 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
NVD CVE.org EPSS Vulnrichment GHSA Vendor 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:go/github.com_go-git_go-git_v5

Vendor StatusVendor

SUSE

Severity: Low
Product Status
openSUSE Tumbleweed Fixed

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