CVE-2021-45698 json
RPC call failure in ckb
published 2021-07-25 5 y ago modified 2026-10-12 27 d ago also GHSA-8gjm-h3xj-mp6w , GHSA-v666-6w97-pcwm , RUSTSEC-2021-0107 , EUVD-2022-0528
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
1.23% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | ckb | <0.40.0 >=0.0.0-0, <0.40.0 |
0.40.0 |
Classification
- Weakness
-
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
-
github.com
/nervosnetwork/ckb/commit/e5b45795375d7dc2a689fb46790caca5c2653638
web
-
rustsec.org
/advisories/RUSTSEC-2021-0107.html
web, third-party-advisory, advisory
-
raw.githubusercontent.com
/rustsec/advisory-db/main/crates/ckb/RUSTSEC-2021-0107.md
web, third-party-advisory
-
github.com
/nervosnetwork/ckb/security/advisories/GHSA-v666-6w97-pcwm
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-45698
advisory
-
github.com
/nervosnetwork/ckb
package
-
crates.io
/crates/ckb
package
Sources
- CVE List CVE-2021-45698
- GitHub Advisory GHSA-8gjm-h3xj-mp6w
- GitHub Advisory GHSA-v666-6w97-pcwm
- NVD CVE-2021-45698
- OSV RUSTSEC-2021-0107
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.