GHSA-rhfx-m35p-ff5j
low
`IterMut` violates Stacked Borrows by invalidating internal pointer
- Severity
- low CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2026-0002
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| lru (crates.io) | from 0.9.0 before 0.16.3 | GitHub Advisory Database, RustSec Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-rhfx-m35p-ff5j changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2026-0002 changed 2026-01-08 | CC0-1.0 |