{"answers":{"affected":"2 open source packages ship an affected version, including node and node-min.","exploited":"There is no known exploitation of CVE-2024-27980 in the wild and no public exploit code.","fix":"Upgrade node to a fixed version for your release line: 18.20.2, 20.12.2 or 21.7.3.","what":"CVE-2024-27980 is a high-severity command injection vulnerability in NodeJS Node, published on 9 Jan 2025. 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-27980 and fix it if it is affected.\n\nWhat it is: CVE-2024-27980 is a high-severity command injection vulnerability in NodeJS Node, published on 9 Jan 2025. 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-27980 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- node (Bitnami): affected all versions; fixed in 18.20.2, 20.12.2, 21.7.3\n- node-min (Bitnami): affected all versions; fixed in 18.20.2, 20.12.2, 21.7.3\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-27980/ (Markdown: https://insights.sbomify.com/CVE-2024-27980/index.md)","id":"CVE-2024-27980","markdown":"https://insights.sbomify.com/CVE-2024-27980/index.md","name":"CVE-2024-27980","record":{"aliases":["BIT-node-2024-27980","BIT-node-min-2024-27980","GHSA-fm6v-wmjp-5rxq","openSUSE-SU-2024:14025-1"],"analysis":{"component_type":"library","fix_type":"upgrade","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, leading to code execution.","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":"Due to the improper handling of batch files in 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","openSUSE:Tumbleweed"],"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-27980","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":3,"n_references":5,"next":{"headline":"Command injection in UniFi Network Application","id":"CVE-2024-27981"},"packages":[{"ecosystem":"Bitnami","fixed":["18.20.2","20.12.2","21.7.3"],"introduced":["0","19.0.0","21.0.0"],"last_affected":[],"package":"node","purl":"pkg:bitnami/node","source":"BIT-node-2024-27980"},{"ecosystem":"Bitnami","fixed":["18.20.2","20.12.2","21.7.3"],"introduced":["0","19.0.0","21.0.0"],"last_affected":[],"package":"node-min","purl":"pkg:bitnami/node-min","source":"BIT-node-min-2024-27980"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["21.7.3-1.1"],"introduced":["0"],"last_affected":[],"package":"nodejs21","purl":"pkg:rpm/opensuse/nodejs21\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14025-1"}],"prev":{"headline":"Null dereference in Avalanche","id":"CVE-2024-27978"},"products":["Node"],"published":"2025-01-09","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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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, leading to code execution.","url":"https://insights.sbomify.com/CVE-2024-27980/"}