Skip to content
OpenAdvisories
High · 8.1 CVE-2024-36138 EUVD-2024-35895GHSA-p2ww-p57h-w5m7

Bypass incomplete fix of CVE-2024-27980, that arises from improper handling of batch files with all possible extensions on Windows via chil…

Published Sep 7, 2024 · Updated Apr 30, 2025 · Assigned by hackerone

Description

Bypass incomplete fix of CVE-2024-27980, that arises from improper handling of batch files with all possible extensions on Windows via 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.4, 19.0 – < 19.*, 20.0 – < 20.15.1, 21.0 – < 21.*, 22.0 – < 22.4.1 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 nodejs22 22.10.0-1.1 openSUSE-SU-2024:14435-1
openSUSE Tumbleweed nodejs24 24.11.1-2.1 openSUSE-SU-2025:15802-1
openSUSE Tumbleweed nodejs26 26.3.1-1.1 openSUSE-SU-2026:11110-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-21 21.7.3-r13 —

Advisories 12

References