CVE-2018-20990 Arbitrary file overwrite in tar-rs
Attackers can overwrite arbitrary files via malicious symlinks or hardlinks in TAR archives processed by the Rust tar crate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-20990?
CVE-2018-20990 is a high-severity path traversal vulnerability in n/a, published on 26 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the tar crate before 0.4.16 for Rust. Arbitrary file overwrite can occur via a symlink or hardlink in a TAR archive.
Weakness: CWE-59
Which versions are affected by CVE-2018-20990?
3 open source packages ship an affected version, including tar. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tar crates.io | All versions | 0.4.16 |
tar crates.io | All versions | 0.4.16 |
tar crates.io | From 0.0.0-0 | 0.4.16 |
Products include Tar Project Tar.
How do I fix CVE-2018-20990?
Upgrade tar to 0.4.16 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2018-20990 being exploited?
There is no known exploitation of CVE-2018-20990 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-2367-c296-3mp2, RUSTSEC-2018-0002, UBUNTU-CVE-2018-20990.