cve.bz

CVE-2024-21538

7.7 highEPSS 0.9%Fix available

High (7.7). EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in cross-spawn 6.0.6, 7.0.5.

On this page
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.

Severity

CVSS 4.0

7.7 high
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 60th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-11-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-21538 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-21538?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-21538?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-21538 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3xgq-45jj-v275npmcross-spawn>=7.0.0 <7.0.57.0.5
GHSA-3xgq-45jj-v275npmcross-spawn<6.0.66.0.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-coverage7.6.10-150400.12.6.1SUSE-SU-2025:3744-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 morepython-pluggy1.5.0-150400.14.10.1SUSE-SU-2025:3744-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 morepython-pytest8.3.5-150400.3.9.1SUSE-SU-2025:3744-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 morepython-pytest-cov6.2.1-150400.12.6.1SUSE-SU-2025:3744-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 morepython-pytest-mock3.14.0-150400.13.6.1SUSE-SU-2025:3744-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5, Linux Enterprise Module for Public Cloud 15 SP6 and 1 moreaws-cli1.33.26-150400.34.7.1SUSE-SU-2025:3744-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5, Linux Enterprise Module for Public Cloud 15 SP6 and 1 morepython-boto31.34.138-150400.27.7.1SUSE-SU-2025:3744-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5, Linux Enterprise Module for Public Cloud 15 SP6 and 1 morepython-botocore1.34.144-150400.41.7.1SUSE-SU-2025:3744-1
SUSELinux Enterprise Module for Web and Scripting 15 SP5nodejs1818.20.5-150400.9.30.1SUSE-SU-2024:4301-1
SUSELinux Enterprise Module for Web and Scripting 15 SP5nodejs2020.18.1-150500.11.15.1SUSE-SU-2024:4300-1
SUSELinux Enterprise Module for Web and Scripting 15 SP6nodejs2020.18.1-150600.3.6.1SUSE-SU-2024:4286-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5nodejs1818.20.5-8.30.1SUSE-SU-2024:4272-1
openSUSELeap 15.5nodejs1818.20.5-150400.9.30.1SUSE-SU-2024:4301-1
openSUSELeap 15.5nodejs2020.18.1-150500.11.15.1SUSE-SU-2024:4300-1
openSUSELeap 15.6aws-cli1.33.26-150400.34.7.1SUSE-SU-2025:3744-1
openSUSELeap 15.6nodejs2020.18.1-150600.3.6.1SUSE-SU-2024:4286-1
openSUSELeap 15.6python-boto31.34.138-150400.27.7.1SUSE-SU-2025:3744-1
openSUSELeap 15.6python-botocore1.34.144-150400.41.7.1SUSE-SU-2025:3744-1
openSUSELeap 15.6python-coverage7.6.10-150400.12.6.1SUSE-SU-2025:3744-1
openSUSELeap 15.6python-flaky3.8.1-150400.14.6.1SUSE-SU-2025:3744-1
openSUSELeap 15.6python-pluggy1.5.0-150400.14.10.1SUSE-SU-2025:3744-1
openSUSELeap 15.6python-pytest8.3.5-150400.3.9.1SUSE-SU-2025:3744-1
openSUSELeap 15.6python-pytest-cov6.2.1-150400.12.6.1SUSE-SU-2025:3744-1
openSUSELeap 15.6python-pytest-mock3.14.0-150400.13.6.1SUSE-SU-2025:3744-1
10 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.20, v3.21, v3.22 and 2 morenpm10.9.1-r0ALPINE-CVE-2024-21538
Azure Linux2js-jqueryno fix listedAZL-52548
Azure Linux2nodejs1818.20.3-2AZL-52551
Azure Linux2reaper3.1.1-15AZL-52561
Azure Linux3js-jqueryno fix listedAZL-52587
Azure Linux3nodejs20.14.0-3AZL-52604
Alpaquitastreamnpm10.9.1-r0BELL-CVE-2024-21538
BellSoft Hardened Containersstreamnpm10.9.1-r0BELL-CVE-2024-21538

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Discovery 1 for RHEL 9discovery/discovery-server-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Discovery 1 for RHEL 9discovery/discovery-ui-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-main-rhel8:4.4.7-2Fixed 2024-12-02RHSA-2024:10665
Red Hat Advanced Cluster Security 4.5advanced-cluster-security/rhacs-main-rhel8:4.5.5-3Fixed 2024-11-22RHSA-2024:10186
Red Hat Developer Hub 1.3 on RHEL 9rhdh/rhdh-hub-rhel9:1.3-131Fixed 2024-12-17RHBA-2024:10760
Red Hat Migration Toolkit for Containers 1.8rhmtc/openshift-migration-ui-rhel8:v1.8.7-2Fixed 2025-06-04RHSA-2025:8510
Red Hat OpenShift Container Platform 4.14openshift4/ose-monitoring-plugin-rhel8:v4.14.0-202412040905.p0.g4fa7043.assembly.stream.el8Fixed 2024-12-19RHSA-2024:11031
Red Hat OpenShift Container Platform 4.15openshift4/ose-monitoring-plugin-rhel8:v4.15.0-202412041605.p0.g1217bc1.assembly.stream.el8Fixed 2024-12-12RHSA-2024:10839
Red Hat OpenShift Container Platform 4.16openshift4/ose-monitoring-plugin-rhel9:v4.16.0-202412040032.p0.g6cfc2c8.assembly.stream.el9Fixed 2024-12-12RHSA-2024:10823
Red Hat OpenShift Container Platform 4.17openshift4/ose-monitoring-plugin-rhel9:v4.17.0-202411261404.p0.gad057d3.assembly.stream.el9Fixed 2024-12-03RHSA-2024:10518
Cryostat 3cross-spawnAffected
Migration Toolkit for Applications 7mta/mta-cli-rhel9Not affected
Migration Toolkit for Applications 7mta/mta-ui-rhel9Fix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Not affected
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Not affected
Multicluster Engine for Kubernetesmulticluster-engine/multicluster-engine-console-mce-rhel9Not affected
Network Observability Operatornetwork-observability/network-observability-console-plugin-rhel9Fix deferred
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Fix deferred
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-console-plugin-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-rhel8Will not fix
353 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-21538.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON