What’s Vulnerable › Vulnerabilities
CVE-2024-27980
- Severity: high (CVSS 8.1 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-01-09 · updated 2026-06-17
- Weakness: CWE-77
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.
Affected products
- Node.js: 4.x from 4.0; 5.x from 5.0; 6.x from 6.0; 7.x from 7.0; 8.x from 8.0; 9.x from 9.0 — fixed in 18.20.2, 20.12.2, 21.7.3
How to fix
Upgrade to a fixed version: Node.js 18.20.2, 20.12.2, 21.7.3. Check the vendor advisory for mitigations.
References
- http://www.openwall.com/lists/oss-security/2024/04/10/15
- http://www.openwall.com/lists/oss-security/2024/07/11/6
- http://www.openwall.com/lists/oss-security/2024/07/19/3
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5MZN6PFXHTCCUENAKZXTGWPKUAHI6E2W/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JUWBYDVCUSCX7YWTBX75LADMCVYFBGKU/
Get alerted when CVE-2024-27980 or the next vulnerability affects your stack