Vulnerability · Published Nov 8, 2024 · Assigned by snyk

CVE-2024-21538

High 7.5

In plain English

A high-severity regular-expression denial of service in cross-spawn. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.9%top 41.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20npm10.9.1-r0ALPINE-CVE-2024-21538
Alpine:v3.21npm10.9.1-r0ALPINE-CVE-2024-21538
Alpine:v3.22npm10.9.1-r0ALPINE-CVE-2024-21538
Alpine:v3.23npm10.9.1-r0ALPINE-CVE-2024-21538
Alpine:v3.24npm10.9.1-r0ALPINE-CVE-2024-21538
npmcross-spawn7.0.5GHSA-3xgq-45jj-v275
npmcross-spawn6.0.6GHSA-3xgq-45jj-v275

Affected products (as reported)

VendorProductVersions
n/a cross-spawn 0 – before 6.0.67.0.0 – before 7.0.5
n/a org.webjars.npm:cross-spawn 0 – before 6.0.67.0.2 – before 7.0.6

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P

References