Live threats

All CVEs / Lru Project

CVE-2021-45720Lru Project Lru

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
No
Published
Dec 26, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-416
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

An issue was discovered in the lru crate before 0.7.1 for Rust. The iterators have a use-after-free, as demonstrated by an access after a pop operation.

Original NVD text.

What to do

  1. Apply the vendor's security update for Lru.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io lru < 0.7.1 0.7.1 cargo update -p lru --precise 0.7.1
crates.io lru < 0.7.1 0.7.1 cargo update -p lru --precise 0.7.1
crates.io lru ≥ 0.0.0-0 < 0.7.1 0.7.1 cargo update -p lru --precise 0.7.1

Per OSV / GitHub Advisories (GHSA-qqmc-hwqp-8g2w, GHSA-v362-2895-h9r2, RUSTSEC-2021-0130). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
lru_projectlru< 0.7.1

Official sources

References

Links published by the sources. Open them with care.