# CVE-2021-45698: RPC call failure in ckb

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-11-30)
- Published: 2021-07-25T12:00:00.000Z
- Modified: 2026-10-12T18:00:03.408Z
- Also known as: GHSA-8gjm-h3xj-mp6w, GHSA-v666-6w97-pcwm, RUSTSEC-2021-0107
- Weaknesses: CWE-367
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ckb (crates.io): before 0.40.0; from 0.0.0-0 before 0.40.0
- nervos ckb: before 0.40.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: rating High
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0107.html> (advisory, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ckb/RUSTSEC-2021-0107.md> (third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-45698](https://www.cve.org/CVERecord?id=CVE-2021-45698), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8gjm-h3xj-mp6w](https://github.com/advisories/GHSA-8gjm-h3xj-mp6w), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-v666-6w97-pcwm](https://github.com/advisories/GHSA-v666-6w97-pcwm), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0107](https://rustsec.org/advisories/RUSTSEC-2021-0107.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2021-45698](https://nvd.nist.gov/vuln/detail/CVE-2021-45698), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45698 · Whole record: https://cve.day/CVE-2021-45698.json · Rebuilt by cve.day 2026-11-25T22:58:06.267Z
