# CVE-2023-23631: HAMT Decoding Panics in github.com/ipfs/go-unixfsnode

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Published: 2023-02-09T20:46:22.930Z
- Modified: 2026-09-10T03:49:56.605Z
- Also known as: GHSA-4gj3-6r43-3wfc, GO-2023-1559
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.
If 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.

(As written by CVE List.)

## Affected

- ipfs go-unixfsnode: < 1.5.2
- github.com/ipfs/go-unixfsnode (Go): before 1.5.2
- protocol go-unixfsnode: before 1.5.2

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ipfs/go-unixfsnode/security/advisories/GHSA-4gj3-6r43-3wfc> (advisory, patch, vendor-advisory, web)
- <https://github.com/ipfs/go-unixfsnode/commit/59050ea8bc458ae55246ae09243e6e165923e076> (fix, patch, web)
- <https://github.com/ipfs/go-unixfsnode/commit/91b3d39d33ef0cd2aff2c95d50b2329350944b68> (patch, web)
- <https://github.com/ipfs/go-unixfsnode/commit/a4ed723727e0bdc2277158337c2fc0d82802d122> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23631> (advisory)
- <https://github.com/ipfs/go-unixfsnode> (package)
- <https://pkg.go.dev/vuln/GO-2023-1559> (web)

## Sources

- CVE List: [CVE-2023-23631](https://www.cve.org/CVERecord?id=CVE-2023-23631), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-4gj3-6r43-3wfc](https://github.com/advisories/GHSA-4gj3-6r43-3wfc), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-1559](https://pkg.go.dev/vuln/GO-2023-1559), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2023-23631](https://nvd.nist.gov/vuln/detail/CVE-2023-23631), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-23631 · Whole record: https://cve.day/CVE-2023-23631.json · Rebuilt by cve.day 2026-11-25T22:58:21.911Z
