{"id":"RUSTSEC-2026-0002","revision":"0bf914b40feb41a7ab04bc7a11340aba","records":[{"revision":"0bf914b40feb41a7ab04bc7a11340aba","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0002","aliases":["GHSA-rhfx-m35p-ff5j"],"title":"`IterMut` violates Stacked Borrows by invalidating internal pointer","description":"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.","state":0,"publishedAt":"2026-01-07T12:00:00+00:00","modifiedAt":"2026-01-08T05:56:19.144318+00:00","affected":[{"ecosystem":"crates.io","name":"lru","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.9.0"},{"kind":"fixed","version":"0.16.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/lru","https://rustsec.org/advisories/RUSTSEC-2026-0002.html","https://github.com/jeromefroe/lru-rs/pull/224"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0002","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0002","identifiers":["RUSTSEC-2026-0002","GHSA-rhfx-m35p-ff5j"]},"retained":false,"historicalAffected":[]}],"coverage":[]}