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.
Metrics
Affected Vendors & Products
References
History
Thu, 09 Jan 2025 22:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Weaknesses | CWE-77 | |
Metrics |
ssvc
|
Thu, 09 Jan 2025 01:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | A command injection flaw was found in Node.js exclusive to Windows environments. This flaw allows an attacker to perform command injection via the args parameter of child_process.spawn without the shell option enabled on Windows. This behavior is caused by cmd.exe when executing batch files, which has complicated parsing rules for arguments that were not able to be safely escaped. It is possible to inject commands if an attacker can control part of the command arguments of the batch file. | 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. |
References |
|
|
Metrics |
cvssV3_0
|

Status: PUBLISHED
Assigner: hackerone
Published: 2025-01-09T00:33:47.722Z
Updated: 2025-04-30T22:25:25.133Z
Reserved: 2024-02-29T01:04:06.640Z
Link: CVE-2024-27980

Updated: 2025-01-09T21:32:59.312Z

Status : Received
Published: 2025-01-09T01:15:08.367
Modified: 2025-01-09T22:15:27.777
Link: CVE-2024-27980
