{"id":"GHSA-84x2-2qv6-qg56","aliases":["GHSA-84x2-2qv6-qg56"],"related":[],"kind":"vulnerability","state":"published","title":"Nervos CKB P2P DoS Attacks","summary":"The P2P protocols lack of rate limit. For example, in relay protocol, when a node receives a broadcasted `tx_hashes`, it will mark it in memory to avoid duplicated requests. [code → ](https://github.com/nervosnetwork/ckb/blob/26e4837212c392c3c706a0da7a056131fb060433/sync/src/relayer/transactions_process.rs#L67).\n\nIt is easy to establish a DoS attach by generating random tx hashes.\n\n### Impact\n\nIt affects all nodes connected to the P2P network.\n\n### Workarounds\n\nApply rate limit on the data sent to CKB P2P port.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"The P2P protocols lack of rate limit. For example, in relay protocol, when a node receives a broadcasted `tx_hashes`, it will mark it in memory to avoid duplicated requests. [code → ](https://github.com/nervosnetwork/ckb/blob/26e4837212c392c3c706a0da7a056131fb060433/sync/src/relayer/transactions_process.rs#L67).\n\nIt is easy to establish a DoS attach by generating random tx hashes.\n\n### Impact\n\nIt affects all nodes connected to the P2P network.\n\n### Workarounds\n\nApply rate limit on the data sent to CKB P2P port.","format":"markdown","source":"ghsa"}],"published":"2024-02-02T22:21:27.000Z","modified":"2024-02-02T22:21:27.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.34.0"}],"ecosystem":"crates.io","package":"ckb","purl":"pkg:cargo/ckb","source":"ghsa"}],"references":[{"url":"https://github.com/nervosnetwork/ckb/security/advisories/GHSA-84x2-2qv6-qg56","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nervosnetwork/ckb/commit/c5eb5478b635cea2ccef8676cf97692cd38293c3","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-84x2-2qv6-qg56","url":"https://github.com/advisories/GHSA-84x2-2qv6-qg56","licence":"CC-BY-4.0","modified":"2024-02-02T22:21:27.000Z"}],"updatedAt":"2026-11-25T22:56:42.346Z"}