cve.bz

CVE-2023-43646 chaijs get-func-name: Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 1.4%Fix available

High (7.5) in chaijs get-func-name. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in get-func-name 2.0.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-09-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-43646 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-43646?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-43646?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-43646 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
chaijs:get-func-namebefore 2.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4q6p-r6v2-jvc5npmget-func-name<2.0.12.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-get-func-nameno fix listedDEBIAN-CVE-2023-43646
Debian13, 14node-get-func-name2.0.2-1DEBIAN-CVE-2023-43646
Ubuntu18.04:LTS, 20.04:LTSnode-get-func-nameno fix listedUBUNTU-CVE-2023-43646
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moreqt6-webengine, node-get-func-nameno fix listedUBUNTU-CVE-2023-43646

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

- 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'

- The get-func-name package is a build-time dependency in Red Hat products, which reduces the chance of successful exploitation. Hence, the impact is set to Moderate.

ProductPackageStateAdvisory
RHODF-4.15-RHEL-9odf4/odf-console-rhel9:v4.15.0-57Fixed 2024-03-19RHSA-2024:1383
RHODF-4.16-RHEL-9odf4/odf-multicluster-console-rhel9:v4.16.0-58Fixed 2024-07-17RHSA-2024:4591
OpenShift Service Mesh 2openshift-service-mesh/kiali-rhel8Affected
Red Hat Enterprise Linux 8pcsNot affected
Red Hat JBoss Data Grid 7get-func-nameOut of support scope
Red Hat JBoss Enterprise Application Platform 8get-func-nameNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-consoleWill not fix
Red Hat OpenShift Dev Spacesdevspaces/traefik-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-43646.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON