CVE-2024-21538 json
Regular Expression Denial of Service (ReDoS) in cross-spawn
published 2024-11-08 2 y ago modified 2026-09-10 1 mo ago also GHSA-3xgq-45jj-v275 , EUVD-2024-3189
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm cross-spawn 6.0.6, 7.0.5
- n/a cross-spawn 6.0.6, 7.0.5
- n/a org.webjars.npm:cross-spawn 6.0.6, 7.0.6
- cross-spawn cross-spawn 7.0.5
- aws-cli SLE Module for Public Cloud 15 SP7, SLE Module for Public Cloud 15 SP6, SLE Module for Public Cloud 15 SP5 +2 more 1.33.26-150400.34.7.1
- python-boto3 SLE Module for Python 3 15 SP7, SLE Module for Public Cloud 15 SP6, SLE Module for Public Cloud 15 SP5 +2 more 1.34.138-150400.27.7.1
- python-flaky openSUSE Leap 15.6 3.8.1-150400.14.6.1
- python-pluggy SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +8 more 1.5.0-150400.14.10.1
- python-pytest SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +8 more 8.3.5-150400.3.9.1
- python-botocore SLE Module for Python 3 15 SP7, SLE Module for Public Cloud 15 SP6, SLE Module for Public Cloud 15 SP5 +2 more 1.34.144-150400.41.7.1
- python-coverage SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +9 more 7.6.10-150400.12.6.1
- python-pytest-cov SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +8 more 6.2.1-150400.12.6.1
suse advisories SUSE-SU-2025:3744-1SUSE-SU-2024:4301-1SUSE-SU-2024:4300-1SUSE-SU-2024:4286-1SUSE-SU-2024:4272-1
- nodejs26 openSUSE Tumbleweed 26.3.1-1.1
- nodejs24 openSUSE Tumbleweed 24.11.1-2.1
- velociraptor openSUSE Tumbleweed 0.7.0.4.git142.862ef23-1.1
- nodejs22 openSUSE Tumbleweed 22.12.0-1.1
- jupyter-jupyterlab-latex openSUSE Tumbleweed 4.1.1-2.1
- python-furo openSUSE Tumbleweed 2024.8.6-2.1
- python-jupyter-ydoc openSUSE Tumbleweed 3.0.0-2.1
- python-nbdime openSUSE Tumbleweed 4.0.2-18.1
opensuse advisories openSUSE-SU-2026:11110-1openSUSE-SU-2025:15802-1openSUSE-SU-2025:14663-1openSUSE-SU-2025:14615-1openSUSE-SU-2024:14553-1openSUSE-SU-2024:14558-1
- npm Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 10.9.1-r0
alpine advisories ALPINE-CVE-2024-21538
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- nodejs18 CBL-Mariner 2.0 18.20.3-2
- reaper CBL-Mariner 2.0 3.1.1-15
- nodejs Azure Linux 3.0 20.14.0-3
azure linux advisories AZL-52551AZL-52561AZL-52604
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-21538 updated cvss 4.4
cross-spawn: regular expression denial of service
-
Red Hat Cryostat 3 cross-spawnaffected: no fix available
-
Red Hat Migration Toolkit for Applications 7 mta/mta-ui-rhel9 Red Hat Network Observability Operator network-observability/network-observability-console-plugin-rhel9 Red Hat Node HealthCheck Operator workload-availability/node-remediation-console-rhel8affected: no fix available “Fix deferred”
-
Red Hat OpenShift Lightspeed lightspeed-console-plugin-rhel9affected: no fix available
-
Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-hub-api-rhel8, openshift-pipelines/pipelines-console-plugin-rhel8, openshift-pipelines/pipelines-hub-db-migration-rhel8affected: no fix available, no fix planned “Will not fix”
-
Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7 Red Hat Ansible Automation Platform 2 aap-cloud-ui-container Red Hat Build of Keycloak cross-spawn Red Hat build of OptaPlanner 8 cross-spawnaffected: no fix available “Fix deferred”
-
Red Hat Connectivity Link 1 rhcl-1/rhcl-console-plugin-rhel9affected: no fix available
-
Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more Red Hat Enterprise Linux 9 npm, nodejs, nodejs-libs, nodejs-full-i18n Red Hat Enterprise Linux 10 nodejs22 Red Hat OpenShift Data Science (RHODS) rhods/odh-dashboard-rhel8affected: no fix available “Fix deferred”
-
Red Hat OpenShift Dev Spaces devspaces/traefik-rhel8, devspaces/dashboard-rhel8 Red Hat OpenShift distributed tracing 3 rhosdt/jaeger-query-rhel8affected: no fix available
show 21 moreshow fewer
-
Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8, openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/console-plugin-rhel8, openshift-gitops-argocd-rhel9-container Red Hat OpenShift Virtualization 4 container-native-virtualization/kubevirt-console-plugin, container-native-virtualization/kubevirt-console-plugin-rhel9 Red Hat Single Sign-On 7 cross-spawnaffected: no fix available “Fix deferred”
-
Red Hat Discovery 1 for RHEL 9 discovery/discovery-ui-rhel9 1.12.0-1, discovery/discovery-server-rhel9 1.12.0-1fixed: vendor fix RHSA-2025:1249
-
Red Hat Quay v3 quay/quay-rhel8 v3.13.6-5, quay/quay-rhel8 v3.14.2-7, quay/clair-rhel8 v3.13.6-1, quay/clair-rhel8 v3.14.2-1, quay/quay-builder-rhel8 v3.13.6-1, quay/quay-builder-rhel8 v3.14.2-1, +14 morefixed: vendor fix RHBA-2025:8262
-
Red Hat Developer Hub (RHDH) 1.4 rhdh 1.4-1734106454fixed: vendor fix RHBA-2024:11265
-
Red Hat Developer Hub 1.3 for RHEL 9 rhdh/rhdh-hub-rhel9 1.3-131fixed: vendor fix RHBA-2024:10760
-
Red Hat Migration Toolkit 1.8 rhmtc/openshift-migration-ui-rhel8 v1.8.7-2fixed: vendor fix RHSA-2025:8510
-
Red Hat OpenShift AI 2.16 rhoai v2.16.2-1741963152fixed: vendor fix RHSA-2025:3368
-
Red Hat OpenShift AI 2.17 rhoai v2.17.0-1739103483fixed: vendor fix RHSA-2025:1448
-
Red Hat OpenShift Container Platform 4.14 openshift4/ose-monitoring-plugin-rhel8 v4.14.0-202412040905.p0.g4fa7043.assembly.stream.el8fixed: vendor fix RHSA-2024:11031
-
Red Hat OpenShift Container Platform 4.15 openshift4/ose-monitoring-plugin-rhel8 v4.15.0-202412041605.p0.g1217bc1.assembly.stream.el8fixed: vendor fix RHSA-2024:10839
-
Red Hat OpenShift Container Platform 4.16 openshift4/ose-monitoring-plugin-rhel9 v4.16.0-202412040032.p0.g6cfc2c8.assembly.stream.el9fixed: vendor fix RHSA-2024:10823
-
Red Hat OpenShift Container Platform 4.17 openshift4/ose-monitoring-plugin-rhel9 v4.17.0-202411261404.p0.gad057d3.assembly.stream.el9, openshift4/nmstate-console-plugin-rhel9 v4.17.0-202501301204.p0.gcffdc60.assembly.stream.el9, openshift4/ose-networking-console-plugin-rhel9 v4.17.0-202411261204.p0.gfa9e6b0.assembly.stream.el9fixed: vendor fix RHSA-2025:0875
-
Red Hat OpenShift Container Platform 4.18 rhcos 418.94.202502100215-0, openshift4/frr-rhel9 v4.18.0-202502041302.p0.g1ad8f2e.assembly.stream.el9, openshift4/metallb-rhel9 v4.18.0-202502041632.p0.gdcee704.assembly.stream.el9, openshift4/ose-cli-rhel9 v4.18.0-202502040032.p0.ga50d4c0.assembly.stream.el9, openshift4/ose-pod-rhel9 v4.18.0-202502051032.p0.gacb9630.assembly.stream.el9, openshift4/ose-ptp-rhel9 v4.18.0-202501230001.p0.gcc2e8c8.assembly.stream.el9, +237 morefixed: vendor fix RHSA-2024:6122
-
Red Hat OpenShift Dev Spaces 3 devspaces/code-rhel9 3.18-6, devspaces/dashboard-rhel9 3.18-10fixed: vendor fix RHSA-2025:0892
-
Red Hat Trusted Artifact Signer 1.1 rhtas 1.1.1-1736885867, rhtas 1.1.1-1738843589, rhtas 1.1.1-1740413302fixed: vendor fix RHSA-2025:1842
-
Red Hat Trusted Profile Analyzer 1.2 rhtpa 1.2.1-1733575106, rhtpa 1.2.1-1733826968fixed: fixed in 1.2.1 RHSA-2024:11256
-
Red Hat RHACS 4.4 for RHEL 8 advanced-cluster-security/rhacs-main-rhel8 4.4.7-2fixed: vendor fix RHSA-2024:10665
-
Red Hat RHACS 4.5 for RHEL 8 advanced-cluster-security/rhacs-main-rhel8 4.5.5-3fixed: vendor fix RHSA-2024:10186
-
Red Hat RHODF 4.14 for RHEL 9 odf4/odf-console-rhel9 v4.14.18-3, odf4/ocs-client-console-rhel9 v4.14.18-2, odf4/odf-multicluster-console-rhel9 v4.14.18-2fixed: vendor fix RHSA-2025:8551
-
Red Hat RHODF 4.15 for RHEL 9 odf4/mcg-core-rhel9 v4.15.9-1, odf4/odf-console-rhel9 v4.15.14-2, odf4/ocs-client-console-rhel9 v4.15.14-2, odf4/odf-multicluster-console-rhel9 v4.15.14-2fixed: vendor fix RHSA-2025:0164
-
Red Hat RHODF 4.16 for RHEL 9 odf4/mcg-core-rhel9 v4.16.4-2, odf4/odf-console-rhel9 v4.16.5-2, odf4/ocs-client-console-rhel9 v4.16.5-2, odf4/odf-multicluster-console-rhel9 v4.16.5-2fixed: vendor fix RHSA-2024:11292
4 more fixed, 35 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.87% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P |
| CNA | 4.0 | 7.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | cross-spawn | >=7.0.0, <7.0.5 <6.0.6 |
7.0.5 6.0.6 |
Affected products
- n/a cross-spawn
- n/a org.webjars.npm:cross-spawn
- cross-spawn cross-spawn
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/moxystudio/node-cross-spawn/pull/160
web
-
github.com
/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374f
web
-
github.com
/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ff
web
-
github.com
/moxystudio/node-cross-spawn/commit/d35c865b877d2f9ded7c1ed87521c2fdb689c8dd
web
-
security.snyk.io
/vuln/SNYK-JS-CROSSSPAWN-8303230
web
-
security.snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-21538
advisory
-
github.com
/moxystudio/node-cross-spawn/issues/165
web
-
github.com
/moxystudio/node-cross-spawn
package
Sources
- CVE List CVE-2024-21538
- GitHub Advisory GHSA-3xgq-45jj-v275
- NVD CVE-2024-21538
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.