{"id":"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`\niterator implementation. The `IterMut::next` and `IterMut::next_back`\nmethods temporarily create an exclusive reference to the key when\ndereferencing the internal node pointer.\n\nThis invalidates the shared pointer held by the internal `HashMap`,\nviolating Stacked Borrows rules.","aliases":["GHSA-rhfx-m35p-ff5j"],"modified":"2026-01-08T05:56:19.144318Z","published":"2026-01-07T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/lru"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0002.html"},{"type":"WEB","url":"https://github.com/jeromefroe/lru-rs/pull/224"}],"affected":[{"package":{"name":"lru","ecosystem":"crates.io","purl":"pkg:cargo/lru"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.0"},{"fixed":"0.16.3"}]}],"ecosystem_specific":{"affects":{"arch":[],"functions":[],"os":[]},"affected_functions":null},"database_specific":{"informational":"unsound","categories":["memory-corruption"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0002.json","cvss":null}}],"schema_version":"1.7.3"}