VDB

CVE-2024-21538

CVE-2024-21538 PUBLISHED CVSS 8.7 HIGH

Regular Expression Denial of Service (ReDoS) in cross-spawn

Reported by snyk · Published November 8, 2024

cross-spawn is fixed in 7.0.5 and 6.0.6 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
cross-spawnnpm7.0.5, 6.0.6
npmAlpine10.9.1-r0
arangodb-3.12Chainguard3.12.9.4-r8
argo-workflowsWolfi3.6.0-r1
sqlpadChainguard7.5.1-r1
nodejs-docsAmazon Linux1:18.20.5-1.amzn2023.0.1
renovateChainguard39.22.0-r0
nodejs-libsAmazon Linux1:18.20.5-1.amzn2023.0.1
nodejsAmazon Linux1:18.20.5-1.amzn2023.0.1
lernaChainguard8.1.9-r1
opensearch-dashboards-2-fipsChainguard2.17.1-r1
graalvm-23Chainguard23.0.2-r3

39 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
8.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

Affected products

VendorProductVersions
n/across-spawn0, 7.0.0
n/aorg.webjars.npm:cross-spawn0, 7.0.2
alpinenpm0
chainguardarangodb-3.120
wolfiargo-workflows0
chainguardsqlpad0
amazon:2023nodejs-docs0
chainguardrenovate0
amazon:2023nodejs-libs0
n/aorg.webjars.npm:cross-spawn0, 7.0.2
amazon:2023nodejs0
chainguardlerna0
chainguardopensearch-dashboards-2-fips0
chainguardgraalvm-230
amazon:2023v8-10.2-devel0
chainguardnpm-10.8.2*
wolfilerna0
chainguardpy3-captum0
wolfitileserver-gl0
amazon:2023nodejs20-full-i18n0

…and 36 more

Timeline

  • Nov 6, 2024 Fix PR Merged
  • Nov 8, 2024 CVE Published
  • Nov 8, 2024 EPSS Score (30 in total, the first dated here)
  • Nov 8, 2024 Coalition ESS Score (15 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (24 in total, the first dated here)
  • Nov 15, 2026 Distribution Patch (14 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-21538
vulnetix vdb fixes CVE-2024-21538

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-21538/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›