Loading...
Skip to main content

CVE-2026-44973 — Vulnerability in github.com/go-git/go-billy/v5 —...

HIGH

go-billy has path traversal vulnerabilities

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

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](https://go.dev/blog/osroot) primitive [os.Root](https://pkg.go.dev/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 (151 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: go (2).

PackageEcosystemAffectedFixed In
github.com/go-git/go-billy/v5
go
All versions5.9.0
github.com/go-git/go-billy/v6
go
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. 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

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

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

Related CVEs

  • CVE-2023-49569
    CRITICAL

    Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients

  • CVE-2020-28991
    CRITICAL

    Improper Access Control in Gitea

  • CVE-2025-21613
    CRITICAL

    go-git has an Argument Injection via the URL field

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2026-107813
    HIGH

    Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies