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


0.0
medium

Snyk CVSS

    Attack Complexity High

    Threat Intelligence

    EPSS 0.12% (46th percentile)
Expand this section
NVD
7.5 high

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 ID SNYK-JS-TARFS-174556
  • published 1 May 2019
  • disclosed 30 Apr 2019
  • credit Unknown

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.