{"id":"GHSA-rhfx-m35p-ff5j","aliases":["RUSTSEC-2026-0002"],"status":"published","title":"`IterMut` violates Stacked Borrows by invalidating internal pointer","description":"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.\n\nThis invalidates the shared pointer held by the internal `HashMap`, violating Stacked Borrows rules.","severity":{"version":"4.0","score":2.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U","level":"low","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2026-01-07T12:00:00Z","modified":"2026-09-10T03:50:59Z","fixes":[{"ecosystem":"crates.io","package":"lru","fixed_in":["0.16.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"lru","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.9.0"},{"fixed":"0.16.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"lru","ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.0"},{"fixed":"0.16.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"lru","ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.0"},{"fixed":"0.16.3"}]}]}],"references":[{"url":"https://github.com/jeromefroe/lru-rs/pull/224","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0002.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-rhfx-m35p-ff5j"},{"url":"https://github.com/jeromefroe/lru-rs","tags":["package"]},{"url":"https://crates.io/crates/lru","tags":["package"]}],"sources":{"ghsa":[{"id":"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` iterator implementation. The `IterMut::next` and `IterMut::next_back` methods temporarily create an exclusive reference to the key when dereferencing the internal node pointer.\n\nThis invalidates the shared pointer held by the internal `HashMap`, violating Stacked Borrows rules.","status":"published","published":"2026-01-07T20:38:57Z","modified":"2026-01-07T20:38:58Z","cvss":[{"version":"4.0","score":2.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U","level":"low"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:39:16.156387Z"}],"osv":[{"id":"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` iterator implementation. The `IterMut::next` and `IterMut::next_back` methods temporarily create an exclusive reference to the key when dereferencing the internal node pointer.\n\nThis invalidates the shared pointer held by the internal `HashMap`, violating Stacked Borrows rules.","status":"published","published":"2026-01-07T20:38:57Z","modified":"2026-09-10T03:50:59.06435405Z","cvss":[{"version":"4.0","score":2.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U","level":"low"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:46:55.877614Z"},{"id":"RUSTSEC-2026-0002","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.","status":"published","published":"2026-01-07T12:00:00Z","modified":"2026-01-08T05:56:19.144318Z","updated_at":"2026-11-02T15:53:40.430679Z"}]}}
