ADVISORIES

Go Vulnerability Database

GO-2023-1557

Denial of service via HAMT decoding panic in github.com/ipfs/go-unixfs

Details

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. A workaround is to not feed untrusted user data to the decoding functions.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/ipfs/go-unixfs
All versions before 0.4.3 (fixed in 0.4.3)

References