Skip to content
OpenAdvisories
Medium · 5.9 CVE-2023-23631 EUVD-2023-0622GHSA-4gj3-6r43-3wfcGO-2023-1559

HAMT Decoding Panics in github.com/ipfs/go-unixfsnode

Published Feb 9, 2023 · Updated Mar 10, 2025 · 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.

Affected products

VendorProductAffectedFixed
ipfs go-unixfsnode < 1.5.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ipfs/go-unixfsnode < 1.5.2 1.5.2 GHSA-4gj3-6r43-3wfc

References