CVE-2024-21538
Public on
Last Modified:
Description
A Regular Expression Denial of Service (ReDoS) vulnerability was found in the cross-spawn package for Node.js. Due to improper input sanitization, an attacker can increase CPU usage and crash the program with a large, specially crafted string.
Additional Information
- This content is not included.Bugzilla 2324550: cross-spawn: regular expression denial of service
- Content from cwe.mitre.org is not included.CWE-1333: Inefficient Regular Expression Complexity
- FAQ: Frequently asked questions about CVE-2024-21538
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2024-21538
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2024-21538
Content from github.com is not included.https://github.com/moxystudio/node-cross-spawn/pull/160
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Cryostat 3 | cross-spawn | Affected | |
| Discovery 1 for RHEL 9 | discovery/discovery-server-rhel9 | Fixed | RHSA-2025:1249 |
| Discovery 1 for RHEL 9 | discovery/discovery-ui-rhel9 | Fixed | RHSA-2025:1249 |
| Migration Toolkit for Applications 7 | mta/mta-ui-rhel9 | Fix deferred | |
| Migration Toolkit for Applications 7 | mta/mta-cli-rhel9 | Not affected | |
| Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-console-plugin-rhel9 | Not affected | |
| Multicluster Engine for Kubernetes | multicluster-engine/console-mce-rhel8 | Not affected | |
| Multicluster Engine for Kubernetes | multicluster-engine/multicluster-engine-console-mce-rhel8 | Not affected | |
| Network Observability Operator | network-observability/network-observability-console-plugin-rhel9 | Fix deferred | |
| Node HealthCheck Operator | workload-availability/node-remediation-console-rhel8 | Fix deferred | |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-console-plugin-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-api-rhel8 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-db-migration-rhel8 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-ui-rhel8 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-rhel8 | Will not fix | |
| RHODF-4.14-RHEL-9 | odf4/ocs-client-console-rhel9 | Fixed | RHSA-2025:8551 |
| RHODF-4.14-RHEL-9 | odf4/odf-console-rhel9 | Fixed | RHSA-2025:8551 |
| RHODF-4.14-RHEL-9 | odf4/odf-multicluster-console-rhel9 | Fixed | RHSA-2025:8551 |
| RHODF-4.15-RHEL-9 | odf4/mcg-core-rhel9 | Fixed | RHSA-2025:0164 |
| RHODF-4.15-RHEL-9 | odf4/ocs-client-console-rhel9 | Fixed | RHSA-2025:8544 |
| RHODF-4.15-RHEL-9 | odf4/odf-console-rhel9 | Fixed | RHSA-2025:8544 |
| RHODF-4.15-RHEL-9 | odf4/odf-multicluster-console-rhel9 | Fixed | RHSA-2025:8544 |
| RHODF-4.16-RHEL-9 | odf4/mcg-core-rhel9 | Fixed | RHSA-2024:11292 |
| RHODF-4.16-RHEL-9 | odf4/ocs-client-console-rhel9 | Fixed | RHSA-2025:0082 |
| RHODF-4.16-RHEL-9 | odf4/odf-console-rhel9 | Fixed | RHSA-2025:0082 |
| RHODF-4.16-RHEL-9 | odf4/odf-multicluster-console-rhel9 | Fixed | RHSA-2025:0082 |
| RHODF-4.17-RHEL-9 | odf4/mcg-core-rhel9 | Fixed | RHSA-2024:10986 |
| RHODF-4.17-RHEL-9 | odf4/ocs-client-console-rhel9 | Fixed | RHSA-2025:0079 |
| RHODF-4.17-RHEL-9 | odf4/odf-console-rhel9 | Fixed | RHSA-2025:0079 |
| RHODF-4.17-RHEL-9 | odf4/odf-multicluster-console-rhel9 | Fixed | RHSA-2025:0079 |
| RHODF-4.18-RHEL-9 | odf4/ocs-client-console-rhel9 | Fixed | RHSA-2025:2652 |
| RHODF-4.18-RHEL-9 | odf4/odf-console-rhel9 | Fixed | RHSA-2025:2652 |
| RHODF-4.18-RHEL-9 | odf4/odf-multicluster-console-rhel9 | Fixed | RHSA-2025:2652 |
| Red Hat 3scale API Management Platform 2 | 3scale-amp-system-container | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-rhel8 | Not affected | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-central-db-rhel8 | Not affected | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-rhel8-operator | Not affected | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-roxctl-rhel8 | Not affected | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-scanner-v4-db-rhel8 | Not affected | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-scanner-v4-rhel8 | Not affected | |
| Red Hat Advanced Cluster Security 4.4 | advanced-cluster-security/rhacs-main-rhel8 | Fixed | RHSA-2024:10665 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-main-rhel8 | Fixed | RHSA-2024:10186 |
| Red Hat Ansible Automation Platform 2 | aap-cloud-ui-container | Fix deferred | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/lightspeed-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-controller | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-eda-controller | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-gateway | Not affected | |
| Red Hat Build of Keycloak | cross-spawn | Fix deferred | |
| Red Hat Connectivity Link 1 | rhcl-console-plugin-container | Affected | |
| Red Hat Data Grid 8 | cross-spawn | Not affected | |
| Red Hat Developer Hub (RHDH) 1.4 | rhdh/rhdh-hub-rhel9 | Fixed | RHBA-2024:11265 |
| Red Hat Developer Hub 1.3 on RHEL 9 | rhdh/rhdh-hub-rhel9 | Fixed | RHBA-2024:10760 |
| Red Hat Enterprise Linux 10 | nodejs22 | Fix deferred | |
| Red Hat Enterprise Linux 8 | nodejs:18/nodejs | Fix deferred | |
| Red Hat Enterprise Linux 8 | nodejs:20/nodejs | Fix deferred | |
| Red Hat Enterprise Linux 9 | nodejs:20/nodejs | Fix deferred | |
| Red Hat Enterprise Linux 9 | nodejs:22/nodejs | Fix deferred | |
| Red Hat Integration Camel K 1 | cross-spawn | Not affected | |
| Red Hat JBoss Enterprise Application Platform 7 | cross-spawn | Not affected | |
| Red Hat JBoss Enterprise Application Platform 8 | cross-spawn | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | cross-spawn | Not affected | |
| Red Hat Migration Toolkit for Containers 1.8 | rhmtc/openshift-migration-ui-rhel8 | Fixed | RHSA-2025:8510 |
| Red Hat OpenShift AI 2.16 | rhoai/odh-dashboard-rhel8 | Fixed | RHSA-2025:3368 |
| Red Hat OpenShift AI 2.16 | rhoai/odh-dashboard-rhel8 | Fixed | RHSA-2025:3397 |
| Red Hat OpenShift AI 2.17 | rhoai/odh-dashboard-rhel8 | Fixed | RHSA-2025:1448 |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-console | Fix deferred | |
| Red Hat OpenShift Container Platform 4.14 | openshift4/ose-monitoring-plugin-rhel8 | Fixed | RHSA-2024:11031 |
| Red Hat OpenShift Container Platform 4.15 | openshift4/ose-monitoring-plugin-rhel8 | Fixed | RHSA-2024:10839 |
| Red Hat OpenShift Container Platform 4.16 | openshift4/ose-monitoring-plugin-rhel9 | Fixed | RHSA-2024:10823 |
| Red Hat OpenShift Container Platform 4.17 | openshift4/ose-monitoring-plugin-rhel9 | Fixed | RHSA-2024:10518 |
| Red Hat OpenShift Container Platform 4.17 | openshift4/ose-networking-console-plugin-rhel9 | Fixed | RHSA-2024:10518 |
| Red Hat OpenShift Container Platform 4.17 | openshift4/nmstate-console-plugin-rhel9 | Fixed | RHSA-2025:0875 |
| Red Hat OpenShift Data Science (RHODS) | rhods/odh-dashboard-rhel8 | Fix deferred | |
| Red Hat OpenShift Dev Spaces | devspaces/dashboard-rhel8 | Affected | |
| Red Hat OpenShift Dev Spaces | devspaces/traefik-rhel8 | Affected | |
| Red Hat OpenShift Dev Spaces 3 Containers | devspaces/code-rhel9 | Fixed | RHSA-2025:0892 |
| Red Hat OpenShift Dev Spaces 3 Containers | devspaces/dashboard-rhel9 | Fixed | RHSA-2025:0892 |
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel8 | Affected | |
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel9 | Affected | |
| Red Hat OpenShift GitOps | openshift-gitops-1/console-plugin-rhel8 | Affected | |
| Red Hat OpenShift GitOps | openshift-gitops-1/argo-rollouts-rhel8 | Fix deferred | |
| Red Hat OpenShift Service Mesh 2.4 for RHEL 8 | openshift-service-mesh/grafana-rhel8 | Fixed | RHSA-2024:10907 |
| Red Hat OpenShift Service Mesh 2.4 for RHEL 8 | openshift-service-mesh/istio-cni-rhel8 | Fixed | RHSA-2024:10907 |
| Red Hat OpenShift Service Mesh 2.4 for RHEL 8 | openshift-service-mesh/kiali-rhel8 | Fixed | RHSA-2024:10907 |
| Red Hat OpenShift Service Mesh 2.4 for RHEL 8 | openshift-service-mesh/pilot-rhel8 | Fixed | RHSA-2024:10907 |
| Red Hat OpenShift Service Mesh 2.4 for RHEL 8 | openshift-service-mesh/proxyv2-rhel8 | Fixed | RHSA-2024:10907 |
| Red Hat OpenShift Service Mesh 2.4 for RHEL 8 | openshift-service-mesh/ratelimit-rhel8 | Fixed | RHSA-2024:10907 |
| Red Hat OpenShift Service Mesh 2.5 for RHEL 8 | openshift-service-mesh/kiali-ossmc-rhel8 | Fixed | RHSA-2024:10908 |
| Red Hat OpenShift Service Mesh 2.5 for RHEL 8 | openshift-service-mesh/kiali-rhel8 | Fixed | RHSA-2024:10908 |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-console-plugin-rhel9 | Affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-console-plugin | Fix deferred | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/jaeger-query-rhel8 | Affected | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/jaeger-agent-rhel8 | Not affected | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/jaeger-all-in-one-rhel8 | Not affected | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/jaeger-collector-rhel8 | Not affected | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/jaeger-es-index-cleaner-rhel8 | Not affected | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/jaeger-es-rollover-rhel8 | Not affected | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/jaeger-ingester-rhel8 | Not affected | |
| Red Hat Process Automation 7 | cross-spawn | Not affected | |
| Red Hat Quay 3 | quay/quay-rhel8 | Affected | |
| Red Hat Satellite 6 | nodejs-node-sass | Not affected | |
| Red Hat Satellite 6 | nodejs-webpack-cli | Not affected | |
| Red Hat Single Sign-On 7 | cross-spawn | Fix deferred | |
| Red Hat Trusted Artifact Signer | rhtas/fulcio-rhel9 | Not affected | |
| Red Hat Trusted Artifact Signer 1.1 | rhtas/rekor-search-ui-rhel9 | Fixed | RHSA-2025:1286 |
| Red Hat Trusted Artifact Signer 1.1 | rhtas/rekor-search-ui-rhel9 | Fixed | RHSA-2025:1321 |
| Red Hat Trusted Artifact Signer 1.1 | rhtas/rekor-search-ui-rhel9 | Fixed | RHSA-2025:1842 |
| Red Hat Trusted Profile Analyzer 1.2 | rhtpa/rhtpa-trustification-service-rhel9 | Fixed | RHSA-2024:11255 |
| Red Hat Trusted Profile Analyzer 1.2 | rhtpa/rhtpa-guac-rhel9 | Fixed | RHSA-2024:11256 |
| Red Hat build of Apache Camel - HawtIO 4 | cross-spawn | Not affected | |
| Red Hat build of Apicurio Registry 2 | cross-spawn | Not affected | |
| Red Hat build of OptaPlanner 8 | cross-spawn | Affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 4.4 | |
| Attack Vector | Local | |
| Attack Complexity | High | |
| Privileges Required | Low | |
| User Interaction | Required | |
| Scope | Unchanged | |
| Confidentiality Impact | None | |
| Integrity Impact | None | |
| Availability Impact | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.