Vulnerability · Published Feb 9, 2023 · Assigned by GitHub_M
CVE-2023-23631HAMT Decoding Panics in github.com/ipfs/go-unixfsnode
Medium 5.9
In plain English
A medium-severity uncontrolled resource consumption in go-unixfsnode from ipfs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/ipfs/go-unixfsnode | 1.5.2 | GHSA-4gj3-6r43-3wfc |
| Go | github.com/ipfs/go-unixfsnode | 1.5.2 | GO-2023-1559 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ipfs | go-unixfsnode | < 1.5.2 |
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:H/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 x_refsource_CONFIRM
- https://github.com/ipfs/go-unixfsnode/commit/59050ea8bc458ae55246ae09243e6e165923e076 x_refsource_MISC
- https://github.com/ipfs/go-unixfsnode/commit/91b3d39d33ef0cd2aff2c95d50b2329350944b68 x_refsource_MISC
- https://github.com/ipfs/go-unixfsnode/commit/a4ed723727e0bdc2277158337c2fc0d82802d122 x_refsource_MISC