CVE-2021-45698
CRITICAL 9.8CVSS 3.1RPC call failure in ckb
An issue was discovered in the ckb crate before 0.40.0 for Rust. A get_block_template RPC call may fail in situations where it is supposed to select a Nervos CKB blockchain transaction with a higher fee rate than another transaction.
- Published
- 27 Dec 2021
- Last modified
- 12 Oct 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-367
- Also known as
- GHSA-8gjm-h3xj-mp6wGHSA-v666-6w97-pcwmRUSTSEC-2021-0107
- Sources
- NVDJSONOSV GHSA-8gjm-h3xj-mp6wJSONOSV GHSA-v666-6w97-pcwmJSONOSV RUSTSEC-2021-0107JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
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-0107.md · Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0107.html · Third Party Advisory, WEB, ADVISORY
- https://github.com/nervosnetwork/ckb/security/advisories/GHSA-v666-6w97-pcwm · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-45698 · ADVISORY
- https://github.com/nervosnetwork/ckb · PACKAGE
- https://crates.io/crates/ckb · PACKAGE
- https://github.com/nervosnetwork/ckb/commit/e5b45795375d7dc2a689fb46790caca5c2653638 · WEB
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 25 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)