Improper Neutralization of Special Elements used in a Command ('Command Injection')
CVE-2024-36138
Summary
The package nodejs is vulnerable to Improper Control of Generation of Code ('Code Injection'). A malicious command line argument can inject arbitrary commands and achieve code execution even if the shell option is not enabled. This issue affects nodejs 18.0.0 through 18.20.3, 19.0.0 through 20.15.0, and 21.0.0 through 22.4.0. Note: This vulnerability affects only users of "child_process.spawn" and "child_process.spawnSync" on Windows in all active release lines.
- HIGH
- NETWORK
- HIGH
- UNCHANGED
- NONE
- NONE
- HIGH
- HIGH
CWE-77 - Command Injection
A command injection attack involves injecting an operating system command through the data input, which gets executed on the host operating system with the privileges of the victimized application. The impact of a command injection attack may range from loss of data confidentiality and integrity to unauthorized remote access to the hosting system. The attack may cause serious data breaches and system takeover.
References
Advisory Timeline
- Published