# RUSTSEC-2022-0078 - Use-after-free due to a lifetime error in `Vec::into_iter()`

Source: https://junglewise.ai/threats/rustsec-2022-0078-use-after-free-due-to-a-lifetime-error-in-vec-into-800f8333  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-14  
License: CC BY 4.0 with a link back

Severity: info · Published 2022-01-14

Use-after-free due to a lifetime error in `Vec::into_iter()`

Technologies: [bumpalo (crates.io)](https://junglewise.ai/threats/technologies/bumpalo). 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 14 January 2022.

**Which products and versions are affected?** bumpalo (crates.io) SEMVER:introduced=1.1.0,fixed=3.11.1.

**Is there a fix for This vulnerability?** Yes. bumpalo (crates.io): upgrade to 3.11.1 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 bumpalo (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

- bumpalo (crates.io): upgrade to 3.11.1 or later

  ```sh
  cargo update -p bumpalo
  ```


## Affected products

- bumpalo (crates.io) SEMVER:introduced=1.1.0,fixed=3.11.1

## Related threats

- [bumpalo has use-after-free due to a lifetime error in `Vec::into_iter()`](https://junglewise.ai/threats/bumpalo-has-use-after-free-due-to-a-lifetime-error-in-vec-into-iter-a79d9967)
- [RUSTSEC-2020-0006 - Flaw in `realloc` allows reading unknown memory](https://junglewise.ai/threats/cve-2020-35861-out-of-bounds-read-in-bumpalo)
