Service interruption via function-name regex backtracking
Published Sep 26, 2023 · Updated Sep 24, 2024
ReDoS in get-func-name before 2.0.1 allows attackers to interrupt a consuming service via crafted function source text. The getFuncName fallback applies functionNameMatch to a function's string representation; overlapping whitespace branches backtrack excessively before an imbalanced parenthesis. Reachability requires attacker-influenced function source to enter the legacy name-detection fallback, where processing the payload consumes CPU and stalls the host application.
Summary
What happened
ReDoS in get-func-name before 2.0.1 allows attackers to interrupt a consuming service via crafted function source text. The getFuncName fallback applies functionNameMatch to a function's string representation; overlapping whitespace branches backtrack excessively before an imbalanced parenthesis. Reachability requires attacker-influenced function source to enter the legacy name-detection fallback, where processing the payload consumes CPU and stalls the host application.
The record
- CVE
- CVE-2023-43646
- Published
- Sep 26, 2023
- Updated
- Sep 24, 2024
- Vendor
- Chai
- Product
- get-func-name
- Classifications
- CWE-400, CWE-1333, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 26, 2023CVE publishedPublication date reported by the CVE source.
- Sep 24, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 2.0.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-4q6p-r6v2-jvc5 regular-expression proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo