CVE-2021-45698Nervos Ckb
Critical 9.8 No auth needed
Follow: this CVE · Nervos · Nervos Ckb We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 69
- Auth required
- No
- Published
- Dec 27, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ckb.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | ckb |
< 0.40.0 |
0.40.0 |
cargo update -p ckb --precise 0.40.0 |
| crates.io | ckb |
< 0.40.0 |
0.40.0 |
cargo update -p ckb --precise 0.40.0 |
| crates.io | ckb |
≥ 0.0.0-0 < 0.40.0 |
0.40.0 |
cargo update -p ckb --precise 0.40.0 |
Per OSV / GitHub Advisories (GHSA-8gjm-h3xj-mp6w, GHSA-v666-6w97-pcwm, RUSTSEC-2021-0107). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nervos | ckb | < 0.40.0 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Third Party Advisory