CVE-2018-20990
published 2019-08-26CVE-2018-20990: 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.
PriorityP340high7.5CVSS 3.0
AVNACLPRNUINSUCNIHAN
EPSS
1.68%
74.3th percentile
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.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | rust-tar | — | — |
| gnu | tar | >= 0 < 0.4.16 | 0.4.16 |
| gnu | tar | >= 0.0.0-0 < 0.4.16 | 0.4.16 |
| tar_project | tar | < 0.4.16 | 0.4.16 |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv2.06.4MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:P
osv7.5HIGH
vendor_debian7.5LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Arbitrary file overwrite in tar-rs
osv·2021-08-25
CVE-2018-20990 [HIGH] Arbitrary file overwrite in tar-rs
Arbitrary file overwrite in tar-rs
When unpacking a tarball with the unpack_in-family of functions it's intended that only files within the specified directory are able to be written. Tarballs with hard links or symlinks, however, can be used to overwrite any file on the filesystem. Tarballs can contain multiple entries for the same file. A tarball which first contains an entry for a hard link or symlink pointing to any file on the filesystem will have the link created, and then afterwards if the same file is listed in the tarball the hard link will be rewritten and any file can be rewritten on the filesystem.
GHSA
Arbitrary file overwrite in tar-rs
ghsa·2021-08-25
CVE-2018-20990 [HIGH] CWE-59 Arbitrary file overwrite in tar-rs
Arbitrary file overwrite in tar-rs
When unpacking a tarball with the unpack_in-family of functions it's intended that only files within the specified directory are able to be written. Tarballs with hard links or symlinks, however, can be used to overwrite any file on the filesystem. Tarballs can contain multiple entries for the same file. A tarball which first contains an entry for a hard link or symlink pointing to any file on the filesystem will have the link created, and then afterwards if the same file is listed in the tarball the hard link will be rewritten and any file can be rewritten on the filesystem.
OSV
CVE-2018-20990: An issue was discovered in the tar crate before 0
osv·2019-08-26·CVSS 7.5
CVE-2018-20990 [HIGH] CVE-2018-20990: An issue was discovered in the tar crate before 0
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.
OSV
Links in archives can overwrite any existing file
osv·2018-06-29
CVE-2018-20990 Links in archives can overwrite any existing file
Links in archives can overwrite any existing file
When unpacking a tarball with the `unpack_in`-family of functions it's intended
that only files within the specified directory are able to be written. Tarballs
with hard links or symlinks, however, can be used to overwrite any file on the
filesystem.
Tarballs can contain multiple entries for the same file. A tarball which first
contains an entry for a hard link or symlink pointing to any file on the
filesystem will have the link created, and then afterwards if the same file is
listed in the tarball the hard link will be rewritten and any file can be
rewritten on the filesystem.
This has been fixed in https://github.com/alexcrichton/tar-rs/pull/156 and is
published as `tar` 0.4.16. Thanks to Max Justicz for discovering this and
emailing a
Debian
CVE-2018-20990: rust-tar - An issue was discovered in the tar crate before 0.4.16 for Rust. Arbitrary file ...
vendor_debian·2018·CVSS 7.5
CVE-2018-20990 [HIGH] CVE-2018-20990: rust-tar - An issue was discovered in the tar crate before 0.4.16 for Rust. Arbitrary file ...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2019-08-26
Published