Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1xdnFnLTZycDgtNHA5aM4AAzSi
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-m974-xj4j-7qv5
- CVE-2023-25568
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xdnFnLTZycDgtNHA5aM4AAzSi
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 12 months ago
Updated: 12 months ago
CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Identifiers: GHSA-qvqg-6rp8-4p9h
References:
- https://github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5
- https://github.com/ipfs/kubo/security/advisories/GHSA-qvqg-6rp8-4p9h
- https://nvd.nist.gov/vuln/detail/CVE-2023-25568
- https://github.com/advisories/GHSA-qvqg-6rp8-4p9h
Blast Radius: 12.0
Affected Packages
go:github.com/ipfs/kubo
Dependent packages: 164Dependent repositories: 181
Downloads:
Affected Version Ranges: < 0.19.0
Fixed in: 0.19.0
All affected versions: 0.2.2, 0.2.3, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10, 0.3.11, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13, 0.4.14, 0.4.15, 0.4.16, 0.4.17, 0.4.18, 0.4.19, 0.4.20, 0.4.21, 0.4.22, 0.4.23, 0.5.0, 0.5.1, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.12.2, 0.13.0, 0.13.1, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.18.1
All unaffected versions: 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.21.0, 0.21.1, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0