CVE-2024-21538
JSON

8.7high

Regular Expression Denial of Service (ReDoS) in cross-spawn

Severity
8.7high CVSS:4.0 by snyk
Exploit likelihood
0.87% (higher than 59% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-3xgq-45jj-v275

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.

Affected

Product or packageVersionsReported by
cross-spawnbefore 6.0.6, from 7.0.0 before 7.0.5CVE List
org.webjars.npm:cross-spawnbefore 6.0.6, from 7.0.2 before 7.0.6CVE List
cross-spawn cross-spawnbefore 7.0.5CVE List
cross-spawn (npm)from 7.0.0 before 7.0.5, before 6.0.6GitHub Advisory Database

All scores

snyk8.7high CVSS:4.0CVSS: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
snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS: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

Classification

CWE-1333

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

Las versiones del paquete cross-spawn anteriores a la 7.0.5 son vulnerables a la denegación de servicio por expresión regular (ReDoS) debido a una desinfección de entrada incorrecta. Un atacante puede aumentar el uso de la CPU y hacer que el programa se bloquee manipulando una cadena muy grande y bien manipulada.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21538 changed 2026-08-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-3xgq-45jj-v275 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-21538 changed 2026-07-28Public domain