# CVE-2021-45698: RUSTSEC-2021-0107 - Miner fails to get block template when a cell used as a cell dep has been destroyed.

Source: https://junglewise.ai/threats/cve-2021-45698-rpc-call-failure-in-ckb  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-07-25  
License: CC BY 4.0 with a link back

CVE-2021-45698 · Severity: low · CVSS 3.1 · Published 2021-07-25

Miner fails to get block template when a cell used as a cell dep has been destroyed.

Technologies: [ckb (crates.io)](https://junglewise.ai/threats/technologies/ckb). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2021-45698 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-45698 being exploited in the wild.

**How severe is CVE-2021-45698?** Low severity, with a CVSS score of 3.1, published 25 July 2021.

**Which products and versions are affected?** ckb (crates.io) SEMVER:introduced=0,fixed=0.40.0, SEMVER:introduced=0.0.0-0,fixed=0.40.0.

**Is there a fix for CVE-2021-45698?** Yes. ckb (crates.io): upgrade to 0.40.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-45698?** Check whether you run ckb (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ckb (crates.io): upgrade to 0.40.0 or later

  ```sh
  cargo update -p ckb
  ```


## Affected products

- ckb (crates.io) SEMVER:introduced=0,fixed=0.40.0, SEMVER:introduced=0.0.0-0,fixed=0.40.0

## Identifiers

- CVE-2021-45698
- GHSA-8gjm-h3xj-mp6w
- GHSA-v666-6w97-pcwm
- RUSTSEC-2021-0107

## Related threats

- [Nervos CKB Permit load cell data from memory](https://junglewise.ai/threats/nervos-ckb-permit-load-cell-data-from-memory-0367f10d)
- [Nervos CKB Pool does not remove the conflicting transactions from the statistics](https://junglewise.ai/threats/nervos-ckb-pool-does-not-remove-the-conflicting-transactions-from-the-58565ef3)
- [Nervos CKB Transaction which calls syscall load_cell_data_hash has nondeterministic result](https://junglewise.ai/threats/nervos-ckb-transaction-which-calls-syscall-load-cell-data-hash-has-11b6a6fd)
- [Nervos CKB Snappy decompress length can be very large and causes out of memory error](https://junglewise.ai/threats/nervos-ckb-snappy-decompress-length-can-be-very-large-and-causes-out-of-2106ce01)
- [Nervos CKB Panic on malformed input](https://junglewise.ai/threats/nervos-ckb-panic-on-malformed-input-46fdf717)
