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

> Attackers can cause infinite loops and resource exhaustion in go-billy via crafted symlink structures, leading to denial of service.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 1 Jun 2026
- **Updated:** 1 Jun 2026
- **Also known as:** ALSA-2026:46391, CLEANSTART-2026-BS27714, CLEANSTART-2026-ZI20918, DEBIAN-CVE-2026-44740, GHSA-m3xc-h892-ggx6, GO-2026-5490, MINI-22r8-v227-x3x8, MINI-2584-cx3v-2g8x, MINI-25pv-cw5w-v9j5, MINI-25wr-x59p-9vqf, MINI-26j2-q99q-6c64, MINI-27r8-ch73-xc22, MINI-28mv-f52h-qp47, MINI-29cv-fwpm-9462, MINI-2hpx-x2xm-qw5h, MINI-35rf-32jw-j47v, MINI-35x9-5492-w74p, MINI-3h5q-phfg-fxcj, MINI-3h8h-8wqx-9r79, MINI-3r7w-4c9p-h6f6, MINI-3xhv-g84p-6gc6, MINI-476f-2mmx-h9p5, MINI-47hp-52x6-vxfj, MINI-47j2-rc24-84hw, MINI-47vq-pgqx-ghh5, MINI-497v-h6g5-q2mr, MINI-4g34-xw6g-fmvv, MINI-4h2f-fvq4-5hfm, MINI-4hrv-j3wj-j2p3, MINI-4pmc-m9r7-vm4p, MINI-4qmc-7phr-99wf, MINI-4v54-9mgf-c5g8, MINI-4vc7-r7x8-w455, MINI-4x7m-q6qj-77hc, MINI-59pw-89qx-h5g6, MINI-5cpr-rjr7-gc84, MINI-5fgh-ggv6-m9c8, MINI-5h38-cx9r-ggx2, MINI-5mpm-8p9r-rpfj, MINI-5xvg-575q-m5g7, MINI-6937-56cj-6v85, MINI-6ccm-x4xr-5x9h, MINI-6f8w-xxgc-3v33, MINI-6jmp-j8pr-c2hf, MINI-6jq6-pjcr-v99m, MINI-6m55-cx88-p4gv, MINI-6mw7-9j42-q56p, MINI-6px7-mjjc-8pvc, MINI-6rjc-w3x5-fggw, MINI-6v5m-7mqx-p757, MINI-6x92-pjw6-5885, MINI-73rc-gvg3-q38r, MINI-749q-4r69-f7pc, MINI-755p-jrwh-8h4p, MINI-75gr-x7qf-489m, MINI-7hgg-6g9h-c564, MINI-7p5j-rf47-8x9r, MINI-7q5q-72xg-f2pf, MINI-7xg3-cqq5-vcrq, MINI-84q5-vj83-58hr, MINI-85hx-2f24-gr9j, MINI-8652-2m75-w4wq, MINI-8c8w-9h7j-jf9q, MINI-8p37-7hv8-236f, MINI-8rhg-4cpp-8mxw, MINI-8xv8-vp9x-q683, MINI-93x4-crfv-mc95, MINI-96cp-v5g5-gc7h, MINI-993r-c62g-w9m4, MINI-99gc-87px-mcm6, MINI-9g29-q9qc-p4ch, MINI-9g7m-5xhj-c848, MINI-9gc4-3g29-vwc3, MINI-9m88-gx96-m8jx, MINI-9qg6-x92x-7hph, MINI-9vc5-4mwv-w2wc, MINI-9vp7-4r98-5mr8, MINI-c5v7-9w9g-cx92, MINI-cjmr-fjgr-2mq9, MINI-cmq8-6v6w-h58p, MINI-cvw9-wf94-jxh3, MINI-cw9h-4395-mg76, MINI-f5cj-7xq5-v853, MINI-f74x-gf2r-m8cc, MINI-f9vq-6f46-phgm, MINI-fcgc-g82q-73xp, MINI-ff9f-j3wx-6mcp, MINI-ffm8-hf88-fxx9, MINI-ffxq-xc45-4294, MINI-fg78-366f-4g26, MINI-fhmc-pxcm-98f9, MINI-fj77-7rfx-4xhx, MINI-fvfc-rxgh-4jww, MINI-fvfm-rh86-j82q, MINI-fvp9-vxcf-22qc, MINI-g48f-x5xj-3933, MINI-g94c-h6w3-4qpw, MINI-g99v-4975-hgw8, MINI-gcpr-qxhx-jg9p, MINI-gf86-fhc4-p7gr, MINI-gf94-58qc-jqhv, MINI-gh9w-3vhq-33jg, MINI-ghq3-cf2f-7j4h, MINI-gvmm-qqfq-g9qj, MINI-gvrm-cp56-cmwr, MINI-h32c-xvm3-mv7r, MINI-h493-wg67-p2rj, MINI-h5cg-27mg-25mh, MINI-h5x4-pc67-ghvq, MINI-h8q6-m7pg-x87x, MINI-hcpr-35mr-83p2, MINI-hcxf-926w-6g9q, MINI-hj8w-8q86-7jcv, MINI-hjf9-q3wg-jjr5, MINI-hx6f-93x4-4g2h, MINI-j26g-cq38-fm96, MINI-j2fm-9fpq-v39f, MINI-j457-v556-44fh, MINI-j5cw-ghrr-9m63, MINI-j72w-cg72-5jrw, MINI-j8m8-4qgx-qqm5, MINI-j9hh-mw34-5j29, MINI-jc8q-7jc7-3j23, MINI-jghw-g2qv-x2cx, MINI-jjj5-q2q9-5h5q, MINI-jphc-hqwv-66v8, MINI-jrmv-rfvv-f4jv, MINI-m37f-vm5r-728c, MINI-m69m-2mwj-463w, MINI-mccq-8cjw-678g, MINI-mfx4-hjwv-xxgr, MINI-mh7w-4gwf-fv5j, MINI-mjp8-7m8h-3h95, MINI-mjp9-hh8h-xpr7, MINI-pcff-7f6v-w4p6, MINI-pj5m-7443-cgmp, MINI-pvc5-wm5r-5vjh, MINI-q6pc-p4mv-2mqq, MINI-q869-5m94-4mhh, MINI-q8mx-qpwm-jj42, MINI-q9q4-w3xv-j9rp, MINI-qhwr-cr6m-x468, MINI-qp7r-8pqv-h4hq, MINI-qrr6-5xfp-7857, MINI-qrvq-v574-h54f, MINI-qw23-gx6c-pggp, MINI-r2xv-3pmx-27m8, MINI-r73h-rx98-4m9g, MINI-r79q-696r-6w4m, MINI-r888-m6r4-fj22, MINI-rf5g-wxm9-cf87, MINI-rjq5-rg98-8vx8, MINI-rm38-v737-8mq6, MINI-rp2q-66mw-2v3m, MINI-rp39-mf7g-qqwp, MINI-rrfq-c899-25hr, MINI-rwg3-q4wh-rvch, MINI-v763-p72v-9r54, MINI-vf94-r79x-4m48, MINI-vjfj-2p8w-v62c, MINI-vjxg-wxm5-pcw6, MINI-vm9r-375q-f52v, MINI-vq88-c7f8-5qf2, MINI-w74q-hvx9-g7mf, MINI-w7cx-f74c-6mwc, MINI-w7gg-qhxx-gr57, MINI-wh55-qqxm-2xq7, MINI-wr56-92qq-6rpq, MINI-wvv6-pqxr-7m43, MINI-ww27-ghxv-5jp7, MINI-x6rj-qcfj-ch66, MINI-x72g-hx6v-79r5, MINI-x844-688w-m7r7, MINI-x8cw-p3h2-52h4, MINI-xgq4-c9r9-99x8, MINI-xq5q-r29h-f269, MINI-xr8m-jhg8-9vc7, RHSA-2026:46391, RLSA-2026:46391, ROOT-APP-GOBINARY-CVE-2026-44740, UBUNTU-CVE-2026-44740, openSUSE-SU-2026:10943-1, openSUSE-SU-2026:10996-1

