Skip to main content
Public proof of conceptFix available

CVE-2024-21538

A public proof of concept exists; no exploitation attested.

  • Published2024-11-08
  • Fixed in7.0.5 · 6.0.6
  • WeaknessCWE-1333

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2024-11-0805:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2024-21538?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2024-21538?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

CISA-ADP · OSV
Cross-spawn
BranchAffectedFixed in
7.0< 7.0.57.0.5
7.0≥ 7.0.0, < 7.0.57.0.5
6.0< 6.0.66.0.6

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Vendor advisories

  • RHSA-2025:8551 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.14.18 Bug Fix Update

  • RHSA-2025:8544 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.15.14 Bug Fix Update

  • RHSA-2025:8510 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.8.7 security and bug fix update

  • RHSA-2025:3397 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: RHOAI 2.16.0 - Red Hat OpenShift AI

  • RHSA-2025:3368 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: RHOAI 2.16.0 - Red Hat OpenShift AI

  • RHSA-2025:2652 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: RHODF-4.18-RHEL-9 enhancement, bug fix and security update

5 more advisories

Full record on NVD

Fix

  1. Update Cross-spawn to 7.0.5 · 6.0.6
  2. Vendor fix Red Hat Product Security RHSA-2025:8551 · 9 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2025:3397 · 1 productFor Red Hat OpenShift AI 2.16.0 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
  4. Vendor fix Red Hat Product Security RHSA-2025:2652 · 9 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2024:6122 · 662 productsFor OpenShift Container Platform 4.18 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.18/release_notes/o…
  6. Vendor fix Red Hat Product Security RHSA-2024:6121 · 191 productsFor OpenShift Container Platform 4.18 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.18/release_notes/ocp-4-1…
  7. Vendor fix Red Hat Product Security RHSA-2025:1448 · 1 productFor Red Hat OpenShift AI 2.17.0 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionpoc2024-11-08
  • OpenCVESSVC decisionpoc—
  • CNACVSS 4.07.7read 2026-10-23
  • CNACVSS 3.17.5read 2026-10-23
  • CISA-ADPweakness (CWE)CWE-13332024-11-08
  • CNAweakness (CWE)CWE-1333read 2026-10-23
  • FIRST EPSSEPSS score0.9 %2026-10-22
  • OSVaffected packages—

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 4.0 vector
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
Published
2024-11-08
Last Modified
2026-07-28
NVD status
Deferred

Frequently asked questions

What is CVE-2024-21538?

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.

Is CVE-2024-21538 actively exploited?

A proof-of-concept exploit exists for CVE-2024-21538, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-21538?

CVE-2024-21538 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running cross-spawn? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month