kritisch9.8
CVE-2021-28031
move_elements can double-free objects on panic
Auswirkung
Affected versions of scratchpad used ptr::read to read elements while calling a user provided function f on them. Since the pointer read duplicates ownership, a panic inside the user provided f function could cause a double free when unwinding. The flaw was fixed in commit `891561bea` by removing the unsafe block and using a plain iterator.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | scratchpad | < 1.3.1 | 1.3.1 |
Betroffene Produkte · Scratchpad Project
| Produkt | Betroffene Versionen |
|---|---|
| Scratchpad | vor 1.3.1 |