Inefficient Regular Expression Complexity in get-func-name
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 fixed, 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| chaijs | get-func-name | before 2.0.1 | 2.0.1 | Patch available | CNA |
| — | get-func-name (npm) | before 2.0.1 | 2.0.1 | Patch available | GHSA-4q6p-r6v2-jvc5 |
- get-func-name Vendorchaijs Affected before 2.0.1 Fixed in 2.0.1 Patch available CNA
- get-func-name (npm) Vendor— Affected before 2.0.1 Fixed in 2.0.1 Patch available GHSA-4q6p-r6v2-jvc5
Remediation
- Fix · CNA get-func-name (chaijs) Fixed in 2.0.1
- Fix · GHSA-4q6p-r6v2-jvc5 get-func-name (npm) Fixed in 2.0.1 Advisory →
Red Hat 2 advisories
- RHSA-2024:4591 Released 2024-07-17 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.16.0 security, enhancement & bug fix update
- RHODF 4.16 for RHEL 9 odf4/cephcsi-rhel9, odf4/mcg-core-rhel9, odf4/mcg-operator-bundle +8
- RHSA-2024:1383 Released 2024-03-19 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.15.0 security, enhancement, & bug fix update
- RHODF 4.15 for RHEL 9 odf4/cephcsi-rhel9, odf4/mcg-core-rhel9, odf4/mcg-operator-bundle +23
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2 | Affected | No fix yet |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet |
| RHODF 4.15 for RHEL 9 | Fixed | RHSA-2024:1383 |
| RHODF 4.16 for RHEL 9 | Fixed | RHSA-2024:4591 |
Not affected: 4 products
- RHODF 4.15 for RHEL 9
- RHODF 4.16 for RHEL 9
- Red Hat Enterprise Linux 8
- Red Hat JBoss Enterprise Application Platform 8
Timeline
- 2026-10-02 Threatist record created from CVE-2023-43646
- 2026-10-03 Alias added: GHSA-4q6p-r6v2-jvc5
References
Sources
- CVE-2023-43646 · CVE Program
- CVE-2023-43646 · NVD
- FIRST EPSS
- GHSA-4q6p-r6v2-jvc5 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-43646 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences