Vulnerability DatabaseRUSTSEC-2021-0107

RUSTSEC-2021-0107
Rust vulnerability analysis and mitigation

Overview

RUSTSEC-2021-0107 (CVE-2021-45698) is a high-severity vulnerability discovered in the CKB blockchain node software that affects versions prior to 0.39.2. The vulnerability was disclosed on July 26, 2021, and involves a failure in the RPC getblocktemplate functionality when a cell is used both as a cell dependency and as an input in different transactions (GitHub Advisory).

Technical details

The vulnerability occurs when a cell C is used as a dep group in transaction A and is destroyed in transaction B. If both transactions are valid and added to the transaction pool, with transaction A being added first, the block template generation fails when transaction B has a higher fee rate and is processed before A. Instead of properly handling the conflict by dropping transaction A, the RPC getblocktemplate fails entirely (GitHub Advisory).

Impact

When exploited, this vulnerability causes the RPC getblocktemplate to fail, potentially disrupting block creation and mining operations. This could affect the normal operation of the blockchain network by preventing miners from generating new blocks when specific transaction patterns occur (GitHub Advisory).

Mitigation and workarounds

Several workarounds are available: 1) Submit transaction B only after transaction A is on chain, 2) Add any output cell from A as a dep cell or input in B, 3) Merge transactions A and B since CKB allows using the same cell as both dep and input in the same transaction, or 4) Ensure transaction B's fee rate is less than A's to maintain proper transaction priority. The vulnerability has been patched in version 0.39.2 (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2fjw-whxm-9v4qCRITICAL9.3
  • RustRust
  • nftnl
NoYesNov 25, 2025
CVE-2025-66017HIGH8.2
  • RustRust
  • cggmp21
NoYesNov 25, 2025
GHSA-mj73-j457-8x9qLOW2.7
  • RustRust
  • maxminddb
NoYesDec 02, 2025
GHSA-pq5v-rwp8-p7gmLOW2.7
  • RustRust
  • rtvm-interpreter
NoNoDec 02, 2025
RUSTSEC-2025-0132N/AN/A
  • RustRust
  • maxminddb
NoYesNov 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management