{"id":"CVE-2023-23631","aliases":["CVE-2023-23631","GHSA-4gj3-6r43-3wfc","GO-2023-1559"],"related":[],"kind":"vulnerability","state":"published","title":"HAMT Decoding Panics in github.com/ipfs/go-unixfsnode","summary":"github.com/ipfs/go-unixfsnode is an ADL IPLD prime node that wraps go-codec-dagpb's implementation of protobuf to enable pathing. In versions priot to 1.5.2 trying to read malformed HAMT sharded directories can cause panics and virtual memory leaks.\nIf you are reading untrusted user input, an attacker can then trigger a panic. This is caused by bogus fanout parameter in the HAMT directory nodes. Users are advised to upgrade. There are no known workarounds for this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"github.com/ipfs/go-unixfsnode is an ADL IPLD prime node that wraps go-codec-dagpb's implementation of protobuf to enable pathing. In versions priot to 1.5.2 trying to read malformed HAMT sharded directories can cause panics and virtual memory leaks.\nIf you are reading untrusted user input, an attacker can then trigger a panic. This is caused by bogus fanout parameter in the HAMT directory nodes. Users are advised to upgrade. There are no known workarounds for this vulnerability.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nTrying to read malformed HAMT sharded directories can cause panics and virtual memory leaks.\nIf you are reading untrusted user input, an attacker can then trigger a panic.\n\nThis is caused by a bogus fanout parameter in the HAMT directory nodes.\nThis includes checks returned in [ipfs/go-bitfield GHSA-2h6c-j3gf-xp9r](https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r), as well as limiting the fanout to <= 1024 (to avoid attempts of arbitrary sized allocations).\n\n## Patches\n- https://github.com/ipfs/go-unixfsnode/commit/91b3d39d33ef0cd2aff2c95d50b2329350944b68\n- https://github.com/ipfs/go-unixfsnode/commit/a4ed723727e0bdc2277158337c2fc0d82802d122\n\n## References\n\n* https://github.com/ipfs/go-unixfs/security/advisories/GHSA-q264-w97q-q778\n* https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r","format":"markdown","source":"ghsa"},{"lang":"en","text":"Trying to read malformed HAMT sharded directories can cause panics and virtual memory leaks. If you are reading untrusted user input, an attacker can then trigger a panic.\n\nThis is caused by a bogus fanout parameter in the HAMT directory nodes.\n\nThere are no known workarounds (users are advised to upgrade).","format":"markdown","source":"go"},{"lang":"es","text":"github.com/ipfs/go-unixfsnode es un nodo principal de ADL IPLD que envuelve la implementación de protobuf de go-codec-dagpb para habilitar la ruta. En versiones anteriores a la 1.5.2, intentar leer directorios fragmentados con HAMT con formato incorrecto puede provocar pánico y pérdidas de memoria virtual. Si está leyendo entradas de usuarios que no son de confianza, un atacante puede provocar pánico. Esto se debe a un parámetro de distribución falso en los nodos del directorio HAMT. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2023-02-09T20:46:22.930Z","modified":"2026-09-10T03:49:56.605Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 1.5.2","status":"affected"}],"vendor":"ipfs","product":"go-unixfsnode","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.2"}],"ecosystem":"Go","package":"github.com/ipfs/go-unixfsnode","purl":"pkg:golang/github.com/ipfs/go-unixfsnode","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.2"}],"ecosystem":"Go","package":"github.com/ipfs/go-unixfsnode","purl":"pkg:golang/github.com/ipfs/go-unixfsnode","source":"go"},{"ranges":[{"status":"affected","fixed":"1.5.2"}],"vendor":"protocol","product":"go-unixfsnode","cpe":"cpe:2.3:a:protocol:go-unixfsnode:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ipfs/go-unixfsnode/security/advisories/GHSA-4gj3-6r43-3wfc","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ipfs/go-unixfsnode/commit/59050ea8bc458ae55246ae09243e6e165923e076","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ipfs/go-unixfsnode/commit/91b3d39d33ef0cd2aff2c95d50b2329350944b68","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ipfs/go-unixfsnode/commit/a4ed723727e0bdc2277158337c2fc0d82802d122","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23631","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ipfs/go-unixfsnode","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1559","tags":["web"],"sources":["ghsa"]}],"credits":["Jorropo"],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-10T20:58:01.028Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-23631","url":"https://www.cve.org/CVERecord?id=CVE-2023-23631","licence":"CVE Terms of Use","modified":"2025-03-10T21:14:10.912Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4gj3-6r43-3wfc","url":"https://github.com/advisories/GHSA-4gj3-6r43-3wfc","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:56.605Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1559","url":"https://pkg.go.dev/vuln/GO-2023-1559","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-23631","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23631","licence":"Public domain","modified":"2026-06-17T05:37:37.693Z"}],"updatedAt":"2026-11-25T22:58:21.911Z","epss":{"score":0.00933,"percentile":0.61748,"date":"2026-12-01T12:00:22.000Z"}}