GMS-2023-1409: github.com/ipfs/kubo affected by DOS Bitswap unbounded persistent memory leak
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.
References
Detect and mitigate GMS-2023-1409 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →