Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. lru
  4. ›
  5. GHSA-qqmc-hwqp-8g2w

GHSA-qqmc-hwqp-8g2w: Use after free in lru crate

June 17, 2022

Lru crate has use after free vulnerability.

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.

References

  • github.com/advisories/GHSA-qqmc-hwqp-8g2w
  • github.com/jeromefroe/lru-rs
  • github.com/jeromefroe/lru-rs/issues/120
  • rustsec.org/advisories/RUSTSEC-2021-0130.html

Code Behaviors & Features

Detect and mitigate GHSA-qqmc-hwqp-8g2w with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.1

Fixed versions

  • 0.7.1

Solution

Upgrade to version 0.7.1 or above.

Source file

cargo/lru/GHSA-qqmc-hwqp-8g2w.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:46 +0000.