All reports
High

Use After Free in lru

Affected versions

Rust / Cargolru
Affected versions
< 0.7.1
Fixed version
0.7.1

Exploitation

CVE-2021-45720

Probability of exploitation in the next 30 days: 1.22%

FIRST EPSS · 2026-11-22

Description

Lru crate has two functions for getting an iterator. Both iterators give references to key and value. Calling specific functions, like pop(), will remove and free the value, and but it's still possible to access the reference of value which is already dropped causing use after free.

Links