{"id":"GHSA-84x2-2qv6-qg56","aliases":[],"status":"published","title":"Nervos CKB P2P DoS Attacks","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2024-02-02T22:21:27Z","modified":"2024-02-02T22:21:29Z","fixes":[{"ecosystem":"crates.io","package":"ckb","fixed_in":["0.34.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"ckb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.34.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"ckb","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.34.0"}]}]}],"references":[{"url":"https://github.com/nervosnetwork/ckb/security/advisories/GHSA-84x2-2qv6-qg56","tags":["web"]},{"url":"https://github.com/nervosnetwork/ckb/commit/c5eb5478b635cea2ccef8676cf97692cd38293c3","tags":["web"]},{"url":"https://github.com/advisories/GHSA-84x2-2qv6-qg56"}],"sources":{"ghsa":[{"id":"GHSA-84x2-2qv6-qg56","title":"Nervos CKB P2P DoS Attacks","description":"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.","status":"published","published":"2024-02-02T22:21:27Z","modified":"2024-02-02T22:21:29Z","updated_at":"2026-11-02T14:37:35.293818Z"}],"osv":[{"id":"GHSA-84x2-2qv6-qg56","title":"Nervos CKB P2P DoS Attacks","description":"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.","status":"published","published":"2024-02-02T22:21:27Z","modified":"2024-02-02T22:21:27Z","updated_at":"2026-11-02T15:46:41.732368Z"}]}}
