Skip to main content

CVE-2026-44973 — Vulnerability in go-git/go-billy/v5 — CVE Details

HIGH

go-billy has path traversal vulnerabilities

Published May 14, 2026Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.47%). Schedule for your next planned update.

Does your project use an affected github.com/go-git/go-billy/v5 version?

Paste your go.sum to check it for CVE-2026-44973 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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. 🙇

Advisory Timeline

  • First published May 14, 2026 (196 days ago).
  • Last revised September 10, 2026 — 118 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/go-git/go-billy/v5 to 5.9.0 or later
go get github.com/go-git/go-billy/v5@v5.9.0
Go
Update github.com/go-git/go-billy/v6 to 6.0.0-alpha.1 or later
go get github.com/go-git/go-billy/v6@v6.0.0-alpha.1

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Go (2).

PackageFixed In
github.com/go-git/go-billy/v5 Go · Affected: All versions5.9.0
github.com/go-git/go-billy/v6 Go · Affected: All versions6.0.0-alpha.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

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

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-44973?
go-billy has path traversal vulnerabilities. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-44973?
CVE-2026-44973 affects github.com/go-git/go-billy/v5 and github.com/go-git/go-billy/v6. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-44973 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.47%
EPSS percentile: 32.6

This is a below-median EPSS score — only 32.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-qw64-3x98-g7q2
GO-2026-5597

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum