{"id":"CVE-2019-13173","aliases":["CVE-2019-13173","GHSA-xf7w-r453-m56c"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary File Overwrite in fstream","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"fstream anterior a versión 1.0.12, es susceptible a la sobrescritura de archivos arbitrarios. La extracción de archivos comprimidos que contienen un enlace físico hacia un archivo que ya existe en el sistema y un archivo que coincida con el enlace físico, sobrescribirá el archivo del sistema con el contenido del archivo extraído. La función fstream.DirWriter() es vulnerable.","source":"nvd"}],"published":"2019-05-30T17:19:34.000Z","modified":"2026-06-17T02:16:13.180Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.12"}],"ecosystem":"npm","package":"fstream","purl":"pkg:npm/fstream","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.12"}],"vendor":"fstream_project","product":"fstream","cpe":"cpe:2.3:a:fstream_project:fstream:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://www.npmjs.com/advisories/886","tags":["patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/fstream/commit/6a77d2fa6e1462693cf8e46f930da96ec1b0bb22","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00010.html","tags":["vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00052.html","tags":["vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://usn.ubuntu.com/4123-1/","tags":["vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13173","tags":["advisory"],"sources":["ghsa"]},{"url":"https://usn.ubuntu.com/4123-1","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-13173","url":"https://www.cve.org/CVERecord?id=CVE-2019-13173","licence":"CVE Terms of Use","modified":"2024-08-04T23:41:10.702Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xf7w-r453-m56c","url":"https://github.com/advisories/GHSA-xf7w-r453-m56c","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:07.720Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-13173","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13173","licence":"Public domain","modified":"2026-06-17T02:16:13.180Z"}],"updatedAt":"2026-11-25T22:57:45.403Z","epss":{"score":0.02416,"percentile":0.84602,"date":"2026-12-01T12:00:22.000Z"}}