CVE-2024-21538
published high CVSS 4.0 · 8.7cross-spawn: regular expression denial of service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | cross-spawn0 to < 6.0.6 · 7.0.0 to < 7.0.5 | Affected | Not stated | snyk |
| n/a | — | org.webjars.npm:cross-spawn0 to < 6.0.6 · 7.0.2 to < 7.0.6 | Affected | Not stated | snyk |
| cross-spawn | — | cross-spawn0 to < 7.0.5 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-795 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-796 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | npm | Fixed | 10.9.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-12-SP5 | nodejs18x86_64 | Advisory build | 18.20.5-8.30.1 | SUSE-SU-2024:4272-1 |
| Alpine Linux | v3.20 | npm | Fixed | 10.9.1-r0 | Package fix record |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | npm | Fixed | 10.9.1-r0 | Package fix record |
| Alpine Linux | v3.22 | npm | Fixed | 10.9.1-r0 | Package fix record |
| Alpine Linux | v3.23 | npm | Fixed | 10.9.1-r0 | Package fix record |
| Alpine Linux | v3.24 | npm | Fixed | 10.9.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-12-SP5 | nodejs18-develx86_64 | Advisory build | 18.20.5-8.30.1 | SUSE-SU-2024:4272-1 |
| SUSE / openSUSE | SLE-12-SP5 | nodejs18-docsnoarch | Advisory build | 18.20.5-8.30.1 | SUSE-SU-2024:4272-1 |
| SUSE / openSUSE | SLE-12-SP5 | npm18x86_64 | Advisory build | 18.20.5-8.30.1 | SUSE-SU-2024:4272-1 |
| SUSE / openSUSE | SLE-15-SP4 | aws-clinoarch | Advisory build | 1.33.26-150400.34.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-boto3noarch | Advisory build | 1.34.138-150400.27.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-botocorenoarch | Advisory build | 1.34.144-150400.41.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-coverageaarch64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-coverageppc64le | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-coverages390x | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-coveragex86_64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-pluggynoarch | Advisory build | 1.5.0-150400.14.10.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-pytestnoarch | Advisory build | 8.3.5-150400.3.9.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-pytest-covnoarch | Advisory build | 6.2.1-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-pytest-mocknoarch | Advisory build | 3.14.0-150400.13.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | aws-clinoarch | Advisory build | 1.33.26-150400.34.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18aarch64 | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18ppc64le | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18s390x | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18x86_64 | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18-develaarch64 | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18-develppc64le | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18-devels390x | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18-develx86_64 | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs18-docsnoarch | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20aarch64 | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20ppc64le | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20s390x | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20x86_64 | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20-develaarch64 | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20-develppc64le | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20-devels390x | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20-develx86_64 | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | nodejs20-docsnoarch | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | npm18aarch64 | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | npm18ppc64le | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | npm18s390x | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | npm18x86_64 | Advisory build | 18.20.5-150400.9.30.1 | SUSE-SU-2024:4301-1 |
| SUSE / openSUSE | SLE-15-SP5 | npm20aarch64 | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | npm20ppc64le | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | npm20s390x | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | npm20x86_64 | Advisory build | 20.18.1-150500.11.15.1 | SUSE-SU-2024:4300-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-boto3noarch | Advisory build | 1.34.138-150400.27.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-botocorenoarch | Advisory build | 1.34.144-150400.41.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-coverageaarch64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-coverageppc64le | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-coverages390x | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-coveragex86_64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-pluggynoarch | Advisory build | 1.5.0-150400.14.10.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-pytestnoarch | Advisory build | 8.3.5-150400.3.9.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-pytest-covnoarch | Advisory build | 6.2.1-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-pytest-mocknoarch | Advisory build | 3.14.0-150400.13.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | aws-clinoarch | Advisory build | 1.33.26-150400.34.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20aarch64 | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20ppc64le | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20s390x | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20x86_64 | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20-develaarch64 | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20-develppc64le | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20-devels390x | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20-develx86_64 | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | nodejs20-docsnoarch | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | npm20aarch64 | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | npm20ppc64le | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | npm20s390x | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | npm20x86_64 | Advisory build | 20.18.1-150600.3.6.1 | SUSE-SU-2024:4286-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-boto3noarch | Advisory build | 1.34.138-150400.27.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-botocorenoarch | Advisory build | 1.34.144-150400.41.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-coverageaarch64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-coverageppc64le | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-coverages390x | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-coveragex86_64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-pluggynoarch | Advisory build | 1.5.0-150400.14.10.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-pytestnoarch | Advisory build | 8.3.5-150400.3.9.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-pytest-covnoarch | Advisory build | 6.2.1-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-pytest-mocknoarch | Advisory build | 3.14.0-150400.13.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | aws-clinoarch | Advisory build | 1.33.26-150400.34.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-boto3noarch | Advisory build | 1.34.138-150400.27.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-botocorenoarch | Advisory build | 1.34.144-150400.41.7.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-coverageaarch64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-coverageppc64le | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-coverages390x | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-coveragex86_64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-pluggynoarch | Advisory build | 1.5.0-150400.14.10.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-pytestnoarch | Advisory build | 8.3.5-150400.3.9.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-pytest-covnoarch | Advisory build | 6.2.1-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-pytest-mocknoarch | Advisory build | 3.14.0-150400.13.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-coverageaarch64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-coverageppc64le | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-coverages390x | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-coveragex86_64 | Advisory build | 7.6.10-150400.12.6.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-pluggynoarch | Advisory build | 1.5.0-150400.14.10.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-pytestnoarch | Advisory build | 8.3.5-150400.3.9.1 | SUSE-SU-2025:3744-1 |
| SUSE / openSUSE | SLE-3-SP6 | python311-pytest-covnoarch | Advisory build | 6.2.1-150400.12.6.1 | SUSE-SU-2025:3744-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- snyk · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | snyk · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | cross-spawn | 0 to < 6.0.6 (affected · semver)7.0.0 to < 7.0.5 (affected · semver) | snyk · cna |
| n/a | org.webjars.npm:cross-spawn | 0 to < 6.0.6 (affected · semver)7.0.2 to < 7.0.6 (affected · semver) | snyk · cna |
| cross-spawn | cross-spawn | 0 to < 7.0.5 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- CWE-1333 Regular Expression Denial of Service (ReDoS)
- CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
References
5- 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/pull/160
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349
- https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230
Provider assertions
2snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6fd2444833f952122dd35f5c082eaf6789d47098024e5825a1bb7f1fc3b8ba0a
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record