CVE-2024-27980
Node.js: Fail to Escape Arguments Properly in Microsoft Windows
Overview
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.
Source: OX vulnerability database
Severity
8.1 · HIGH
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-77
Affected packages · 2
Operating systems · 13 fixes
SUSE Linux Enterprise 2 releases · 2 packages
fixed 3
nodejs18
nodejs20
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.5 | nodejs18 +3 | 18.20.4-150400.9.24.2 | SUSE-SU-2024:2542-1 |
| 15.5 | nodejs20 +3 | 20.15.1-150500.11.12.2 | SUSE-SU-2024:2543-1 |
| 15.6 | nodejs20 +3 | 20.15.1-150600.3.3.2 | SUSE-SU-2024:2574-1 |
chainguard 1 release · 4 packages
fixed 4
nodejs-16
nodejs-18
nodejs-20
nodejs-21
| Release | Package | Fixed in |
|---|---|---|
| nodejs-16 | 16.20.2-r16 | |
| nodejs-18 | 18.20.2-r0 | |
| nodejs-20 | 20.12.2-r0 | |
| nodejs-21 | 21.7.3-r0 |
openSUSE 1 release · 2 packages
fixed 2
corepack20
corepack21
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack20 +4 | 20.15.1-1.1 | openSUSE-SU-2024:14214-1 |
| Tumbleweed | corepack21 +4 | 21.7.3-1.1 | openSUSE-SU-2024:14025-1 |
wolfi 1 release · 4 packages
fixed 4
nodejs-16
nodejs-18
nodejs-20
nodejs-21
| Release | Package | Fixed in |
|---|---|---|
| nodejs-16 | 16.20.2-r16 | |
| nodejs-18 | 18.20.2-r0 | |
| nodejs-20 | 20.12.2-r0 | |
| nodejs-21 | 21.7.3-r0 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/04/10/15
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/11/6
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/19/3
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-27980
- flatt.tech https://flatt.tech/research/posts/batbadbut-you-cant-securely-execute-commands-on-windows/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5MZN6PFXHTCCUENAKZXTGWPKUAHI6E2W/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JUWBYDVCUSCX7YWTBX75LADMCVYFBGKU/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-27980
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-27980
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.