{"id":"GHSA-q264-w97q-q778","revision":"699afa55291a4fc9883fd640706c763b","records":[{"revision":"699afa55291a4fc9883fd640706c763b","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-q264-w97q-q778","aliases":["CVE-2023-23625","GO-2023-1557"],"title":"Denial of service via HAMT Decoding Panics","description":"### Impact\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 bogus `fanout` parameter in the HAMT directory nodes.\nThis include 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-unixfs/commit/dbcc43ec3e2db0d01e8d80c55040bba3cf22cb4b\n\n### Workarounds\nDo not feed untrusted user data to the decoding functions.\n\n### References\n- https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r\n","state":0,"publishedAt":"2023-02-10T23:08:06+00:00","modifiedAt":"2026-09-10T03:49:52.0566314+00:00","affected":[{"ecosystem":"Go","name":"github.com/ipfs/go-unixfs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.4.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/ipfs/go-unixfs/security/advisories/GHSA-q264-w97q-q778","https://nvd.nist.gov/vuln/detail/CVE-2023-23625","https://github.com/ipfs/go-unixfs/commit/467d139a640ecee4f2e74643dafcc58bb3b54175","https://github.com/advisories/GHSA-q264-w97q-q778","https://github.com/ipfs/go-unixfs","https://pkg.go.dev/vuln/GO-2023-1557"],"sourceUrl":"https://github.com/advisories/GHSA-q264-w97q-q778","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-q264-w97q-q778","identifiers":["GHSA-q264-w97q-q778","CVE-2023-23625","GO-2023-1557"]},"retained":false,"historicalAffected":[]}],"coverage":[]}