Advisory

GHSA-m3xc-h892-ggx6

Also known as: CVE-2026-44740, GO-2026-5490

Summary

go-billy: Lack of depth and cycle detection in symlink resolution may lead to infinite loops and resource exhaustion

Details

Impact
Multiple components may improperly handle crafted or malformed input, resulting in panics, infinite loops, uncontrolled recursion, or excessive resource consumption.

These issues arise from insufficient validation and missing safety mechanisms such as cycle detection, recursion limits, or defensive handling of unexpected states when processing untrusted repository data and filesystem structures.

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 for finding and reporting this issue privately to the go-git project. 🙇

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-13 15:29 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/go-git/go-billy/v5

Go · All systems

Affected

  • introduced 0, fixed 5.9.0 (semver)

Fixed versions

5.9.0

Fix

github.com/go-git/go-billy/v6

Go · All systems

Affected

  • introduced 0, fixed 6.0.0-alpha.1 (semver)

Fixed versions

6.0.0-alpha.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences