HIGH 7.5

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)

ArtifactAffected versionsFixed 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

2affected artifacts
18affected versions
2dependent artifacts (est.)
4dependent versions

0% of the dependent artifacts (0) still pull an affected version in their latest release.

DepthDependent versions
Direct
4

Most used dependents

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