Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-git/go-billy/v6
  4. ›
  5. CVE-2026-44973

CVE-2026-44973: go-billy has path traversal vulnerabilities

May 14, 2026 (updated June 9, 2026)

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.

References

  • github.com/advisories/GHSA-qw64-3x98-g7q2
  • github.com/go-git/go-billy/releases/tag/v5.9.0
  • github.com/go-git/go-billy/releases/tag/v6.0.0-alpha.1
  • github.com/go-git/go-billy/security/advisories/GHSA-qw64-3x98-g7q2
  • nvd.nist.gov/vuln/detail/CVE-2026-44973

Code Behaviors & Features

Detect and mitigate CVE-2026-44973 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.0.0-alpha.1

Fixed versions

  • 6.0.0-alpha.1

Solution

Upgrade to version 6.0.0-alpha.1 or above.

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/go-git/go-billy/v6/CVE-2026-44973.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:56 +0000.