Skip to content
OpenAdvisories
High · 8.1 CVE-2024-27980 EUVD-2024-25154GHSA-fm6v-wmjp-5rxq

Due to the improper handling of batch files in child_process.spawn / child_process.spawnSync, a malicious command line argument can inject …

Published Jan 9, 2025 · Updated Apr 30, 2025 · Assigned by hackerone

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.

Affected products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.*, 17.0 – < 17.*, 18.0 – < 18.20.2, 19.0 – < 19.*, 20.0 – < 20.12.2, 21.0 – < 21.7.3 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 nodejs20 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1
SLES 15 SP5 nodejs18 18.20.4-150400.9.24.2 SUSE-SU-2024:2542-1
SLES 15 SP5 nodejs20 20.15.1-150500.11.12.2 SUSE-SU-2024:2543-1
SLES 12 nodejs18 18.20.4-8.24.1 SUSE-SU-2024:2496-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs20 20.15.1-1.1 openSUSE-SU-2024:14214-1
openSUSE Tumbleweed nodejs21 21.7.3-1.1 openSUSE-SU-2024:14025-1
openSUSE Leap 15.6 nodejs20 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1
openSUSE Leap 15.5 nodejs18 18.20.4-150400.9.24.2 SUSE-SU-2024:2542-1
openSUSE Leap 15.5 nodejs20 20.15.1-150500.11.12.2 SUSE-SU-2024:2543-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nodejs-16 16.20.2-r16 —
Wolfi rolling nodejs-18 18.20.2-r0 —
Wolfi rolling nodejs-20 20.12.2-r0 —
Wolfi rolling nodejs-21 21.7.3-r0 —

Advisories 10

References