{"id":"CVE-2026-44740","aliases":["CVE-2026-44740","GHSA-m3xc-h892-ggx6","GO-2026-5490"],"related":["CGA-p2f4-4jq3-89hr"],"kind":"vulnerability","state":"published","title":"go-billy: Lack of depth and cycle detection in symlink resolution may lead to infinite loops and resource exhaustion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nMultiple components may improperly handle crafted or malformed input, resulting in panics, infinite loops, uncontrolled recursion, or excessive resource consumption.\n\nThese 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.\n\n### Patches\nUsers 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.\n\n### Credits\nThanks to @faran66 for finding and reporting this issue privately to the go-git project. 🙇","format":"markdown","source":"ghsa"},{"lang":"en","text":"Go-billy: Symlink resolution lack of cycle detection leads to infinite loop in github.com/go-git/go-billy","format":"markdown","source":"go"},{"lang":"es","text":"Billy es una abstracción de interfaz de sistema de archivos para Go. Antes de las versiones 5.9.0 y 6.0.0-alpha.1, múltiples componentes pueden manejar incorrectamente entradas manipuladas o malformadas, lo que resulta en panics, bucles infinitos, recursión incontrolada o consumo excesivo de recursos. Estos problemas surgen de una validación insuficiente y de la ausencia de mecanismos de seguridad como la detección de ciclos, límites de recursión o el manejo defensivo de estados inesperados al procesar datos de repositorio no confiables y estructuras de sistema de archivos. Este problema ha sido parcheado en las versiones 5.9.0 y 6.0.0-alpha.1.","source":"nvd"}],"published":"2026-05-13T15:29:47.000Z","modified":"2026-09-10T03:50:55.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-674","CWE-835"],"affected":[{"ranges":[{"version":"< 5.9.0","status":"affected"},{"version":"< 6.0.0-alpha.1","status":"affected"}],"vendor":"go-git","product":"go-billy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.9.0"}],"ecosystem":"Go","package":"github.com/go-git/go-billy/v5","purl":"pkg:golang/github.com/go-git/go-billy/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.0.0-alpha.1"}],"ecosystem":"Go","package":"github.com/go-git/go-billy/v6","purl":"pkg:golang/github.com/go-git/go-billy/v6","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.9.0"}],"ecosystem":"Go","package":"github.com/go-git/go-billy/v5","purl":"pkg:golang/github.com/go-git/go-billy/v5","source":"go"}],"references":[{"url":"https://github.com/go-git/go-billy/security/advisories/GHSA-m3xc-h892-ggx6","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-git/go-billy/releases/tag/v5.9.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-git/go-billy/releases/tag/v6.0.0-alpha.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44740","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/go-git/go-billy","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/go-git/go-billy/pull/203","tags":["fix"],"sources":["go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-01T18:13:54.236Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44740","url":"https://www.cve.org/CVERecord?id=CVE-2026-44740","licence":"CVE Terms of Use","modified":"2026-06-01T18:14:04.315Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m3xc-h892-ggx6","url":"https://github.com/advisories/GHSA-m3xc-h892-ggx6","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:55.263Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5490","url":"https://pkg.go.dev/vuln/GO-2026-5490","licence":"CC-BY-4.0","modified":"2026-08-08T21:41:53.435Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44740","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44740","licence":"Public domain","modified":"2026-07-22T07:10:00.107Z"}],"updatedAt":"2026-11-25T22:59:23.462Z","epss":{"score":0.00389,"percentile":0.35103,"date":"2026-12-01T12:00:22.000Z"}}