Skip to main content

go-git EUVDEUVD-2026-54527

| CVE-2026-71557 MEDIUM
Path Traversal (CWE-22)
2026-08-07 GitHub_M GHSA-qgq7-7hm3-q39j
6.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker hosts malicious Git server
  2. Delivery
    Server advertises crafted reference name with directory traversal (e.g., refs/heads/../../config)
  3. Exploit
    Victim application initiates clone or fetch via go-git
  4. Execution
    go-git resolves reference name as unsanitized filesystem path
  5. Persist
    File written outside .git/refs to arbitrary .git metadata location
  6. Impact
    Repository configuration overwritten or corrupted

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target application to use go-git with the storage/filesystem package (dotgit reference storage) - applications using storage/memory are entirely unaffected and no mitigation is needed for them. The attacker must control a Git server that the vulnerable application connects to (via clone, fetch, or equivalent), or otherwise inject attacker-controlled reference names into the go-git storage pipeline (e.g., through a user-supplied remote URL). The CVSS UI:R metric reflects that an application-level action (triggering a fetch/clone) must be taken; fully autonomous server-side exploitation without any client-initiated operation is not possible. Exploitation is further limited to writing or overwriting files within the .git directory - the traversal escapes the reference storage subtree but not the repository root - and does not directly yield code execution. Applications that restrict remote URLs to trusted sources (allowlists), or that do not process user-supplied remote addresses, have a substantially reduced attack surface.

Impact

The CVSS 3.1 score of 6.3 (Medium) reflects a network-reachable, low-complexity attack that nonetheless requires user interaction (UI:R - an application must initiate a fetch or clone) and carries no confidentiality impact (C:N). The integrity impact is rated High (I:H) because the attacker can overwrite arbitrary files in the .git directory, which can corrupt repository state or inject malicious configuration. The provided CVSS vector assigns PR:L (low privilege required), which appears to reflect the attacker's need to control or impersonate a Git server; from the victim system's perspective, PR:N is arguably more accurate since no privileges on the client host are required - an independent assessment is noted in the assessed vector fields. No EPSS score was provided, so exploitation probability cannot be quantified. The vulnerability is not in CISA KEV and no public POC has been identified. Real-world risk is meaningful for any pipeline or automation tool that uses go-git with filesystem-backed storage to clone from external or user-supplied repositories - a common pattern in CI/CD systems. The attack surface is smaller than it might appear: only applications with network-reachable or user-controlled remote URLs represent realistic targets.

Exploit ScenarioDerived

An attacker operating a malicious Git server advertises a reference named refs/heads/../../config (or a NTFS-disguised variant like refs/heads/.. /config). When a CI pipeline or developer tool built on go-git performs a clone or fetch against this server, the unsanitized reference name causes go-git to write the reference file to .git/config rather than the intended location under .git/refs/heads/, overwriting or corrupting the repository's core configuration file. No public exploit code exists, but the attack requires only a valid Git server implementation capable of advertising arbitrary reference names, which is straightforward to implement.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 07, 2026

Path traversal in go-git's filesystem-backed reference storage allows a malicious Git server to overwrite arbitrary files within the .git directory - including sensitive metadata like .git/config and .git/HEAD - by advertising crafted reference names containing .. sequences. Any application using go-git with the storage/filesystem package that clones from or fetches untrusted remote repositories is affected; versions prior to 5.19.2 (v5 branch) and 6.0.0-alpha.5 (v6 branch) are vulnerable. No public exploit code or CISA KEV listing has been identified at time of analysis, but the attack is straightforward and requires only that an attacker control a Git server the victim application connects to.

RemediationAI

The primary fix is to upgrade to go-git v5.19.2 (for the v5 module) or v6.0.0-alpha.5 (for the v6 module), both of which validate reference names at all dotgit storage entry points and reject names that escape the reference storage subtree. Patches are available via https://github.com/go-git/go-git/releases/tag/v5.19.2 and https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5. For applications that cannot immediately upgrade, the vendor recommends avoiding clones or fetches from untrusted Git servers until patching is possible - note this does not prevent exploitation if users can supply arbitrary remote URLs. Applications using exclusively storage/memory require no action. A temporary mitigation for applications using filesystem-backed storage is to validate reference names before passing them to go-git storage APIs; however, the vendor explicitly notes this is not a substitute for upgrading because application-level validation is harder to make comprehensive than the library-level fix, particularly for NTFS and HFS+ canonicalization edge cases. Switching to in-memory storage (storage/memory) eliminates the attack surface entirely but may not be architecturally feasible and removes persistence.

Affected VersionsENISA

go-git 6.0.0-alpha.1, < 6.0.0-alpha.5
go-git < 5.19.2

Affected Packages

go github.com/go-git/go-git/v5 fix: 5.19.2
go github.com/go-git/go-git/v6 fix: 6.0.0-alpha.5
euvd go_git fix: 5.19.2
euvd go_git_6_0_0_alpha_1 fix: 6.0.0-alpha.5

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 (CPE: cpe:2.3:a:go-git:go-git) is a pure Go implementation of the Git protocol and storage layer, widely used in Go-based CI/CD tooling and developer utilities. Loose references in Git are stored as individual files under .git/<reference-name>, so the reference name directly maps to a filesystem path. The storage/filesystem/dotgit package previously used reference names as path components without resolving or validating them against the reference storage root, a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) root cause. A name like refs/heads/../../config resolves to .git/config on the host filesystem, escaping the intended storage subtree. The patch adds a validReferenceName() gate at every dotgit storage entry point that rejects names containing .. components, control characters, Windows volume prefixes, and HFS+/NTFS canonicalization disguises (e.g., .. , ..::$INDEX_ALLOCATION, Unicode ignored-codepoint variants), mirroring defenses already applied to submodule names in the same codebase. The in-memory storage backend (storage/memory) is unaffected because reference names are never resolved to filesystem paths in that implementation.

Know when Go Git gets its next vulnerability

  • 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 (GitHub_M) PRIMARY 6.3 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L
vuln.today AI 7.1 HIGH

Attacker needs only to host a malicious Git server (no privileges on victim system, so PR:N); client application must initiate a fetch/clone (UI:R); no confidentiality impact since only writes occur.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
SUSE 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Red Hat 6.3 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Aug 07, 2026 - 17:17 EUVD

DescriptionCVE.org

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Medium
popular Go git library used in CI/CD and developer tooling
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC 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 Yes
EPSS 0.3%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP4 SUSE Linux Enterprise Module for Public Cloud 15 SP4 SUSE Linux Enterprise Server 15 SP4 SUSE Linux Enterprise Server for SAP Applications 15 SP4 SUSE Manager Proxy 4.3 SUSE Manager Retail Branch Server 4.3 SUSE Manager Server 4.3 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5 SUSE Linux Enterprise Module for Public Cloud 15 SP5 SUSE Linux Enterprise Server 15 SP5 SUSE Linux Enterprise Server for SAP Applications 15 SP5 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 12 Affected

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