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 package | Versions | Reported by |
|---|---|---|
| cross-spawn | before 6.0.6, from 7.0.0 before 7.0.5 | CVE List |
| org.webjars.npm:cross-spawn | before 6.0.6, from 7.0.2 before 7.0.6 | CVE List |
| cross-spawn cross-spawn | before 7.0.5 | CVE List |
| cross-spawn (npm) | from 7.0.0 before 7.0.5, before 6.0.6 | GitHub Advisory Database |
All scores
| snyk | 8.7high CVSS:4.0 | 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 |
| snyk | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | 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 |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21538 changed 2026-08-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3xgq-45jj-v275 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-21538 changed 2026-07-28 | Public domain |