CVE-2024-27980 Details
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.
A command injection vulnerability has been identified in Node.js versions 18.x, 20.x, and 21.x. The issue arises from improper handling of batch files in the child_process.spawn and child_process.spawnSync methods. A malicious command line argument can inject arbitrary commands and execute them, even when the shell option is disabled. This vulnerability affects all users on Windows in the active release lines.
Users can upgrade to Node.js versions 18.20.2, 20.15.1, or 22.4.1, all of which include the necessary fix. Instructions for updating can be found in the Node.js release blog or through the Fedora package management system.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 9, 2025CISA-ADP
Assessed Jan 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Node.js | ~18 ~20 ~21 |
CPE
Remediation
| |
| Fedora | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 9, 2025 | CVE Modified | CISA-ADP |
| Jan 9, 2025 | New CVE Received | [email protected] |
Volerion