{"schema_version":"1.9.0","id":"GHSA-xf7w-r453-m56c","published":"2019-05-30T17:19:34Z","modified":"2023-11-08T04:01:07.720925Z","aliases":["CVE-2019-13173"],"summary":"Arbitrary File Overwrite in fstream","details":"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.\n\n\n## Recommendation\n\nUpgrade to version 1.0.12 or later.","affected":[{"package":{"name":"fstream","ecosystem":"npm","purl":"pkg:npm/fstream"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.12"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/05/GHSA-xf7w-r453-m56c/GHSA-xf7w-r453-m56c.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13173"},{"type":"WEB","url":"https://github.com/npm/fstream/commit/6a77d2fa6e1462693cf8e46f930da96ec1b0bb22"},{"type":"WEB","url":"https://usn.ubuntu.com/4123-1"},{"type":"WEB","url":"https://www.npmjs.com/advisories/886"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00010.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00052.html"}],"database_specific":{"cwe_ids":["CWE-59"],"github_reviewed":true,"github_reviewed_at":"2019-05-30T17:17:33Z","nvd_published_at":null,"severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}