{"answers":{"affected":"2 open source packages ship an affected version, including fstream. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-13173 in the wild and no public exploit code.","fix":"Upgrade fstream to 1.0.12 or later.","what":"CVE-2019-13173 is a high-severity path traversal vulnerability in n/a, published on 2 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-13173 and fix it if it is affected.\n\nWhat it is: CVE-2019-13173 is a high-severity path traversal vulnerability in n/a, published on 2 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-13173 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- fstream (npm): affected all versions; fixed in 1.0.12\n- fstream (npm): affected all versions; fixed in 1.0.12\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-13173/ (Markdown: https://insights.sbomify.com/CVE-2019-13173/index.md)","id":"CVE-2019-13173","markdown":"https://insights.sbomify.com/CVE-2019-13173/index.md","name":"CVE-2019-13173","record":{"aliases":["CLSA-2026-1773188137","DEBIAN-CVE-2019-13173","GHSA-xf7w-r453-m56c","OESA-2022-1584","OESA-2022-2084","SUSE-SU-2019:2055-1","SUSE-SU-2019:2078-1","SUSE-SU-2019:2081-1","SUSE-SU-2019:2099-1","SUSE-SU-2019:2181-1","UBUNTU-CVE-2019-13173","USN-4123-1","USN-4863-1","openSUSE-SU-2019:1846-1","openSUSE-SU-2019:1907-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js fstream library","requires_auth":"none","summary":"An attacker can overwrite arbitrary system files by crafting a tarball with hardlinks, affecting applications using the fstream library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"fstream","vendor":"fstream_project"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"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.","ecosystems":["SUSE:Enterprise Storage 4","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Module for Web and Scripting 15","SUSE:Linux Enterprise Module for Web and Scripting 15 SP1","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","npm","openSUSE:Leap 15.0","openSUSE:Leap 15.1"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Arbitrary File Overwrite in fstream","id":"CVE-2019-13173","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2019"},"n_packages":17,"n_references":5,"next":{"headline":"Open redirect in n/a","id":"CVE-2019-13175"},"packages":[{"ecosystem":"npm","fixed":["1.0.12"],"introduced":["0"],"last_affected":[],"package":"fstream","purl":null,"source":"GHSA-xf7w-r453-m56c"},{"ecosystem":"npm","fixed":["1.0.12"],"introduced":["0"],"last_affected":[],"package":"fstream","purl":"pkg:npm/fstream","source":"GHSA-xf7w-r453-m56c"},{"ecosystem":"SUSE:Enterprise Storage 4","fixed":["4.9.1-15.23.1"],"introduced":["0"],"last_affected":[],"package":"nodejs4","purl":"pkg:rpm/suse/nodejs4\u0026distro=SUSE%20Enterprise%20Storage%204","source":"SUSE-SU-2019:2078-1"},{"ecosystem":"SUSE:Enterprise Storage 4","fixed":["6.17.0-11.27.1"],"introduced":["0"],"last_affected":[],"package":"nodejs6","purl":"pkg:rpm/suse/nodejs6\u0026distro=SUSE%20Enterprise%20Storage%204","source":"SUSE-SU-2019:2181-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["10.16.0-1.9.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2019:2099-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["4.9.1-15.23.1"],"introduced":["0"],"last_affected":[],"package":"nodejs4","purl":"pkg:rpm/suse/nodejs4\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2019:2078-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["6.17.0-11.27.1"],"introduced":["0"],"last_affected":[],"package":"nodejs6","purl":"pkg:rpm/suse/nodejs6\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2019:2181-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15","fixed":["10.16.0-1.9.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015","source":"SUSE-SU-2019:2081-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15","fixed":["8.15.1-3.17.1"],"introduced":["0"],"last_affected":[],"package":"nodejs8","purl":"pkg:rpm/suse/nodejs8\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015","source":"SUSE-SU-2019:2055-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15 SP1","fixed":["10.16.0-1.9.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP1","source":"SUSE-SU-2019:2081-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15 SP1","fixed":["8.15.1-3.17.1"],"introduced":["0"],"last_affected":[],"package":"nodejs8","purl":"pkg:rpm/suse/nodejs8\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP1","source":"SUSE-SU-2019:2055-1"},{"ecosystem":"SUSE:OpenStack Cloud 7","fixed":["6.17.0-11.27.1"],"introduced":["0"],"last_affected":[],"package":"nodejs6","purl":"pkg:rpm/suse/nodejs6\u0026distro=SUSE%20OpenStack%20Cloud%207","source":"SUSE-SU-2019:2181-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["6.17.0-11.27.1"],"introduced":["0"],"last_affected":[],"package":"nodejs6","purl":"pkg:rpm/suse/nodejs6\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2019:2181-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 9","fixed":["6.17.0-11.27.1"],"introduced":["0"],"last_affected":[],"package":"nodejs6","purl":"pkg:rpm/suse/nodejs6\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%209","source":"SUSE-SU-2019:2181-1"},{"ecosystem":"openSUSE:Leap 15.0","fixed":["8.15.1-lp151.2.3.1"],"introduced":["0"],"last_affected":[],"package":"nodejs8","purl":"pkg:rpm/opensuse/nodejs8\u0026distro=openSUSE%20Leap%2015.0","source":"openSUSE-SU-2019:1907-1"},{"ecosystem":"openSUSE:Leap 15.1","fixed":["10.16.0-lp151.2.3.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/opensuse/nodejs10\u0026distro=openSUSE%20Leap%2015.1","source":"openSUSE-SU-2019:1846-1"},{"ecosystem":"openSUSE:Leap 15.1","fixed":["8.15.1-lp151.2.3.1"],"introduced":["0"],"last_affected":[],"package":"nodejs8","purl":"pkg:rpm/opensuse/nodejs8\u0026distro=openSUSE%20Leap%2015.1","source":"openSUSE-SU-2019:1907-1"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2019-13172"},"products":["n/a"],"published":"2019-07-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"An attacker can overwrite arbitrary system files by crafting a tarball with hardlinks, affecting applications using the fstream library.","url":"https://insights.sbomify.com/CVE-2019-13173/"}