CVE-2024-27980

Node.js 18 and 2 others: Improper Neutralization of Special Elements used in a Command ('Command Injection')

CVE-2024-27980 is fixed in 4 products on 2 platforms, first by Node.js 18 18.20.2, released April 10, 2024. It is not reported as exploited. Patch Radar priority: High.

HighFixed on 2 platforms
CVSS
8.1
No vendor severity
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0140
72nd percentile

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.

Where it's fixed

ProductFixed inFixReleased
Windows apps
Node.js 18 18.20.2 Node.js 18 18.20.2 Apr 10, 2024
Node.js 20 20.12.2 Node.js 20 20.12.2 Apr 10, 2024
Node.js 21 21.7.3 Node.js 21 21.7.3 Apr 10, 2024
Linux
nodejs20 · opensuse-leap 15.6 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1 Jul 22, 2024
nodejs20 · sles 15.6 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1 Jul 22, 2024

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.