PT-2021-24294

CVE-2021-45720

·

Published

2021-12-21

·

Updated

2022-06-17

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions: lru crate versions prior to 0.7.1
Description: The issue is related to a use-after-free problem in the iterators of the lru crate. This occurs when specific functions, such as pop(), are called, which remove and free the value, but it is still possible to access the reference of the value that has already been dropped. This can be demonstrated by an access after a pop() operation. The lru crate has two functions for getting an iterator, both of which give references to key and value.
Recommendations: For versions prior to 0.7.1, update to version 0.7.1 or later to resolve the issue. As a temporary workaround, consider avoiding the use of the pop() function in conjunction with iterators to minimize the risk of exploitation. Restrict access to the iterators that give references to key and value to prevent potential use-after-free issues.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-QQMC-HWQP-8G2W
GHSA-V362-2895-H9R2
RUSTSEC-2021-0130
Found an issue in the description? Have something to add? Feel free to write us 👾