## What is CVE-2026-44740?

CVE-2026-44740 is a medium-severity denial of service vulnerability in go-git go-billy, published on 1 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official 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.

Weakness: CWE-835 (Loop with Unreachable Exit Condition), CWE-674 (Uncontrolled Recursion)

## Which versions are affected by CVE-2026-44740?

5 open source packages ship an affected version, including github.com/go-git/go-billy/v5 and github.com/go-git/go-billy/v6.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/go-git/go-billy/v5` | Go | All versions | 5.9.0 |
| `github.com/go-git/go-billy/v5` | Go | All versions | 5.9.0 |
| `github.com/go-git/go-billy/v5` | Go | All versions | 5.9.0 |
| `github.com/go-git/go-billy/v6` | Go | All versions | 6.0.0-alpha.1 |
| `github.com/go-git/go-billy/v6` | Go | All versions | 6.0.0-alpha.1 |
| `grafana` | AlmaLinux:8 | All versions | 9.2.10-32.el8_10 |
| `grafana-selinux` | AlmaLinux:8 | All versions | 9.2.10-32.el8_10 |
| `grafana` | Red Hat:enterprise_linux:8::appstream | All versions | 0:9.2.10-32.el8_10 |
| `grafana-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:9.2.10-32.el8_10 |
| `grafana-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:9.2.10-32.el8_10 |
| `grafana-selinux` | Red Hat:enterprise_linux:8::appstream | All versions | 0:9.2.10-32.el8_10 |
| `grafana` | Rocky Linux:8 | All versions | 0:9.2.10-32.el8_10 |
| `amazon-ssm-agent` | openSUSE:Tumbleweed | All versions | 3.3.4624.0-1.1 |
| `git-bug` | openSUSE:Tumbleweed | All versions | 0.10.1-6.1 |

## How do I fix CVE-2026-44740?

Upgrade github.com/go-git/go-billy/v5 to 5.9.0 or later.

## Is CVE-2026-44740 being exploited?

There is no known exploitation of CVE-2026-44740 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-44740 and fix it if it is affected.

What it is: CVE-2026-44740 is a medium-severity denial of service vulnerability in go-git go-billy, published on 1 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-44740 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/go-git/go-billy/v5 (Go): affected all versions; fixed in 5.9.0
- github.com/go-git/go-billy/v5 (Go): affected all versions; fixed in 5.9.0
- github.com/go-git/go-billy/v5 (Go): affected all versions; fixed in 5.9.0
- github.com/go-git/go-billy/v6 (Go): affected all versions; fixed in 6.0.0-alpha.1
- github.com/go-git/go-billy/v6 (Go): affected all versions; fixed in 6.0.0-alpha.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-44740/ (Markdown: https://insights.sbomify.com/CVE-2026-44740/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-44740
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-44740
- OSV: https://osv.dev/vulnerability/CVE-2026-44740

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-44740/
Summaries are generated and may contain mistakes; the official description above is the record.
