# CVE-2024-21538

> CVE-2024-21538. CVSS 7.5 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2024-21538
Last updated: 2026-08-07T15:25:37Z

- Published: 2024-11-08 05:00 UTC · Updated: 2026-08-07 15:25 UTC · Assigner: snyk
- CVSS: 7.5 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
- EPSS: 0.87%, 58th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-1333

## 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 vendors and products

- cross-spawn: cross-spawn
- n/a: cross-spawn
- n/a: org.webjars.npm:cross-spawn

## Tracked companies

- [Bitbucket](https://rewindex.com/company/bitbucket.md)
- [Jira](https://rewindex.com/company/jira.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-21538)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-21538)
- [https://github.com/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ff](https://github.com/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ff)
- [https://github.com/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374f](https://github.com/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374f)
- [https://github.com/moxystudio/node-cross-spawn/pull/160](https://github.com/moxystudio/node-cross-spawn/pull/160)
- [https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349](https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349)
- [https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230](https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-21538 · Markdown: https://rewindex.com/cve/CVE-2024-21538.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-21538 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:16:39.261Z
