GHSA-QVQG-6RP8-4P9H
Vulnerability from github – Published: 2023-05-11 20:40 – Updated: 2023-05-11 20:40Impact
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
boxoupdate 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
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/ipfs/kubo"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.19.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-400",
"CWE-770"
],
"github_reviewed": true,
"github_reviewed_at": "2023-05-11T20:40:16Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "### Impact\nAn 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.\n\nThis affects users accepting or connecting untrusted connections such as by running in the public swarm and no pnet config.\nNodes 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.\n\n### Patches\n- 19feb15833c6f4d6e7f1e1b132efaae96d76481d [`boxo`](https://github.com/ipfs/boxo) update in Kubo\n- GHSA-m974-xj4j-7qv5 patches in boxo\n\n### Workarounds\n\nUse [PNET](https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#private-networks), [swarm filters](https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmaddrfilters) or [resource manager allows list](https://pkg.go.dev/github.com/libp2p/go-libp2p/p2p/host/resource-manager#readme-allowlisting-multiaddrs-to-mitigate-eclipse-attacks) to block untrusted connections.\n\nNote 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.\n\n### References\n- GHSA-m974-xj4j-7qv5\n- [CVE-2023-25568](https://nvd.nist.gov/vuln/detail/CVE-2023-25568)",
"id": "GHSA-qvqg-6rp8-4p9h",
"modified": "2023-05-11T20:40:16Z",
"published": "2023-05-11T20:40:16Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5"
},
{
"type": "WEB",
"url": "https://github.com/ipfs/kubo/security/advisories/GHSA-qvqg-6rp8-4p9h"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-25568"
},
{
"type": "PACKAGE",
"url": "https://github.com/ipfs/kubo"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "github.com/ipfs/kubo affected by DOS Bitswap unbounded persistent memory leak"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.