Arbitrary File Overwrite Affecting tar-fs package, versions <1.16.2


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.2% (59th 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-TARFS-174556
  • published1 May 2019
  • disclosed30 Apr 2019
  • creditUnknown

Introduced: 30 Apr 2019

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

How to fix?

Upgrade tar-fs to version 1.16.2 or higher.

Overview

tar-fs is a filesystem bindings for tar-stream.

Affected versions of this package are vulnerable to Arbitrary File Overwrite. An attacker can overwrite files on the system 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.

CVSS Scores

version 3.1