Advisory

GO-2023-1557

Also known as: CVE-2023-23625, GHSA-q264-w97q-q778

Summary

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.

Severity

Not rated by the source.

Dates

Published
2023-02-14 19:34 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/ipfs/go-unixfs

Go · All systems

Affected

  • introduced 0, fixed 0.4.3 (semver)

Fixed versions

0.4.3

Fix

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

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences