GHSA-rhfx-m35p-ff5j
JSON

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 packageVersionsReported by
lru (crates.io)from 0.9.0 before 0.16.3GitHub Advisory Database, RustSec Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-rhfx-m35p-ff5j changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2026-0002 changed 2026-01-08CC0-1.0