Arbitrary File Overwrite

Affecting tar package, versions <2.2.2 || >=3.0.0 <4.4.2

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

tar is a full-featured Tar for Node.js.

Affected versions of this package are vulnerable to Arbitrary File Overwrite. Extracting tarballs containing a hard-link to a file that already exists in the system, and a file that matches the hard-link may overwrite system's files with the contents of the extracted file.

Remediation

Upgrade tar to version 2.2.2, 4.4.2 or higher.

References

CVSS Score

8.1
high severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/RL:O
Credit
Max Justicz
CVE
CVE-2018-20834
CWE
CWE-59
Snyk ID
SNYK-JS-TAR-174125
Disclosed
04 Apr, 2019
Published
07 Apr, 2019