github.com/ipfs/kubo
Affected
- introduced
0, fixed0.19.0(semver)
Fixed versions
0.19.0
Fix
- Fixed version
0.19.0go get github.com/ipfs/[email protected]
Advisory
Also known as: None
github.com/ipfs/kubo affected by DOS Bitswap unbounded persistent memory leak
Impact
An attacker is able allocate arbitrarily many bytes in the Bitswap server by sending many WANT_BLOCK and or WANT_HAVE requests which are queued in an unbounded queue, with allocations that persist even if the connection is closed.
This affects users accepting or connecting untrusted connections such as by running in the public swarm and no pnet config.
Nodes that are not publicly reachable but connects to untrusted nodes are also vulnerable to the untrusted nodes being connected to since libp2p connections are blindly bidirectional.
Patches
Workarounds
Use PNET, swarm filters or resource manager allows list to block untrusted connections.
Note that using the resource manager will disrupt both client and server features because the bitswap protocol is a message based protocol mixing requests and responses.
References
Medium Basis: The source's own band: MODERATE
0, fixed 0.19.0 (semver)0.19.0
0.19.0go 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