# GHSA-84x2-2qv6-qg56: Nervos CKB P2P DoS Attacks

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-02-02T22:21:27.000Z
- Modified: 2024-02-02T22:21:27.000Z

## 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).

It is easy to establish a DoS attach by generating random tx hashes.

### Impact

It affects all nodes connected to the P2P network.

### Workarounds

Apply rate limit on the data sent to CKB P2P port.

(As written by GitHub Advisory Database.)

## Affected

- ckb (crates.io): before 0.34.0

## References

- <https://github.com/nervosnetwork/ckb/security/advisories/GHSA-84x2-2qv6-qg56> (web)
- <https://github.com/nervosnetwork/ckb/commit/c5eb5478b635cea2ccef8676cf97692cd38293c3> (web)

## Sources

- GitHub Advisory Database: [GHSA-84x2-2qv6-qg56](https://github.com/advisories/GHSA-84x2-2qv6-qg56), CC-BY-4.0, modified 2024-02-02

---

Page: https://cve.day/GHSA-84x2-2qv6-qg56 · Whole record: https://cve.day/GHSA-84x2-2qv6-qg56.json · Rebuilt by cve.day 2026-11-25T22:56:42.346Z
