{"answers":{"affected":"2 open source packages ship an affected version, including webcrack. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43373 exists.","fix":"Upgrade webcrack to 2.14.1 or later.","what":"CVE-2024-43373 is a high-severity path traversal vulnerability in j4k0xb webcrack, published on 15 Aug 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-43373 and fix it if it is affected.\n\nWhat it is: CVE-2024-43373 is a high-severity path traversal vulnerability in j4k0xb webcrack, published on 15 Aug 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43373 exists.\n\nAffected packages and fixed versions:\n- webcrack (npm): affected all versions; fixed in 2.14.1\n- webcrack (npm): affected all versions; fixed in 2.14.1\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-2024-43373/ (Markdown: https://insights.sbomify.com/CVE-2024-43373/index.md)","id":"CVE-2024-43373","markdown":"https://insights.sbomify.com/CVE-2024-43373/index.md","name":"CVE-2024-43373","record":{"aliases":["GHSA-ccqh-278p-xq6w"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"JavaScript reverse engineering tool","requires_auth":"none","summary":"An attacker can overwrite arbitrary files on Windows systems via path traversal in webcrack, potentially leading to arbitrary code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"webcrack","vendor":"j4k0xb"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"webcrack is a tool for reverse engineering javascript. An arbitrary file write vulnerability exists in the webcrack module when processing specifically crafted malicious code on Windows systems. This vulnerability is triggered when using the unpack bundles feature in conjunction with the saving feature. If a module name includes a path traversal sequence with Windows path separators, an attacker can exploit this to overwrite files on the host system. This vulnerability allows an attacker to write arbitrary `.js` files to the host system, which can be leveraged to hijack legitimate Node.js modules to gain arbitrary code execution. This vulnerability has been patched in version 2.14.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"webcrack has an Arbitrary File Write Vulnerability on Windows when Parsing and Saving a Malicious Bundle","id":"CVE-2024-43373","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"Vim heap-use-after-free in src/arglist.c:207","id":"CVE-2024-43374"},"packages":[{"ecosystem":"npm","fixed":["2.14.1"],"introduced":["0"],"last_affected":[],"package":"webcrack","purl":null,"source":"GHSA-ccqh-278p-xq6w"},{"ecosystem":"npm","fixed":["2.14.1"],"introduced":["0"],"last_affected":[],"package":"webcrack","purl":"pkg:npm/webcrack","source":"GHSA-ccqh-278p-xq6w"}],"prev":{"headline":"Potential access to sensitive URLs via CKAN extensions (SSRF)","id":"CVE-2024-43371"},"products":["webcrack"],"published":"2024-08-15","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":"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-15","vendors":["j4k0xb"]},"summary":"An attacker can overwrite arbitrary files on Windows systems via path traversal in webcrack, potentially leading to arbitrary code execution.","url":"https://insights.sbomify.com/CVE-2024-43373/"}