CVE-2024-21538
HIGH 7.7CVSS 4.0Regular Expression Denial of Service (ReDoS) in cross-spawn
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.
- Published
- 8 Nov 2024
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-1333
- Also known as
- GHSA-3xgq-45jj-v275
- Sources
- NVDJSONOSV GHSA-3xgq-45jj-v275JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 4.0 | HIGH 7.7 | 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 |
| OSV | GitHub | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | cross-spawn | >= 7.0.0, < 7.0.5 | 7.0.5 |
| OSV | npm | cross-spawn | < 6.0.6 | 6.0.6 |
References
- https://github.com/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ff · WEB
- https://github.com/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374f · WEB
- https://github.com/moxystudio/node-cross-spawn/pull/160 · WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349 · WEB
- https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21538 · ADVISORY
- https://github.com/moxystudio/node-cross-spawn/issues/165 · WEB
- https://github.com/moxystudio/node-cross-spawn/commit/d35c865b877d2f9ded7c1ed87521c2fdb689c8dd · WEB
- https://github.com/moxystudio/node-cross-spawn · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 8 Nov 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 8 Nov 2024)