# RUSTSEC-2025-0050 - IdMap::from_iter may lead to uninitialized memory being freed on drop

Source: https://junglewise.ai/threats/rustsec-2025-0050-idmap-from-iter-may-lead-to-uninitialized-memory-72090de8  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-08-14  
License: CC BY 4.0 with a link back

Severity: info · Published 2025-08-14

IdMap::from_iter may lead to uninitialized memory being freed on drop

Technologies: [id-map (crates.io)](https://junglewise.ai/threats/technologies/id-map). 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 August 2025.

**Which products and versions are affected?** id-map (crates.io) SEMVER:introduced=0.1.6,fixed=0.2.2.

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

- id-map (crates.io): upgrade to 0.2.2 or later

  ```sh
  cargo update -p id-map
  ```


## Affected products

- id-map (crates.io) SEMVER:introduced=0.1.6,fixed=0.2.2

## Related threats

- [IdMap from_iter may lead to uninitialized memory being freed on drop](https://junglewise.ai/threats/idmap-from-iter-may-lead-to-uninitialized-memory-being-freed-on-drop-d3c786c0)
- [RUSTSEC-2021-0052 - Multiple functions can cause double-frees](https://junglewise.ai/threats/cve-2021-30455-double-free-in-id-map)
