# CVE-2020-36471: RUSTSEC-2020-0151 - Generators can cause data races if non-Send types are used in their generator functions

Source: https://junglewise.ai/threats/cve-2020-36471-data-races-in-generator  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-11-16  
License: CC BY 4.0 with a link back

CVE-2020-36471 · Severity: low · CVSS 3.1 · Published 2020-11-16

Generators can cause data races if non-Send types are used in their generator functions

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

## Quick answers

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

**How severe is CVE-2020-36471?** Low severity, with a CVSS score of 3.1, published 16 November 2020.

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

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

**Am I affected by CVE-2020-36471?** Check whether you run generator (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

- generator (crates.io): upgrade to 0.7.0 or later

  ```sh
  cargo update -p generator
  ```


## Affected products

- generator (crates.io) SEMVER:introduced=0,fixed=0.7.0, SEMVER:introduced=0.0.0-0,fixed=0.7.0

## Identifiers

- CVE-2020-36471
- GHSA-w3g5-2848-2v8r
- RUSTSEC-2020-0151

## Related threats

- [Data races in generator](https://junglewise.ai/threats/data-races-in-generator-b1fee7f5)
- [RUSTSEC-2019-0020 - fix unsound APIs that could lead to UB](https://junglewise.ai/threats/cve-2019-16144-uninitialized-memory-use-in-generator)
