{"id":"CVE-2024-21538","published":"2024-11-08T05:00:04Z","modified":"2026-08-07T15:25:37Z","title":"Versions of the package cross-spawn before 6.0.6, from 7.0.0 and before 7.0.5 are vulnerable to Regular Expression…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01318,"percentile":0.70903,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-CROSSSPAWN-8303230","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8366349","tags":[]},{"url":"https://github.com/moxystudio/node-cross-spawn/pull/160","tags":[]},{"url":"https://github.com/moxystudio/node-cross-spawn/commit/640d391fde65388548601d95abedccc12943374f","tags":[]},{"url":"https://github.com/moxystudio/node-cross-spawn/commit/5ff3a07d9add449021d806e45c4168203aa833ff","tags":[]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":14.18},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"cross-spawn","versions":["< 6.0.6",">= 7.0.0, < 7.0.5"]},{"vendor":"n/a","product":"org.webjars.npm:cross-spawn","versions":["< 6.0.6",">= 7.0.2, < 7.0.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-08T14:54:27.777922Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"cross-spawn","vulnerableRanges":[">=7.0.0, <7.0.5","<6.0.6"],"patched":["7.0.5","6.0.6"],"from":["GHSA-3xgq-45jj-v275"],"provenance":"source"}],"summary":{"text":"The cross-spawn npm package, in versions before 6.0.6 and from 7.0.0 before 7.0.5, contains a flaw in how it sanitises input, which leads to inefficient regular expression complexity. An attacker can send a very large, specially crafted string to drive up CPU usage and crash the program, with no authentication, user interaction or special configuration required beyond the ability to supply that input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:50:05Z"},"euvd":{"id":"EUVD-2024-3189","exploited":false,"provenance":"source"}}