GHSA-rhfx-m35p-ff5j

    Dashboard / Vulnerabilities / GHSA-rhfx-m35p-ff5j

    GHSA-rhfx-m35p-ff5j

    Published: 7 Jan 2026Last Modified: 10 Sept 2026

    Summary: `IterMut` violates Stacked Borrows by invalidating internal pointer

    Details: 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 packages

    Package

    Name: lru

    Purl: pkg:cargo/lru

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.9.0
    Fixed -0.16.3

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-rhfx-m35p-ff5j | CVE-DB