7.5
HIGH
CVE-2024-21538
Node.js Cross-Spawn ReDoS Vulnerability
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.

INFO

Published Date :

Nov. 8, 2024, 5:15 a.m.

Last Modified :

May 20, 2025, 3:16 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2024-21538 has a 21 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-21538 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

JavaScript

Updated: 16 hours, 17 minutes ago
0 stars 0 fork 0 watcher
Born at : July 13, 2025, 6:22 p.m. This repo has been linked 1 different CVEs too.

None

Dockerfile JavaScript

Updated: 2 weeks, 2 days ago
0 stars 0 fork 0 watcher
Born at : June 28, 2025, 9:59 a.m. This repo has been linked 1 different CVEs too.

None

JavaScript HTML CSS Dockerfile

Updated: 2 weeks, 1 day ago
0 stars 0 fork 0 watcher
Born at : June 22, 2025, 5:18 p.m. This repo has been linked 2 different CVEs too.

None

JavaScript

Updated: 3 weeks, 5 days ago
0 stars 0 fork 0 watcher
Born at : June 17, 2025, 5:12 p.m. This repo has been linked 8 different CVEs too.

Zadanie 2. Łańcuch (pipeline) w usłudzie GitHub Actions.

Dockerfile HTML JavaScript CSS

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : June 2, 2025, 2:09 p.m. This repo has been linked 1 different CVEs too.

None

Dockerfile JavaScript

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : June 1, 2025, 8:01 p.m. This repo has been linked 1 different CVEs too.

None

Dockerfile JavaScript

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : June 1, 2025, 8:19 a.m. This repo has been linked 1 different CVEs too.

None

Dockerfile JavaScript HTML CSS

Updated: 1 month, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : May 26, 2025, 3:59 p.m. This repo has been linked 1 different CVEs too.

None

Dockerfile JavaScript

Updated: 2 months ago
0 stars 0 fork 0 watcher
Born at : May 12, 2025, 5:43 p.m. This repo has been linked 1 different CVEs too.

Weather simple app using docker

JavaScript HTML Dockerfile

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : April 25, 2025, 7:55 p.m. This repo has been linked 1 different CVEs too.

None

JavaScript TypeScript C

Updated: 2 months, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : April 10, 2025, 4:04 p.m. This repo has been linked 2 different CVEs too.

None

Dockerfile JavaScript

Updated: 2 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : April 7, 2025, 6:47 p.m. This repo has been linked 1 different CVEs too.

None

Dockerfile JavaScript Shell

Updated: 3 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : March 29, 2025, 8:54 p.m. This repo has been linked 9 different CVEs too.

github runner

Dockerfile Shell

Updated: 2 days, 5 hours ago
0 stars 0 fork 0 watcher
Born at : March 4, 2025, 9:38 p.m. This repo has been linked 43 different CVEs too.

None

Dockerfile JavaScript TypeScript

Updated: 5 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Jan. 27, 2025, 3:01 p.m. This repo has been linked 36 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-21538 vulnerability anywhere in the article.

  • Cyber Security News
Splunk Address Third-Party Packages Vulnerabilities in SOAR Versions – Update Now

Splunk has released critical security updates addressing multiple vulnerabilities in third-party packages in SOAR versions 6.4.0 and 6.4. Published on July 7, 2025, this comprehensive security update ... Read more

Published Date: Jul 09, 2025 (4 days, 21 hours ago)

The following table lists the changes that have been made to the CVE-2024-21538 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    May. 20, 2025

    Action Type Old Value New Value
    Added CWE CWE-1333
  • CVE Modified by [email protected]

    May. 19, 2025

    Action Type Old Value New Value
    Changed Description Versions of the package cross-spawn 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. 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.
    Added CVSS V4.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
  • CVE Modified by [email protected]

    Nov. 19, 2024

    Action Type Old Value New Value
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349 [No types assigned]
  • CVE Received by [email protected]

    Nov. 08, 2024

    Action Type Old Value New Value
    Added Description Versions of the package cross-spawn 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.
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230 [No types assigned]
    Added Reference Snyk https://github.com/moxystudio/node-cross-spawn/pull/160 [No types assigned]
    Added Reference Snyk https://github.com/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374f [No types assigned]
    Added Reference Snyk https://github.com/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ff [No types assigned]
    Added CWE Snyk CWE-1333
    Added CVSS V3.1 Snyk AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-21538 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-21538 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jul. 14, 2025 10:45