NetSight
low2.7No CVE yet

GHSA-rhfx-m35p-ff5j

`IterMut` violates Stacked Borrows by invalidating internal pointer

Impact

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.

An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: low risk of data or systems being changed.

Affected packages

EcosystemPackageAffectedFixed in
rustlru>= 0.9.0, < 0.16.30.16.3

Weakness classification

References