Skip to content

CVE-2019-13173 Arbitrary File Overwrite in fstream

HighCVSS 7.5 EPSS 2.4%
Published
Updated
Exploit status
No public exploit known

Description

fstream before 1.0.12 is 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.

Affected products

ProductAffected versionsFixed in
debian/node-fstream(Debian:12) < 1.0.12-1 1.0.12-1
debian/node-fstream(Debian:13) < 1.0.12-1 1.0.12-1
npm fstream(npm) < 1.0.12 1.0.12
fstream project fstream < 1.0.12 1.0.12
ubuntu/node-fstream(Ubuntu:Pro:14.04) < 0.1.24-1ubuntu0.14.04.1~esm1 0.1.24-1ubuntu0.14.04.1~esm1
ubuntu/node-fstream(Ubuntu:Pro:14.04) = 0.1.22-1 No fix listed
ubuntu/node-fstream(Ubuntu:Pro:14.04) = 0.1.24-1 No fix listed
ubuntu/node-fstream(Ubuntu:Pro:16.04) < 0.1.24-1ubuntu0.16.04.1~esm1 0.1.24-1ubuntu0.16.04.1~esm1
ubuntu/node-fstream(Ubuntu:Pro:16.04) = 0.1.24-1 No fix listed
ubuntu/node-fstream(Ubuntu:18.04) < 1.0.10-1ubuntu0.18.04.1 1.0.10-1ubuntu0.18.04.1
ubuntu/node-fstream(Ubuntu:18.04) = 1.0.10-1 No fix listed

References