hoch7.5
CVE-2021-38511
Links in archive can create arbitrary directories
Auswirkung
When unpacking a tarball that contains a symlink the tar crate may create directories outside of the directory it's supposed to unpack into. The function errors when it's trying to create a file, but the folders are already created at this point.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten oder Systeme verändert werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | tar | < 0.4.36 | 0.4.36 |
Betroffene Produkte · Tar Project
| Produkt | Betroffene Versionen |
|---|---|
| Tar | vor 0.4.36 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md
- https://rustsec.org/advisories/RUSTSEC-2021-0080.html
- https://github.com/advisories/GHSA-62jx-8vmh-4mcw
- https://nvd.nist.gov/vuln/detail/CVE-2021-38511
- https://github.com/alexcrichton/tar-rs/issues/238
- https://github.com/alexcrichton/tar-rs/pull/259