CVE-2021-45699
HIGH 7.5CVSS 3.1Allocation of Resources Without Limits or Throttling in ckb
An issue was discovered in the ckb crate before 0.40.0 for Rust. Remote attackers may be able to conduct a 51% attack against the Nervos CKB blockchain by triggering an inability to allocate memory for the misbehavior HashMap.
- Published
- 27 Dec 2021
- Last modified
- 12 Oct 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400CWE-770
- Also known as
- GHSA-2969-8hh9-57jcGHSA-48vq-8jqv-gm6fRUSTSEC-2021-0108
- Sources
- NVDJSONOSV GHSA-2969-8hh9-57jcJSONOSV GHSA-48vq-8jqv-gm6fJSONOSV RUSTSEC-2021-0108JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nervos | ckbcpe:2.3:a:nervos:ckb:*:*:*:*:*:rust:*:* |
< 0.40.0 | 0.40.0 |
| OSV | crates.io | ckb | < 0.40.0 | 0.40.0 |
| OSV | crates.io | ckb | >= 0.0.0-0, < 0.40.0 | 0.40.0 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ckb/RUSTSEC-2021-0108.md · Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0108.html · Third Party Advisory, WEB, ADVISORY
- https://github.com/nervosnetwork/ckb/security/advisories/GHSA-48vq-8jqv-gm6f · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-45699 · ADVISORY
- https://github.com/nervosnetwork/ckb · PACKAGE
- https://crates.io/crates/ckb · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 Dec 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)