CVE-2021-45698 RPC call failure in ckb

Critical 9.8 Published Updated

A logic flaw in the ckb crate causes incorrect transaction selection based on fee rates, potentially affecting blockchain consensus or mining efficiency.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-45698?

CVE-2021-45698 is a critical vulnerability in n/a, published on 26 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Which versions are affected by CVE-2021-45698?

5 open source packages ship an affected version, including ckb. It affects 1 product.

PackageAffectedFixed in
ckb crates.ioAll versions0.40.0
ckb crates.ioAll versions0.40.0
ckb crates.ioAll versions0.40.0
ckb crates.ioAll versions0.40.0
ckb crates.ioFrom 0.0.0-00.40.0

Products include Nervos Ckb.

How do I fix CVE-2021-45698?

Upgrade ckb to 0.40.0 or later.

Is CVE-2021-45698 being exploited?

There is no known exploitation of CVE-2021-45698 in the wild and no public exploit code.

Sources

Also known as GHSA-8gjm-h3xj-mp6w, GHSA-v666-6w97-pcwm, RUSTSEC-2021-0107.

Is CVE-2021-45698 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free