Skip to content

CVE-2023-25568 Boxo bitswap/server: DOS unbounded persistent memory leak

HighCVSS 7.5 EPSS 0.86%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

Boxo, formerly known as go-libipfs, is a library for building IPFS applications and implementations. In versions 0.4.0 and 0.5.0, if an attacker is able allocate arbitrary many bytes in the Bitswap server, those allocations are lasting even if the connection is closed. This affects users accepting untrusted connections with the Bitswap server and also affects users using the old API stubs at github.com/ipfs/go-libipfs/bitswap because users then transitively import github.com/ipfs/go-libipfs/bitswap/server. Boxo versions 0.6.0 and 0.4.1 contain a patch for this issue. As a workaround, those who are using the stub object at github.com/ipfs/go-libipfs/bitswap not taking advantage of the features provided by the server can refactor their code to use the new split API that will allow them to run in a client only mode: github.com/ipfs/go-libipfs/bitswap/client.

Upgrade path

4 packages: 2 fixed.

PackageAffectedFixed inStatus
ipfs github.com/ipfs/go-bitswap(Go) < 0.12.0 0.12.0 Fixed
ipfs github.com/ipfs/go-libipfs(Go) < 0.4.1; >= 0.5.0, < 0.6.0 0.4.1, 0.6.0 Fixed
ipfs boxo = 0.4.0; = 0.5.0 No fix listed Versions listed
protocol boxo = 0.4.0; = 0.5.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
ipfs github.com/ipfs/go-libipfs(Go) >= 0.5.0, < 0.6.0 0.6.0
ipfs github.com/ipfs/go-libipfs(Go) < 0.4.1 0.4.1
ipfs github.com/ipfs/go-bitswap(Go) < 0.12.0 0.12.0
ipfs boxo = 0.4.0 No fix listed
ipfs boxo = 0.5.0 No fix listed
protocol boxo = 0.4.0 No fix listed
protocol boxo = 0.5.0 No fix listed

References