Regular expression denial of service in cross-spawn
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 24 fixed, 20 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | cross-spawn | before 6.0.6; 7.0.0 to before 7.0.5 | 6.0.6, 7.0.5 | Patch available | CNA |
| — | org.webjars.npm:cross-spawn | before 6.0.6; 7.0.2 to before 7.0.6 | 6.0.6, 7.0.6 | Patch available | CNA |
| — | cross-spawn (npm) | 7.0.0 to before 7.0.5 | 7.0.5 | Patch available | GHSA-3xgq-45jj-v275 |
| — | cross-spawn (npm) | before 6.0.6 | 6.0.6 | Patch available | GHSA-3xgq-45jj-v275 |
- cross-spawn Vendor— Affected before 6.0.6; 7.0.0 to before 7.0.5 Fixed in 6.0.6, 7.0.5 Patch available CNA
- org.webjars.npm:cross-spawn Vendor— Affected before 6.0.6; 7.0.2 to before 7.0.6 Fixed in 6.0.6, 7.0.6 Patch available CNA
- cross-spawn (npm) Vendor— Affected 7.0.0 to before 7.0.5 Fixed in 7.0.5 Patch available GHSA-3xgq-45jj-v275
- cross-spawn (npm) Vendor— Affected before 6.0.6 Fixed in 6.0.6 Patch available GHSA-3xgq-45jj-v275
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:cross-spawn:cross-spawn:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:cross-spawn:cross-spawn:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
- Fix · CNA cross-spawn Fixed in 6.0.6, 7.0.5
- Fix · CNA org.webjars.npm:cross-spawn Fixed in 6.0.6, 7.0.6
- Fix · GHSA-3xgq-45jj-v275 cross-spawn (npm) Fixed in 7.0.5 Advisory →
- Fix · GHSA-3xgq-45jj-v275 cross-spawn (npm) Fixed in 6.0.6 Advisory →
Red Hat 30 advisories
- RHSA-2025:8551 Released 2025-06-04 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.14.18 Bug Fix Update
- RHODF 4.14 for RHEL 9 odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9, odf4/odf-multicluster-console-rhel9 +1
- RHSA-2025:8544 Released 2025-06-04 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.15.14 Bug Fix Update
- RHODF 4.15 for RHEL 9 odf4/mcg-rhel9-operator, odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9 +2
- RHSA-2025:8510 Released 2025-06-04 · Red Hat rating ImportantMigration Toolkit for Containers (MTC) 1.8.7 security and bug fix update
- 8Base-RHMTC-1.8 rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-ui-rhel8
Show 27 more Red Hat advisories
- RHSA-2025:3397 Released 2025-03-31 · Red Hat rating ImportantRHOAI 2.16.0 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.16 registry.redhat.io/rhoai/odh-codeflare-operator-rhel8, registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel8 +13
- RHSA-2025:3368 Released 2025-03-27 · Red Hat rating ImportantRHOAI 2.16.0 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.16 registry.redhat.io/rhoai/odh-codeflare-operator-rhel8, registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel8 +13
- RHSA-2025:2652 Released 2025-03-11 · Red Hat rating ImportantRHODF-4.18-RHEL-9 enhancement, bug fix and security update
- RHODF 4.18 for RHEL 9 odf4/cephcsi-rhel9, odf4/ocs-client-console-rhel9, odf4/ocs-metrics-exporter-rhel9 +3
- RHSA-2025:1842 Released 2025-02-25 · Red Hat rating ImportantRHTAS 1.1.1 - Red Hat Trusted Artifact Signer Release
- Red Hat Trusted Artifact Signer 1.1 registry.redhat.io/rhtas/rekor-search-ui-rhel9
- RHSA-2024:6122 Released 2025-02-25 · Red Hat rating ImportantOpenShift Container Platform 4.18.1 bug fix and security update
- Red Hat OpenShift Container Platform 4.18 openshift4/aws-kms-encryption-provider-rhel9, openshift4/azure-kms-encryption-provider-rhel9, openshift4/azure-service-rhel9-operator +47
- RHSA-2024:6121 Released 2025-02-25 · Red Hat rating ImportantOpenShift Container Platform 4.18.1 security and extras update
- Red Hat OpenShift Container Platform 4.18 openshift4/ingress-node-firewall-rhel9, openshift4/ingress-node-firewall-rhel9-operator, openshift4/kube-compare-artifacts-rhel9 +47
- RHSA-2025:1448 Released 2025-02-13 · Red Hat rating ImportantRHOAI 2.17.0 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.17 registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-operator-controller-rhel8 +5
- RHSA-2025:1321 Released 2025-02-11 · Red Hat rating LowRHTAS 1.1.1 - Red Hat Trusted Artifact Signer Release
- Red Hat Trusted Artifact Signer 1.1 registry.redhat.io/rhtas/rekor-search-ui-rhel9
- RHSA-2025:1286 Released 2025-02-11 · Red Hat rating LowRHTAS 1.1.1 - Red Hat Trusted Artifact Signer Release
- Red Hat Trusted Artifact Signer 1.1 registry.redhat.io/rhtas/rekor-search-ui-rhel9
- RHSA-2025:1249 Released 2025-02-10 · Red Hat rating Importantupdated discovery container images
- Discovery 1 for RHEL 9 discovery/discovery-server-rhel9, discovery/discovery-ui-rhel9
- RHSA-2025:0875 Released 2025-02-05 · Red Hat rating ImportantOpenShift Container Platform 4.17.15 security and extras update
- Red Hat OpenShift Container Platform 4.17 openshift4/nmstate-console-plugin-rhel9, openshift4/ose-ansible-rhel9-operator, openshift4/ose-helm-rhel9-operator +2
- RHSA-2025:0892 Released 2025-02-03 · Red Hat rating ImportantRed Hat OpenShift Dev Spaces 3.18.0 release
- Red Hat OpenShift Dev Spaces 3 devspaces/code-rhel9, devspaces/dashboard-rhel9, devspaces/devspaces-rhel9-operator +1
- RHSA-2025:0164 Released 2025-01-09 · Red Hat rating ModerateRed Hat OpenShift Data Foundation 4.15.9 Bug Fix Update
- RHODF 4.15 for RHEL 9 odf4/mcg-core-rhel9, odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9 +1
- RHSA-2025:0082 Released 2025-01-08 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.16.5 Bug Fix Update
- RHODF 4.16 for RHEL 9 odf4/cephcsi-rhel9, odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9 +1
- RHSA-2025:0079 Released 2025-01-08 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.17.2 Bug Fix Update
- RHODF 4.17 for RHEL 9 odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9, odf4/odf-multicluster-console-rhel9
- RHSA-2024:11031 Released 2024-12-19 · Red Hat rating LowOpenShift Container Platform 4.14.43 security update
- Red Hat OpenShift Container Platform 4.14 openshift4/ose-monitoring-plugin-rhel8
- RHSA-2024:11292 Released 2024-12-17 · Red Hat rating LowRed Hat OpenShift Data Foundation 4.16.4 security and bug fix update
- RHODF 4.16 for RHEL 9 odf4/mcg-core-rhel9
- RHSA-2024:11256 Released 2024-12-17 · Red Hat rating ImportantRed Hat Trusted Profile Analyzer 1.2.1
- Red Hat Trusted Profile Analyzer 1.2 registry.redhat.io/rhtpa/rhtpa-guac-rhel9
- RHSA-2024:11255 Released 2024-12-17 · Red Hat rating ImportantRed Hat Trusted Profile Analyzer 1.2.1
- Red Hat Trusted Profile Analyzer 1.2 registry.redhat.io/rhtpa/rhtpa-trustification-service-rhel9
- RHSA-2024:10986 Released 2024-12-12 · Red Hat rating LowRed Hat OpenShift Data Foundation 4.17.1 Bug Fix Update
- RHODF 4.17 for RHEL 9 odf4/mcg-core-rhel9
- RHSA-2024:10839 Released 2024-12-12 · Red Hat rating LowOpenShift Container Platform 4.15.41 bug fix and security update
- Red Hat OpenShift Container Platform 4.15 openshift4/ose-monitoring-plugin-rhel8
- RHSA-2024:10823 Released 2024-12-12 · Red Hat rating ModerateOpenShift Container Platform 4.16.26 bug fix and security update
- Red Hat OpenShift Container Platform 4.16 openshift4/ose-ibmcloud-machine-controllers-rhel9, openshift4/ose-monitoring-plugin-rhel9
- RHSA-2024:10907 Released 2024-12-10 · Red Hat rating LowRed Hat OpenShift Service Mesh Containers for 2.4.13
- RHOSSM 2.4 for RHEL 8 openshift-service-mesh/grafana-rhel8, openshift-service-mesh/istio-cni-rhel8, openshift-service-mesh/kiali-rhel8 +3
- RHSA-2024:10908 Released 2024-12-10 · Red Hat rating ModerateRed Hat OpenShift Service Mesh Containers for 2.5.7
- RHOSSM 2.5 for RHEL 8 openshift-service-mesh/kiali-ossmc-rhel8, openshift-service-mesh/kiali-rhel8
- RHSA-2024:10518 Released 2024-12-03 · Red Hat rating ImportantOpenShift Container Platform 4.17.7 bug fix and security update
- Red Hat OpenShift Container Platform 4.17 openshift4/ose-ibmcloud-machine-controllers-rhel9, openshift4/ose-monitoring-plugin-rhel9, openshift4/ose-networking-console-plugin-rhel9 +1
- RHSA-2024:10665 Released 2024-12-02 · Red Hat rating LowACS 4.4 enhancement and security update
- RHACS 4.4 for RHEL 8 advanced-cluster-security/rhacs-main-rhel8
- RHSA-2024:10186 Released 2024-11-22 · Red Hat rating ImportantACS 4.5 enhancement update
- RHACS 4.5 for RHEL 8 advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-rhel8-operator, advanced-cluster-security/rhacs-roxctl-rhel8 +3
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Cryostat 3 | Affected | No fix yet |
| Migration Toolkit for Applications 7 | Affected | No fix yet: Fix deferred |
| Network Observability Operator | Affected | No fix yet: Fix deferred |
| Node HealthCheck Operator | Affected | No fix yet: Fix deferred |
| OpenShift Lightspeed | Affected | No fix yet |
| OpenShift Pipelines | Affected | No fix yet: Fix deferred |
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Build of Keycloak | Affected | No fix yet: Fix deferred |
| Red Hat Connectivity Link 1 | Affected | No fix yet |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Data Science (RHODS) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet |
| Red Hat OpenShift GitOps | Affected | No fix yet |
| Red Hat OpenShift Virtualization 4 | Affected | No fix yet |
| Red Hat OpenShift distributed tracing 3 | Affected | No fix yet |
| Red Hat Single Sign-On 7 | Affected | No fix yet: Fix deferred |
| Red Hat build of OptaPlanner 8 | Affected | No fix yet: Fix deferred |
| 8Base-RHMTC-1.8 | Fixed | RHSA-2025:8510 |
| Discovery 1 for RHEL 9 | Fixed | RHSA-2025:1249 |
| Quay v3 | Fixed | — |
| RHACS 4.4 for RHEL 8 | Fixed | RHSA-2024:10665 |
| RHACS 4.5 for RHEL 8 | Fixed | RHSA-2024:10186 |
| RHODF 4.14 for RHEL 9 | Fixed | RHSA-2025:8551 |
| RHODF 4.15 for RHEL 9 | Fixed | RHSA-2025:0164, RHSA-2025:8544 |
| RHODF 4.16 for RHEL 9 | Fixed | RHSA-2024:11292, RHSA-2025:0082 |
| RHODF 4.17 for RHEL 9 | Fixed | RHSA-2024:10986, RHSA-2025:0079 |
| RHODF 4.18 for RHEL 9 | Fixed | RHSA-2025:2652 |
| RHOSSM 2.4 for RHEL 8 | Fixed | RHSA-2024:10907 |
| RHOSSM 2.5 for RHEL 8 | Fixed | RHSA-2024:10908 |
| Red Hat Developer Hub (RHDH) 1.4 | Fixed | — |
| Red Hat Developer Hub 1.3 for RHEL 9 | Fixed | — |
| Red Hat OpenShift AI 2.16 | Fixed | RHSA-2025:3368 |
| Red Hat OpenShift AI 2.17 | Fixed | RHSA-2025:1448 |
| Red Hat OpenShift Container Platform 4.14 | Fixed | RHSA-2024:11031 |
| Red Hat OpenShift Container Platform 4.15 | Fixed | RHSA-2024:10839 |
| Red Hat OpenShift Container Platform 4.16 | Fixed | RHSA-2024:10823 |
| Red Hat OpenShift Container Platform 4.17 | Fixed | RHSA-2024:10518, RHSA-2025:0875 |
| Red Hat OpenShift Container Platform 4.18 | Fixed | RHSA-2024:6121, RHSA-2024:6122 |
| Red Hat OpenShift Dev Spaces 3 | Fixed | RHSA-2025:0892 |
| Red Hat Trusted Artifact Signer 1.1 | Fixed | RHSA-2025:1286, RHSA-2025:1321, RHSA-2025:1842 |
| Red Hat Trusted Profile Analyzer 1.2 | Fixed | RHSA-2024:11255, RHSA-2024:11256 |
Not affected: 35 products
- 8Base-RHMTC-1.8
- Migration Toolkit for Applications 7
- Migration Toolkit for Virtualization
- Multicluster Engine for Kubernetes
- RHACS 4.4 for RHEL 8
- RHACS 4.5 for RHEL 8
- RHODF 4.14 for RHEL 9
- RHODF 4.15 for RHEL 9
- RHODF 4.16 for RHEL 9
- RHODF 4.17 for RHEL 9
- RHODF 4.18 for RHEL 9
- RHOSSM 2.5 for RHEL 8
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Advanced Cluster Security 4
- Red Hat Ansible Automation Platform 2
- Red Hat Data Grid 8
- Red Hat Developer Hub (RHDH) 1.4
- Red Hat Developer Hub 1.3 for RHEL 9
- Red Hat Integration Camel K 1
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift AI 2.16
- Red Hat OpenShift AI 2.17
- Red Hat OpenShift Container Platform 4.14
- Red Hat OpenShift Container Platform 4.15
- Red Hat OpenShift Container Platform 4.16
- Red Hat OpenShift Container Platform 4.17
- Red Hat OpenShift Dev Spaces 3
- Red Hat OpenShift distributed tracing 3
- Red Hat Process Automation 7
- Red Hat Satellite 6
- Red Hat Trusted Artifact Signer
- Red Hat build of Apache Camel - HawtIO 4
- Red Hat build of Apicurio Registry 2
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21538
- 2026-10-03 Alias added: GHSA-3xgq-45jj-v275
References
Other 6
- 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://github.com/moxystudio/node-cross-spawn/issues/165
- https://github.com/moxystudio/node-cross-spawn/commit/d35c865b877d2f9ded7c1ed87521c2fdb689c8dd
- https://github.com/moxystudio/node-cross-spawn
Sources
- CVE-2024-21538 · CVE Program
- CVE-2024-21538 · NVD
- FIRST EPSS
- GHSA-3xgq-45jj-v275 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-21538 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences