# Data races in generator

Source: https://junglewise.ai/threats/data-races-in-generator-b1fee7f5  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-08-25  
License: CC BY 4.0 with a link back

Severity: info · Published 2021-08-25

Data races in generator

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

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 25 August 2021.

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

**Is there a fix for This vulnerability?** 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?** 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

## Related threats

- [RUSTSEC-2020-0151 - Generators can cause data races if non-Send types are used in their generator functions](https://junglewise.ai/threats/cve-2020-36471-data-races-in-generator)
- [RUSTSEC-2019-0020 - fix unsound APIs that could lead to UB](https://junglewise.ai/threats/cve-2019-16144-uninitialized-memory-use-in-generator)
