Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege system access
-
DeliverySupply crafted regex pattern or target string to application
-
ExploitApplication passes input to matchstar in re.c
-
ExecutionTrigger exponential backtracking paths
-
PersistExhaust process CPU time
-
ImpactDegrade or stall application availability
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires local system access with at least a low-privilege user account (CVSS AV:L, PR:L) - there is no network-based attack path. The target application must embed the kokke tiny-regex-c library at or before commit f2632c6d9ed25272987471cdb8b70395c2460bdb, and must expose a code path where attacker-controlled data (either the pattern or the input string) is passed to the |
| Impact | The CVSS 4.0 base score of 1.9 accurately reflects a tightly constrained threat: AV:L (local access required, no network exploitation path), PR:L (low-privilege attacker account needed), AC:L (no special conditions beyond access), and impact limited to VA:L (low availability degradation - not a full crash or system-wide DoS). Confidentiality and integrity are unaffected (VC:N/VI:N/SC:N/SI:N). The E:P exploit maturity modifier confirms PoC availability, consistent with the published archive. No EPSS score was provided in the input data, so exploitation probability cannot be quantified beyond the PoC signal. KEV status is negative - no confirmed active exploitation. The combination of local-only vector, low-privilege requirement, and low-severity impact makes this a low operational priority for most organizations; however, projects that embed tiny-regex-c and expose regex processing to local untrusted users (e.g., multi-tenant CLI tools, interpreters, or embedded systems with local user input) carry higher residual risk, compounded by the absence of any vendor patch. |
| Exploit ScenarioDerived | A local attacker with a low-privilege account on a system running an application that embeds tiny-regex-c crafts a regex pattern and input string specifically designed to trigger worst-case backtracking in |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
ReDoS (Regular Expression Denial of Service) in kokke tiny-regex-c up to commit f2632c6d9ed25272987471cdb8b70395c2460bdb allows local low-privileged attackers to cause availability degradation by supplying crafted input to the matchstar function in re.c, triggering exponential backtracking in the pattern handler. A public proof-of-concept exploit (tiny-regex-c-redos-poc.zip) has been published, though no vendor patch exists and the project maintainer has not responded to the responsible disclosure. No active exploitation in the wild has been confirmed (not in CISA KEV), and real-world risk is constrained by the local-only attack vector and low availability impact.
RemediationAI
No vendor-released patch has been identified at time of analysis; the project maintainer has not responded to the vulnerability report filed at https://github.com/kokke/tiny-regex-c/issues/100. Dependent projects should monitor the upstream repository at https://github.com/kokke/tiny-regex-c/ for any remediation commit. As an immediate compensating control, developers should enforce strict length limits on both the regex pattern string and the input string before passing them to matchstar - this bounds worst-case backtracking depth at the cost of rejecting longer but legitimate inputs. A more durable mitigation is to replace tiny-regex-c entirely with a linear-time regex engine such as RE2 or PCRE2 (in DFA mode), which eliminates ReDoS by design; this requires API-level refactoring and testing. If replacement is not feasible, wrapping the call in a timeout or separate thread with CPU quota enforcement (e.g., via setrlimit on Linux) can prevent full process hang, though it adds complexity and may cause partial failures that need graceful handling.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
tiny-regex-c is a minimalist C library implementing basic regular expression matching without a formal finite automaton engine. The matchstar function in re.c handles the '*' (zero-or-more) quantifier using a backtracking approach: for each position in the input, it recursively or iteratively explores all possible match lengths. CWE-400 (Uncontrolled Resource Consumption) is the root cause - when a crafted pattern combined with a crafted input string causes the backtracker to explore an exponentially large number of candidate paths (classic catastrophic backtracking / ReDoS), CPU consumption grows unboundedly relative to input size. This class of vulnerability is well-understood in regex engines lacking linear-time guarantees (e.g., those not based on Thompson NFA or RE2). No CPE string was included in the provided data; the affected artifact is identified solely by repository URL and commit hash.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (vuldb) · only source for this CVE.
CVSS VectorVendor: vuldb
DescriptionCVE.org
A flaw has been found in kokke tiny-regex-c up to f2632c6d9ed25272987471cdb8b70395c2460bdb. This vulnerability affects the function matchstar of the file re.c of the component Pattern Handler. This manipulation causes inefficient regular expression complexity. The attack is restricted to local execution. The exploit has been published and may be used. This product adopts a rolling release strategy to maintain continuous delivery. Therefore, version details for affected or updated releases cannot be specified. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-35009
GHSA-8hjh-2xhj-mx62
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB