Arbitrary File Overwrite Affecting tar package, versions <2.2.2>=3.0.0 <4.4.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.39% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-TAR-174125
  • published7 Apr 2019
  • disclosed4 Apr 2019
  • creditMax Justicz

Introduced: 4 Apr 2019

CVE-2018-20834  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade tar to version 2.2.2, 4.4.2 or higher.

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.

CVSS Scores

version 3.1