hoch7.5
CVE-2021-45720
Use After Free in lru
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | lru | < 0.7.1 | 0.7.1 |
Betroffene Produkte · Lru Project
| Produkt | Betroffene Versionen |
|---|---|
| Lru | vor 0.7.1 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/lru/RUSTSEC-2021-0130.md
- https://rustsec.org/advisories/RUSTSEC-2021-0130.html
- https://github.com/advisories/GHSA-v362-2895-h9r2
- https://nvd.nist.gov/vuln/detail/CVE-2021-45720
- https://github.com/jeromefroe/lru-rs/issues/120