Vulnerability · Published Feb 9, 2023 · Assigned by GitHub_M

CVE-2023-23625Denial of service in HAMT Decoding in go-unixfs

Medium 5.9

In plain English

A medium-severity uncontrolled resource consumption in go-unixfs 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.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.7%top 47.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

go-unixfs is an implementation of a unix-like filesystem on top of an ipld merkledag. 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 to version 0.4.3 to resolve this issue. Users unable to upgrade should not feed untrusted user data to the decoding functions.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/ipfs/go-unixfs0.4.3GHSA-q264-w97q-q778
Gogithub.com/ipfs/go-unixfs0.4.3GO-2023-1557

Affected products (as reported)

VendorProductVersions
ipfs go-unixfs < 0.4.3

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References