{"id":"GHSA-rhfx-m35p-ff5j","aliases":["GHSA-rhfx-m35p-ff5j","RUSTSEC-2026-0002"],"related":[],"kind":"vulnerability","state":"published","title":"`IterMut` violates Stacked Borrows by invalidating internal pointer","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2026-01-07T12:00:00.000Z","modified":"2026-09-10T03:50:59.064Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"semver","introduced":"0.9.0","status":"affected","fixed":"0.16.3"}],"ecosystem":"crates.io","package":"lru","purl":"pkg:cargo/lru","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.9.0","status":"affected","fixed":"0.16.3"}],"ecosystem":"crates.io","package":"lru","purl":"pkg:cargo/lru","source":"rustsec"}],"references":[{"url":"https://github.com/jeromefroe/lru-rs/pull/224","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/jeromefroe/lru-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0002.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/lru","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rhfx-m35p-ff5j","url":"https://github.com/advisories/GHSA-rhfx-m35p-ff5j","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:59.064Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0002","url":"https://rustsec.org/advisories/RUSTSEC-2026-0002.html","licence":"CC0-1.0","modified":"2026-01-08T05:56:19.144Z"}],"updatedAt":"2026-11-25T22:56:43.298Z"}