CVE-2024-21538
CVE-2024-21538
CVSS 8.7 · High · EPSS 1.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- cross-spawnUpdate to 6.0.6 / 7.0.5
- org.webjars.npm:cross-spawnUpdate to 6.0.6 / 7.0.6
- npm Alpine 3.20Update to 10.9.1-r0
- npm Alpine 3.21Update to 10.9.1-r0
- and 4 more
Check the installed version:
apk list -I -o npmAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Versions of the package cross-spawn before 6.0.6, from 7.0.0 and before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2026:11110-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15802-1 · openSUSE Tumbleweed ·
- SUSE-SU-2025:3744-1 · openSUSE Leap 15.6, SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Package Hub 15 SP6, SUSE Linux Enterprise Module for Public Cloud 15 SP4, SUSE Linux Enterprise Module for Public Cloud 15 SP5, SUSE Linux Enterprise Module for Public Cloud 15 SP6, SUSE Linux Enterprise Module for Public Cloud 15 SP7, SUSE Linux Enterprise Module for Python 3 15 SP6, SUSE Linux Enterprise Module for Python 3 15 SP7, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5 ·
- openSUSE-SU-2025:14663-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:14615-1 · openSUSE Tumbleweed ·
- SUSE-SU-2024:4301-1 · openSUSE Leap 15.5, SUSE Linux Enterprise Module for Web and Scripting 15 SP5 ·
- SUSE-SU-2024:4300-1 · openSUSE Leap 15.5, SUSE Linux Enterprise Module for Web and Scripting 15 SP5 ·
- SUSE-SU-2024:4286-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Web and Scripting 15 SP6 ·
- SUSE-SU-2024:4272-1 · SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
- openSUSE-SU-2024:14553-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:14558-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:14559-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:14560-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:14561-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:14550-1 · openSUSE Tumbleweed ·
Affected products and versions
cross-spawn
- Versions
- ≥ 0, < 6.0.6: Affected (semver)
- ≥ 7.0.0, < 7.0.5: Affected (semver)
Update to 6.0.6; Update to 7.0.5
org.webjars.npm:cross-spawn
- Versions
- ≥ 0, < 6.0.6: Affected (semver)
- ≥ 7.0.2, < 7.0.6: Affected (semver)
Update to 6.0.6; Update to 7.0.6
npm Alpine 3.20
- Affected ranges
- ECOSYSTEM: < 10.9.1-r0
Update to 10.9.1-r0
npm Alpine 3.21
- Affected ranges
- ECOSYSTEM: < 10.9.1-r0
Update to 10.9.1-r0
npm Alpine 3.22
- Affected ranges
- ECOSYSTEM: < 10.9.1-r0
Update to 10.9.1-r0
npm Alpine 3.23
- Affected ranges
- ECOSYSTEM: < 10.9.1-r0
Update to 10.9.1-r0
npm Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 10.9.1-r0
Update to 10.9.1-r0
cross-spawn npm
- Affected ranges
- SEMVER: ≥ 7.0.0, < 7.0.5
Update to 7.0.5
cross-spawn npm
- Affected ranges
- SEMVER: < 6.0.6
Update to 6.0.6
Original sources
- https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349
- https://github.com/moxystudio/node-cross-spawn/pull/160
- https://github.com/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374f
- https://github.com/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ff
- https://nvd.nist.gov/vuln/detail/CVE-2024-21538