CVE-2024-21538
Regular Expression Denial of Service (ReDoS) in cross-spawn
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » cross-spawnvia npm cross-spawn | < 6.0.6>= 7.0.0, < 7.0.5 | 6.0.6, 7.0.5 |
| org.webjars.npm » cross-spawnvia npm cross-spawn | < 6.0.6>= 7.0.0, < 7.0.5 | 6.0.6, 7.0.5 |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 4 |
Most used dependents
- org.webjars.npm » react-dev-utils2 usages
- org.webjars.npm » ionic0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2024-21538 | nvd.nist.gov |
| Package | moxystudio/node-cross-spawn | github.com |
| Web | moxystudio/node-cross-spawn issue #165 | github.com |
| Web | moxystudio/node-cross-spawn pull request #160 | github.com |
| Web | moxystudio/node-cross-spawn commit 5ff3a07 | github.com |
| Web | moxystudio/node-cross-spawn commit 640d391 | github.com |
| Web | moxystudio/node-cross-spawn commit d35c865 | github.com |
| Web | vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349 | security.snyk.io |
| Web | vuln/SNYK-JS-CROSSSPAWN-8303230 | security.snyk.io |
