CVE-2019-16882
Use after free in string-interner
Auswirkung
Affected versions of this crate did not clone contained strings when an interner is cloned. Interners have raw pointers to the contained strings, and they keep pointing the strings which the old interner owns, after the interner is cloned. If a new cloned interner is alive and the old original interner is dead, the new interner has dangling pointers to the old interner's storage, which is already dropped. This allows an attacker to read the already freed memory. The dangling pointers are used by the interners to check a string is already interned. An attacker can do brute force attack to get the data pointed by the dangling pointer.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | string-interner | >= 0.7.0, < 0.7.1 | 0.7.1 |
Betroffene Produkte · String-interner Project
| Produkt | Betroffene Versionen |
|---|---|
| String-interner | vor 0.7.1 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://rustsec.org/advisories/RUSTSEC-2019-0023.html
- https://github.com/advisories/GHSA-49fq-pw77-6qxj
- https://nvd.nist.gov/vuln/detail/CVE-2019-16882
- https://github.com/Robbepop/string-interner/issues/9
- https://github.com/Robbepop/string-interner/commit/d91dac0cfe42512526879cdfaac0b81beff54089
- https://github.com/Robbepop/string-interner/pull/10