Skip to content

Arbitrary File Overwrite in fstream

High severity GitHub Reviewed Published May 30, 2019 • Updated Aug 4, 2021

Package

npm fstream (npm)

Affected versions

< 1.0.12

Patched versions

1.0.12

Description

Versions of fstream prior to 1.0.12 are vulnerable to Arbitrary File Overwrite. Extracting tarballs containing a hardlink to a file that already exists in the system and a file that matches the hardlink will overwrite the system's file with the contents of the extracted file. The fstream.DirWriter() function is vulnerable.

Recommendation

Upgrade to version 1.0.12 or later.

References

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Weaknesses

CVE ID

CVE-2019-13173

GHSA ID

GHSA-xf7w-r453-m56c

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.