# `IterMut` violates Stacked Borrows by invalidating internal pointer

Source: https://junglewise.ai/threats/itermut-violates-stacked-borrows-by-invalidating-internal-pointer-f62410ab  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-01-07  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 4 · Published 2026-01-07

`IterMut` violates Stacked Borrows by invalidating internal pointer

Technologies: [lru (crates.io)](https://junglewise.ai/threats/technologies/lru). 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?** Medium severity, with a CVSS score of 4, published 7 January 2026.

**Which products and versions are affected?** lru (crates.io) SEMVER:introduced=0.9.0,fixed=0.16.3.

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

- lru (crates.io): upgrade to 0.16.3 or later

  ```sh
  cargo update -p lru
  ```


## Affected products

- lru (crates.io) SEMVER:introduced=0.9.0,fixed=0.16.3

## Related threats

- [RUSTSEC-2026-0253 - Potential use-after-free due to lack of panic safety in `LruCache::pop()`](https://junglewise.ai/threats/rustsec-2026-0253-potential-use-after-free-due-to-lack-of-panic-safety-a5449451)
- [RUSTSEC-2026-0002 - `IterMut` violates Stacked Borrows by invalidating internal pointer](https://junglewise.ai/threats/rustsec-2026-0002-itermut-violates-stacked-borrows-by-invalidating-7a707a76)
- [RUSTSEC-2021-0130 - Use after free in lru crate](https://junglewise.ai/threats/cve-2021-45720-use-after-free-in-lru-crate)
