CVE-2024-21538

cross-spawn: regular expression denial of service

Published Nov 8, 2024 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-3189 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.
Github GHSA Github GHSA GHSA-3xgq-45jj-v275 Regular Expression Denial of Service (ReDoS) in cross-spawn
History
Type Values Removed Values Added
Metrics epss

{'score': 0.0017}

epss

{'score': 0.00197}

Type Values Removed Values Added
First Time appeared Redhat rhmt
CPEs cpe:/a:redhat:openshift_data_foundation:4.14::el9
cpe:/a:redhat:rhmt:1.8::el8
Vendors & Products Redhat rhmt
Type Values Removed Values Added
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. 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.
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_ai:2.16::el8
Type Values Removed Values Added
CPEs cpe:/a:redhat:rhdh:1.3::el9
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_data_foundation:4.18::el9
Type Values Removed Values Added
First Time appeared Redhat openshift Ai
Redhat rhdh
CPEs cpe:/a:redhat:openshift_ai:2.17::el8
cpe:/a:redhat:rhdh:1.4::el9
Vendors & Products Redhat openshift Ai
Redhat rhdh
Type Values Removed Values Added
First Time appeared Redhat discovery
Redhat openshift Devspaces
Redhat trusted Artifact Signer
CPEs cpe:/a:redhat:openshift_data_foundation:4.15::el9
cpe:/a:redhat:openshift_devspaces:3::el9
cpe:/a:redhat:trusted_artifact_signer:1.1::el9
cpe:/o:redhat:discovery:1.0::el9
Vendors & Products Redhat discovery
Redhat openshift Devspaces
Redhat trusted Artifact Signer
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.14::el8
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.14::el8
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.14::el8
cpe:/a:redhat:openshift_data_foundation:4.16::el9
Type Values Removed Values Added
First Time appeared Redhat trusted Profile Analyzer
CPEs cpe:/a:redhat:trusted_profile_analyzer:1.2::el9
Vendors & Products Redhat trusted Profile Analyzer
Type Values Removed Values Added
First Time appeared Redhat openshift Data Foundation
CPEs cpe:/a:redhat:openshift_data_foundation:4.17::el9
Vendors & Products Redhat openshift Data Foundation
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.15::el8
cpe:/a:redhat:openshift:4.16::el9
Type Values Removed Values Added
First Time appeared Redhat service Mesh
CPEs cpe:/a:redhat:service_mesh:2.4::el8
cpe:/a:redhat:service_mesh:2.5::el8
Vendors & Products Redhat service Mesh
Type Values Removed Values Added
First Time appeared Redhat openshift
CPEs cpe:/a:redhat:openshift:4.17::el9
Vendors & Products Redhat openshift
Type Values Removed Values Added
CPEs cpe:/a:redhat:advanced_cluster_security:4.4::el8
Type Values Removed Values Added
First Time appeared Redhat
Redhat advanced Cluster Security
CPEs cpe:/a:redhat:advanced_cluster_security:4.5::el8
Vendors & Products Redhat
Redhat advanced Cluster Security
Type Values Removed Values Added
Title cross-spawn: regular expression denial of service
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
First Time appeared Cross-spawn
Cross-spawn cross-spawn
CPEs cpe:2.3:a:cross-spawn:cross-spawn:*:*:*:*:*:*:*:*
Vendors & Products Cross-spawn
Cross-spawn cross-spawn
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P'}