CVE-2018-20835: Input Validation
A vulnerability was found in tar-fs before 1.16.2. An Arbitrary File Overwrite issue exists when extracting a tarball containing a hardlink to a file that already exists on the system, in conjunction with a later plain file with the same name as the hardlink. This plain file content replaces the existing file content.
Affected Software
Remediation
Event History
Frequently Asked Questions
What does an attacker need to exploit this issue?
An attacker needs to supply a crafted tar archive that is extracted by a vulnerable tar-fs version. The archive must contain a hardlink to an existing system file and a later regular file using the same name as that hardlink.
Which deployments are exposed?
Deployments using tar-fs versions before 1.16.2 are exposed when they extract tarballs that an attacker can control or influence. The CVSS vector indicates exploitation can be performed remotely without privileges or user interaction.
What is the impact of successful exploitation?
Successful exploitation can overwrite the contents of an existing file on the system. The stated impact is integrity loss; no confidentiality or availability impact is specified.
What should be done if patching cannot happen immediately?
Avoid extracting untrusted or attacker-influenced tar archives with the affected tar-fs versions. Restrict archive extraction to trusted inputs until the available patch can be applied.