GHSA-v362-2895-h9r2
Dashboard / Vulnerabilities / GHSA-v362-2895-h9r2
GHSA-v362-2895-h9r2
Published: 7 Jan 2022Last Modified: 8 Nov 2023
Summary: Use After Free in lru
Details: 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: https://nvd.nist.gov/vuln/detail/CVE-2021-45720, https://github.com/jeromefroe/lru-rs/issues/120, https://github.com/jeromefroe/lru-rs.git, https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/lru/RUSTSEC-2021-0130.md, https://rustsec.org/advisories/RUSTSEC-2021-0130.html
Affected packages
Package
Name: lru
Purl: pkg:cargo/lru
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -0.7.1
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
