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.
CVE-2024-21538
“—” beside the score: it is equal to NVD's CVSS score.
This high-severity CVE scores 7.5 under NVD CVSS v3. EPSS exploit probability: 0.9% (57th percentile of EPSS-scored CVEs). No GitHub Security Advisory CVSS is on record for this CVE.
- CISA's Vulnrichment rates exploitation as PoC; EchelonGraph holds no exploit-code reference for it
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 7.5HIGHmedium confidence
- EG Risk
- 65EG Risk 65/100
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computed (value × EchelonGraph’s weight)Severity75% × 45%The EG Score, 7.5 of 10.Exploitation40% × 40%EchelonGraph's fixed weight for EG-KEV Tier 3 (Elevated): a constant, not a probability.Automatability100% × 15%CISA's SSVC Automatable value: yes (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at low or medium mission impact; Attend at high (mission-essential systems).Exploitation public PoC (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 0.9%
- EPSS %ILE
- 57th
- KEV
- Not listed
SSVC (CISA's decision table, applied by EchelonGraph)Track at low or medium mission impact; Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation public PoC (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)14 days if the affected system is publicly exposed; 60 days if it is not.
In CISA KEV no (CISA's KEV catalog) · Automatable yes (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
November 8, 2024
Last Modified
August 7, 2026
Advisory Details (5)
Auto-updated Jul 28, 2026Regular Expression Denial of Service (ReDoS) in cross-spawn | CVE-2024-21538 | Snyk
https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230Regular Expression Denial of Service (ReDoS) in org.webjars.npm:cross-spawn | CVE-2024-21538 | Snyk
https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349fix: disable regexp backtracking
Fix merged in moxystudio/node-cross-spawn PR #160 on 2024-11-06 — awaiting tagged release
https://github.com/moxystudio/node-cross-spawn/pull/160commit 640d391fde65 (moxystudio/node-cross-spawn)
Fix landed in moxystudio/node-cross-spawn commit 640d391fde65 — awaiting tagged release
https://github.com/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374fcommit 5ff3a07d9add (moxystudio/node-cross-spawn)
Fix landed in moxystudio/node-cross-spawn commit 5ff3a07d9add — awaiting tagged release
https://github.com/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ffVendor Advisories for CVE-2024-21538(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHBA-2025:8262Red Hat Product SecurityHigh
Red Hat Bug Fix Advisory: Red Hat Quay v3.14.2 bug fix release
- RHSA-2025:8551Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.14.18 Bug Fix Update
- RHSA-2025:8544Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.15.14 Bug Fix Update
- RHSA-2025:8510Red Hat Product SecurityHigh
Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.8.7 security and bug fix update
- RHSA-2025:3397Red Hat Product SecurityHigh
Red Hat Security Advisory: RHOAI 2.16.0 - Red Hat OpenShift AI
- RHSA-2025:3368Red Hat Product SecurityHigh
Red Hat Security Advisory: RHOAI 2.16.0 - Red Hat OpenShift AI
- RHSA-2025:2652Red Hat Product SecurityHigh
Red Hat Security Advisory: RHODF-4.18-RHEL-9 enhancement, bug fix and security update
- RHSA-2025:1842Red Hat Product SecurityHigh
Red Hat Security Advisory: RHTAS 1.1.1 - Red Hat Trusted Artifact Signer Release
- +12 more
Patch Availability(29)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| cross-spawn | — |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(14)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2024-215382024-11-23
Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization.
- Red HatRHBA-2024:10760LOW2024-11-08
RHBA-2024:10760 — Low
- Red HatRHBA-2024:11265LOW2024-11-08
RHBA-2024:11265 — Low
- Red HatRHSA-2024:10186LOW2024-11-08
RHSA-2024:10186 — Low
- Red HatRHSA-2024:10518LOW2024-11-08
RHSA-2024:10518 — Low
- Red HatRHSA-2024:10665LOW2024-11-08
RHSA-2024:10665 — Low
- Red HatRHSA-2024:10823LOW2024-11-08
RHSA-2024:10823 — Low
- Red HatRHSA-2024:10839LOW2024-11-08
RHSA-2024:10839 — Low
- Red HatRHSA-2024:10907LOW2024-11-08
RHSA-2024:10907 — Low
- Red HatRHSA-2024:10908LOW2024-11-08
RHSA-2024:10908 — Low
- Red HatRHSA-2024:10986LOW2024-11-08
RHSA-2024:10986 — Low
- Red HatRHSA-2024:11255LOW2024-11-08
RHSA-2024:11255 — Low
- Red HatRHSA-2024:11256LOW2024-11-08
RHSA-2024:11256 — Low
- Red HatRHSA-2024:11292LOW2024-11-08
RHSA-2024:11292 — Low
Data Freshness Timeline
(refreshed 10× in last 7d / 27× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
Showing the most recent 92 of 211 refreshes on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 8 repeat rows among the latest 100 are merged into the row they repeat. The 119 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-10-15 16:29 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-14 16:30 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-13 16:30 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-12 18:03 UTCEG score recompute
- 2026-10-12 16:31 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-11 21:28 UTCEG score recompute
- 2026-10-11 16:21 UTCEG score recompute
- 2026-10-11 13:45 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-10 19:58 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-09 20:05 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-08 17:07 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-07 23:46 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-06 15:15 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-05 17:41 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-04 23:20 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-03 14:23 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-10-01 19:48 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-09-30 16:56 UTCEG score recompute
- 2026-09-30 15:01 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-09-29 23:41 UTCOSV refresh
- 2026-09-29 15:17 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-09-28 13:49 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-09-24 14:01 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-23 13:46 UTCEPSS rescoreEPSS 0.9% · 57th percentile
- 2026-09-20 20:14 UTCEPSS rescoreEPSS 0.9% · 57th percentile
Show 67 moreShow fewer
- 2026-09-16 14:06 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-16 05:11 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-15 03:08 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-13 16:45 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-12 14:59 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-11 14:51 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-11 09:34 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-10 21:23 UTCOSV refresh
- 2026-09-08 21:58 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-07 15:59 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-06 13:46 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-05 15:26 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-09-04 13:58 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-04 05:05 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-02 14:10 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-09-01 13:52 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-08-30 19:15 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-08-30 01:20 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-28 21:39 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-27 14:23 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-08-26 14:44 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-08-25 13:47 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-08-23 13:52 UTCOSV refresh
- 2026-08-23 00:17 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-08-21 23:47 UTCEPSS rescoreEPSS 0.9% · 56th percentile
- 2026-08-20 22:53 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-19 17:02 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-18 13:46 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-17 13:45 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-16 14:54 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-16 02:12 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-15 01:28 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-13 21:58 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-12 13:49 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-11 13:40 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-09 13:45 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-08 16:35 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-07 15:43 UTCEG score recompute
- 2026-08-07 15:43 UTCVendor advisory
- 2026-08-07 15:42 UTCMITRE cvelistV5CVSS v4 → 8.7
- 2026-08-06 13:45 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-05 19:15 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-04 15:08 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-04 10:36 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-03 10:34 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-02 02:25 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-08-01 04:14 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-30 16:26 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-30 01:29 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-28 16:40 UTCEG score recompute
- 2026-07-28 16:40 UTCVendor advisory
- 2026-07-28 16:19 UTCNVD updateCVSS v4 → 7.7
- 2026-07-28 15:34 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-28 08:24 UTCOSV refresh
- 2026-07-27 14:11 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-26 14:53 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-25 14:16 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-24 14:16 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-23 14:17 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-23 02:33 UTCEG score recompute
- 2026-07-22 23:20 UTCEG score recompute
- 2026-07-22 14:07 UTCEPSS rescoreEPSS 0.9% · 55th percentile
- 2026-07-21 15:23 UTCEPSS rescoreEPSS 0.9% · 54th percentile
- 2026-07-20 17:06 UTCEPSS rescoreEPSS 0.9% · 54th percentile
- 2026-07-19 14:30 UTCEPSS rescoreEPSS 0.9% · 54th percentile
- 2026-07-19 02:28 UTCEPSS rescoreEPSS 0.9% · 54th percentile
- 2026-07-18 10:03 UTCEPSS rescoreEPSS 0.9% · 54th percentile
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat:RHSA-2025:0875 · redhat:RHSA-2025:0079 · redhat:RHBA-2024:11265
Frequently asked(5)
What is CVE-2024-21538?
When was the CVE record for CVE-2024-21538 published?
Is CVE-2024-21538 actively exploited?
What is the CVSS score of CVE-2024-21538?
How do I remediate CVE-2024-21538?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2024-21538
Is Your Infrastructure Affected by CVE-2024-21538?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.