CVE-2023-23631: HAMT Decoding Panics in github.com/ipfs/go-unixfsnode
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 Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2023-23631?
CVE-2023-23631 has a moderate severity level due to potential panics and virtual memory leaks when handling malformed HAMT sharded directories.
How do I fix CVE-2023-23631?
To fix CVE-2023-23631, update the go-unixfsnode library to version 1.5.2 or higher.
What versions of go-unixfsnode are affected by CVE-2023-23631?
CVE-2023-23631 affects go-unixfsnode versions prior to 1.5.2.
What types of attacks are possible due to CVE-2023-23631?
An attacker can exploit CVE-2023-23631 by providing untrusted user input that triggers panics and leads to virtual memory leaks.
Is CVE-2023-23631 related to user input handling?
Yes, CVE-2023-23631 specifically concerns the handling of untrusted user input while reading malformed HAMT directories.