{"id":"CVE-2023-43646","published":"2023-09-26T18:19:29Z","modified":"2024-09-24T17:26:54Z","title":"Inefficient Regular Expression Complexity in get-func-name","vendor":"chaijs","product":"get-func-name","tier":"tail","description":{"text":"get-func-name is a module to retrieve a function's name securely and consistently both in NodeJS and the browser. Versions prior to 2.0.1 are subject to a regular expression denial of service (redos) vulnerability which may lead to a denial of service when parsing malicious input. This vulnerability can be exploited when there is an imbalance in parentheses, which results in excessive backtracking and subsequently increases the CPU load and processing time significantly. This vulnerability can be triggered using the following input: '\\t'.repeat(54773) + '\\t/function/i'. This issue has been addressed in commit `f934b228b` which has been included in releases from 2.0.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01383,"percentile":0.7284,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/chaijs/get-func-name/security/advisories/GHSA-4q6p-r6v2-jvc5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chaijs/get-func-name/commit/f934b228b5e2cb94d6c8576d3aac05493f667c69","tags":["x_refsource_MISC"]}],"priority":{"score":25.6,"factors":[{"name":"EPSS percentile","points":14.57},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-08-21","earliestUrl":"https://github.com/200101WhoAmI/CVE-2023-43646","repos":[{"name":"200101WhoAmI/CVE-2023-43646","url":"https://github.com/200101WhoAmI/CVE-2023-43646","stars":0,"created":"2024-08-21"}]},"first":{"date":"2024-08-21","source":"PoC-in-GitHub","url":"https://github.com/200101WhoAmI/CVE-2023-43646"},"provenance":"source"},"vendorSlug":"chaijs","affectedVersions":[{"vendor":"chaijs","product":"get-func-name","versions":["< 2.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-24T17:25:36.130206Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"get-func-name","vulnerableRanges":["<2.0.1"],"patched":["2.0.1"],"from":["GHSA-4q6p-r6v2-jvc5"],"provenance":"source"}],"summary":{"text":"The get-func-name module, published by chaijs, contains an inefficient regular expression flaw in versions before 2.0.1 that causes excessive backtracking when parsing input with unbalanced parentheses. An unauthenticated remote attacker who can supply crafted input to the module's parsing can trigger the backtracking, consuming CPU and processing time to produce a denial of service, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:31Z"},"euvd":{"id":"EUVD-2023-2419","exploited":false,"provenance":"source"}}