# GHSA-rhfx-m35p-ff5j: `IterMut` violates Stacked Borrows by invalidating internal pointer

- Severity: Low (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-01-07T12:00:00.000Z
- Modified: 2026-09-10T03:50:59.064Z
- Also known as: RUSTSEC-2026-0002
- Weaknesses: CWE-476

## 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.

This invalidates the shared pointer held by the internal `HashMap`, violating Stacked Borrows rules.

(As written by GitHub Advisory Database.)

## Affected

- lru (crates.io): from 0.9.0 before 0.16.3

## References

- <https://github.com/jeromefroe/lru-rs/pull/224> (web)
- <https://github.com/jeromefroe/lru-rs> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0002.html> (advisory, web)
- <https://crates.io/crates/lru> (package)

## Sources

- GitHub Advisory Database: [GHSA-rhfx-m35p-ff5j](https://github.com/advisories/GHSA-rhfx-m35p-ff5j), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2026-0002](https://rustsec.org/advisories/RUSTSEC-2026-0002.html), CC0-1.0, modified 2026-01-08

---

Page: https://cve.day/GHSA-rhfx-m35p-ff5j · Whole record: https://cve.day/GHSA-rhfx-m35p-ff5j.json · Rebuilt by cve.day 2026-11-25T22:56:43.298Z
