Lucene search

K
githubGitHub Advisory DatabaseGHSA-QVQG-6RP8-4P9H
HistoryMay 11, 2023 - 8:40 p.m.

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

2023-05-1120:40:16
CWE-400
CWE-770
GitHub Advisory Database
github.com
14
ipfs
kubo
bitswap
dos
attack
untrusted connections
pnet
swarm filters
resource manager

CVSS3

8.2

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

LOW

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

EPSS

0.002

Percentile

53.3%

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

Affected configurations

Vulners
Node
github.com\/ipfs\/kuboRange<0.19.0
VendorProductVersionCPE
*github.com\/ipfs\/kubo*cpe:2.3:a:*:github.com\/ipfs\/kubo:*:*:*:*:*:*:*:*

CVSS3

8.2

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

LOW

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

EPSS

0.002

Percentile

53.3%

Related for GHSA-QVQG-6RP8-4P9H