{"id":"CVE-2019-13173","published":"2019-07-02T19:26:05Z","modified":"2024-08-04T23:41:10Z","title":"fstream before 1.0.12 is vulnerable to Arbitrary File Overwrite","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02416,"percentile":0.84544,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.npmjs.com/advisories/886","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/fstream/commit/6a77d2fa6e1462693cf8e46f930da96ec1b0bb22","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00010.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00052.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://usn.ubuntu.com/4123-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":16.91}]},"affected":[{"ecosystem":"npm","package":"fstream","vulnerableRanges":["<1.0.12"],"patched":["1.0.12"],"from":["GHSA-xf7w-r453-m56c"],"provenance":"source"}],"summary":{"text":"The flaw is in the fstream package (before version 1.0.12), specifically in its fstream.DirWriter() function, which mishandles hardlinks when extracting tarballs. An attacker who can supply a crafted tarball containing a hardlink to an existing system file, followed by a file matching that hardlink, can overwrite the target file with the contents of the extracted file, provided the victim extracts that tarball using the vulnerable function.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:38Z"},"euvd":{"id":"EUVD-2019-0484","exploited":false,"provenance":"source"}}