{"schema_version":"1.7.5","id":"CVE-2024-21538","published":"2024-11-08T05:00:04.695Z","modified":"2026-07-15T01:49:20.506972793Z","aliases":["GHSA-3xgq-45jj-v275"],"related":["CGA-4mjp-r4mw-qq36","SUSE-SU-2024:4272-1","SUSE-SU-2024:4286-1","SUSE-SU-2024:4300-1","SUSE-SU-2024:4301-1","SUSE-SU-2025:3744-1","openSUSE-SU-2024:14550-1","openSUSE-SU-2024:14553-1","openSUSE-SU-2024:14558-1","openSUSE-SU-2024:14559-1","openSUSE-SU-2024:14560-1","openSUSE-SU-2024:14561-1","openSUSE-SU-2025:14615-1","openSUSE-SU-2025:14663-1","openSUSE-SU-2025:15802-1","openSUSE-SU-2026:11110-1"],"details":"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":[{"ranges":[{"type":"GIT","repo":"https://github.com/moxystudio/node-cross-spawn","events":[{"introduced":"0"},{"fixed":"d35c865b877d2f9ded7c1ed87521c2fdb689c8dd"},{"fixed":"77cd97f3ca7b62c904a63a698fc4a79bf41977d0"},{"introduced":"0e7cd3d6c506251fdeb1513102adbd5e84c178a5"},{"fixed":"085268352dcbcad8064c64c5efb25268b4023184"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"6.0.6"},{"fixed":"7.0.6"},{"introduced":"7.0.0"},{"fixed":"7.0.5"}],"source":"AFFECTED_FIELD"}}],"versions":["v6.0.5","v7.0.5","v7.0.4","v7.0.3","v7.0.2","v7.0.1","v7.0.0","v6.0.4","v6.0.3","v6.0.2","v6.0.1","v6.0.0","5.1.0","5.0.1","5.0.0","4.0.2","4.0.0","3.0.1","3.0.0","2.2.3","2.2.2","2.2.0","2.1.5","2.1.4","2.1.3","2.1.2","2.1.1","2.0.1","2.0.0","1.0.4","1.0.3","1.0.2","1.0.1","1.0.0","0.4.1","0.4.0","0.3.0","0.2.9","0.2.8","0.2.7","0.2.6","0.2.5","0.2.4","0.2.3","0.2.2","0.2.1","0.2.0","0.1.7","0.1.6","0.1.5","0.1.4","0.1.3","0.1.2","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21538.json"}}],"references":[{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21538.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21538"},{"type":"FIX","url":"https://github.com/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ff"},{"type":"FIX","url":"https://github.com/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374f"},{"type":"FIX","url":"https://github.com/moxystudio/node-cross-spawn/pull/160"}],"database_specific":{"cna_assigner":"snyk","cwe_ids":["CWE-1333"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21538.json"},"severity":[{"type":"CVSS_V4","score":"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"}]}