github.com/ipfs/go-unixfs
Affected
- introduced
0, fixed0.4.3(semver)
Fixed versions
0.4.3
Fix
- Fixed version
0.4.3go get github.com/ipfs/[email protected]
Advisory
Also known as: CVE-2023-23625, GO-2023-1557
Denial of service via HAMT Decoding Panics
Impact
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.
This include checks returned in ipfs/go-bitfield GHSA-2h6c-j3gf-xp9r, as well as limiting the fanout to <= 1024 (to avoid attempts of arbitrary sized allocations).
Patches
Workarounds
Do not feed untrusted user data to the decoding functions.
References
Medium Basis: The source's own band: MODERATE
0, fixed 0.4.3 (semver)0.4.3
0.4.3go get github.com/ipfs/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0