{"answers":{"affected":"2 open source packages ship an affected version, including node and node-min.","exploited":"There is no known exploitation of CVE-2024-36138 in the wild and no public exploit code.","fix":"Upgrade node to a fixed version for your release line: 18.20.4, 20.15.1 or 22.4.1.","what":"CVE-2024-36138 is a high-severity command injection vulnerability in NodeJS Node, published on 7 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-36138 and fix it if it is affected.\n\nWhat it is: CVE-2024-36138 is a high-severity command injection vulnerability in NodeJS Node, published on 7 Sep 2024. 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-2024-36138 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- node (Bitnami): affected all versions; fixed in 18.20.4, 20.15.1, 22.4.1\n- node-min (Bitnami): affected all versions; fixed in 18.20.5, 20.18.1, 22.12.0\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-36138/ (Markdown: https://insights.sbomify.com/CVE-2024-36138/index.md)","id":"CVE-2024-36138","markdown":"https://insights.sbomify.com/CVE-2024-36138/index.md","name":"CVE-2024-36138","record":{"aliases":["BIT-node-2024-36138","BIT-node-min-2024-36138","CLEANSTART-2026-FU20845","GHSA-p2ww-p57h-w5m7"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js runtime","requires_auth":"none","summary":"Attackers can execute arbitrary commands via malicious arguments in Node.js child_process.spawn on Windows, bypassing previous security fixes.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"Bypass incomplete fix of CVE-2024-27980, that arises from improper handling of batch files with all possible extensions on Windows via child_process.spawn / child_process.spawnSync. A malicious command line argument can inject arbitrary commands and achieve code execution even if the shell option is not enabled.","ecosystems":["Bitnami"],"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":"Command injection in Node","id":"CVE-2024-36138","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"Cross-site scripting in OZW672","id":"CVE-2024-36140"},"packages":[{"ecosystem":"Bitnami","fixed":["18.20.4","20.15.1","22.4.1"],"introduced":["0","19.0.0","21.0.0"],"last_affected":[],"package":"node","purl":"pkg:bitnami/node","source":"BIT-node-2024-36138"},{"ecosystem":"Bitnami","fixed":["18.20.5","20.18.1","22.12.0"],"introduced":["0","19.0.0","21.0.0"],"last_affected":[],"package":"node-min","purl":"pkg:bitnami/node-min","source":"BIT-node-min-2024-36138"}],"prev":{"headline":"Security feature bypass in Node","id":"CVE-2024-36137"},"products":["Node"],"published":"2024-09-07","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-30","vendors":["NodeJS"]},"summary":"Attackers can execute arbitrary commands via malicious arguments in Node.js child_process.spawn on Windows, bypassing previous security fixes.","url":"https://insights.sbomify.com/CVE-2024-36138/"}