Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-qvqg-6rp8-4p9h: 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

  • 19feb15833c6f4d6e7f1e1b132efaae96d76481d boxo update in Kubo
  • GHSA-m974-xj4j-7qv5 patches in boxo

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

ghsa
#git
  1. GitHub Advisory Database
  2. GitHub Reviewed
  3. GHSA-qvqg-6rp8-4p9h

github.com/ipfs/kubo affected by DOS Bitswap unbounded persistent memory leak

Moderate severity GitHub Reviewed Published May 10, 2023 in ipfs/kubo

Package

gomod github.com/ipfs/kubo (Go)

Affected versions

< 0.19.0

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

  • 19feb15833c6f4d6e7f1e1b132efaae96d76481d boxo update in Kubo
  • GHSA-m974-xj4j-7qv5 patches in boxo

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

  • GHSA-m974-xj4j-7qv5
  • CVE-2023-25568

References

  • GHSA-m974-xj4j-7qv5
  • GHSA-qvqg-6rp8-4p9h
  • https://nvd.nist.gov/vuln/detail/CVE-2023-25568

Published to the GitHub Advisory Database

May 11, 2023

ghsa: Latest News

GHSA-g5x8-v2ch-gj2g: Vaultwarden HTML injection vulnerability