Skip to main content

go-billy CVE-2026-44973

HIGH
Path Traversal (CWE-22)
2026-05-14 https://github.com/go-git/go-billy GHSA-qw64-3x98-g7q2
8.1
CVSS 3.1 · Vendor: https://github.com/go-git/go-billy
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to application
  2. Delivery
    Submit crafted path with .. sequences
  3. Exploit
    Application passes path to go-billy
  4. Execution
    Path sanitization fails
  5. Persist
    Traverse outside base directory
  6. Impact
    Access/modify unauthorized files

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 consuming application to expose go-billy filesystem operations to user-controlled path input AND rely on go-billy (specifically vulnerable implementations like osfs.ChrootOS) for security boundary enforcement rather than implementing independent path validation. The application must run with privileges sufficient to access files outside the intended base directory when traversal occurs. CVSS vector PR:L indicates low-privilege authentication is required, meaning the attacker needs valid credentials to the application but not elevated system privileges. The vulnerability is NOT exploitable against applications that use go-billy purely for abstraction without security expectations, implement their own robust path validation before calling go-billy, or restrict go-billy operations to non-user-controlled paths. Limiting factors include: the library-nature of go-billy means no direct network exposure exists - an intermediary application must bridge network input to filesystem calls; applications not using the deprecated ChrootOS or similar boundary-enforcement features may not be vulnerable; and applications already validating paths with filepath.Clean or similar methods may have partial mitigation, though library-level fixes remain necessary.

Impact

CVSS 8.1 (High) indicates network-exploitable vulnerability with low attack complexity requiring low-privilege authentication, resulting in high confidentiality and integrity impact without availability disruption. The CVSS vector AV:N/AC:L/PR:L/UI:N/S:U suggests remote authenticated users can exploit this with minimal effort. However, real-world risk depends heavily on deployment context: go-billy is a library, not directly network-exposed. Exploitation requires the consuming application to expose go-billy filesystem operations to network-controlled input AND rely on go-billy for security isolation - a use case the vendor explicitly states was not the original design intent. No EPSS score or KEV listing provided, and no public exploit identified at time of analysis, suggesting limited observed exploitation. The vulnerability was responsibly disclosed by two independent researchers, indicating genuine security research interest but not widespread attacker activity. Primary risk is to applications that misunderstood go-billy's security boundary guarantees, particularly those using the now-deprecated ChrootOS implementation for security-critical isolation. The availability of patches in both v5.9.0 (stable) and v6.0.0-alpha.1 (leveraging os.Root) significantly reduces ongoing risk for applications that can upgrade. Organizations should prioritize remediation if they use go-billy in security-sensitive contexts where filesystem isolation is critical, but may deprioritize if go-billy is used purely for abstraction without security requirements.

Exploit ScenarioDerived

An attacker with low-privilege authenticated access to an application using vulnerable go-billy for file operations crafts a malicious file path containing dot-dot-slash sequences (e.g., ../../etc/passwd or ../../../app/secrets/config.yaml). The application passes this attacker-controlled path to go-billy's file access methods, expecting the library's ChrootOS or similar implementation to enforce directory boundaries. Due to insufficient path sanitization, go-billy resolves the traversal sequence and accesses files outside the intended base directory, allowing the attacker to read sensitive configuration files, application source code, or credentials, or potentially overwrite critical files if the application allows write operations. Publicly available exploit code exists (note: source indicates researchers reported the issue, but does not confirm public POC availability - verify from references).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 14, 2026

Path traversal vulnerabilities in go-billy (Go filesystem abstraction library) allow authenticated attackers with network access to escape intended directory boundaries and access arbitrary filesystem locations. The vulnerability affects all versions prior to v5.9.0 and v6.0.0-alpha.1, with the osfs.ChrootOS implementation particularly impacted due to insufficient path sanitization of dot-dot-slash sequences. Applications using go-billy for filesystem isolation are at risk of unauthorized file access. Vendor has released patches in v5.9.0 and v6.0.0-alpha.1, with ChrootOS deprecated in v5 and removed in v6 in favor of the new BoundOS implementation backed by Go's traversal-resistant os.Root primitive. No public exploit identified at time of analysis, but CVSS 8.1 reflects high confidentiality and integrity impact.

RemediationAI

Upgrade to patched versions: go-billy v5.9.0 for v5 users or v6.0.0-alpha.1 for v6 early adopters, as confirmed by GitHub advisory GHSA-qw64-3x98-g7q2 and release notes at https://github.com/go-git/go-billy/releases/tag/v5.9.0 and https://github.com/go-git/go-billy/releases/tag/v6.0.0-alpha.1. For v5 users, immediately migrate from osfs.ChrootOS (now deprecated) to osfs.BoundOS by changing initialization to osfs.New(path, WithBoundOS()) - this provides improved boundary enforcement without requiring major version upgrade. For strongest security posture, migrate to v6 stable when available, which uses Go 1.23's os.Root primitive for kernel-backed traversal protection with file descriptor isolation that eliminates TOCTOU and symlink escape risks. If immediate upgrade is not feasible, implement application-level path validation before passing user-controlled paths to go-billy operations: explicitly reject any path containing dot-dot sequences, validate against an allowlist of permitted directories, and resolve paths to absolute form before comparison against base directory boundaries. Note that application-level validation is a temporary workaround only - the library-level fix is required for comprehensive protection as path sanitization must occur at the filesystem abstraction layer. Review all code using go-billy to identify whether it relies on the library for security isolation versus mere abstraction, and prioritize upgrades accordingly.

Affected Packages

go github.com/go-git/go-billy/v5 fix: 5.9.0
go github.com/go-git/go-billy/v6 fix: 6.0.0-alpha.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

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

Technical ContextAI · show details

go-billy is a filesystem abstraction library for Go, commonly used in the go-git project and other applications requiring virtual filesystem operations. The vulnerability stems from CWE-22 (path traversal) - inadequate validation of user-supplied file paths before filesystem operations. Specifically, the library's path sanitization failed to properly neutralize dot-dot-slash (../) sequences and enforce boundary constraints across different built-in implementations including osfs.ChrootOS. The affected packages are github.com/go-git/go-billy/v5 and v6. The v6 remediation leverages Go 1.23's new os.Root API, which provides kernel-level protection against traversal attacks through file descriptor-based directory containment, eliminating TOCTOU races and symbolic link escape vectors that plagued filepath.Clean-based approaches. The inconsistency across go-billy's implementations meant that applications could not reliably trust the library's isolation guarantees, even when using components explicitly designed for chroot-like behavior.

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-billy) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
SUSE HIGH
Red Hat 8.1 HIGH

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

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

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

DescriptionCVE.org

Impact

Multiple path traversal issues exist across different components of go-billy. Insufficient path sanitization and boundary enforcement may allow crafted paths (e.g., using ..) to escape intended base directories.

While go-billy was not originally designed to provide a strong security boundary, some of these issues were inconsistent across some of the built-in implementations. This results in scenarios where applications relying on go-billy for some level of isolation may inadvertently expose access to unintended filesystem locations.

The osfs.ChrootOS implementation is notably affected by this vulnerability and is now deprecated in v5, removed at v6. Users are recommended to move on to osfs.BoundOS instead: osfs.New(path, WithBoundOS()).

Users requiring stronger security boundary enforcement are recommended to upgrade to v6, where the osfs implementation are backed by the traversal-resistant primitive os.Root.

Patches

Users should upgrade to a patched version in order to mitigate this vulnerability. Versions prior to v5 are likely to be affected, users are recommended to upgrade to a supported go-billy version.

Credits

Thanks to @faran66 and @vnykmshr for finding and separately reporting this issue privately to the go-git project. 🙇

Executive ViewAI

Why It Matters

CVE-2026-44973 is a path traversal vulnerability in go-billy that allows authenticated users to bypass filesystem isolation controls and access files outside intended boundaries, potentially exposing sensitive data or enabling unauthorized modifications across any application using this library for access controls. Organizations running applications dependent on go-billy for filesystem sandboxing should prioritize inventory and remediation to prevent data exfiltration and unauthorized file manipulation.

Business Impact: High
Compensating Controls

Vendor-released patch: v5.9.0 and v6.0.0-alpha.1 and later. If immediate upgrade is impossible, implement network-level access controls to restrict authenticated user connections to go-billy-dependent applications, and enable detailed filesystem auditing to detect traversal attempts; however, these are insufficient long-term mitigations and patch deployment is mandatory.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS 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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
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.

Affected Products (CPE)CVE.org

pkg:go/github.com_go-git_go-billy_v5
pkg:go/github.com_go-git_go-billy_v6

Vendor StatusVendor

SUSE

Severity: Important

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