RUSTSEC-2026-0002
Dashboard / Vulnerabilities / RUSTSEC-2026-0002
Summary: `IterMut` violates Stacked Borrows by invalidating internal pointer
Details: Affected versions of this crate contain a soundness issue in the `IterMut` iterator implementation. The `IterMut::next` and `IterMut::next_back` methods temporarily create an exclusive reference to the key when dereferencing the internal node pointer. This invalidates the shared pointer held by the internal `HashMap`, violating Stacked Borrows rules.
References: https://crates.io/crates/lru, https://rustsec.org/advisories/RUSTSEC-2026-0002.html, https://github.com/jeromefroe/lru-rs/pull/224
Affected packages
Package
Name: lru
Purl: pkg:cargo/lru
Affected ranges
Type: SEMVER
Events:
Introduced- 0.9.0
Fixed -0.16.3
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
