Skip to main content

tiny-regex-c CVE-2026-11478

| EUVDEUVD-2026-35009 LOW
Uncontrolled Resource Consumption (CWE-400)
2026-06-08 cna@vuldb.com GHSA-8hjh-2xhj-mx62
1.9
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privilege system access
  2. Delivery
    Supply crafted regex pattern or target string to application
  3. Exploit
    Application passes input to matchstar in re.c
  4. Execution
    Trigger exponential backtracking paths
  5. Persist
    Exhaust process CPU time
  6. Impact
    Degrade 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 matchstar function in re.c. No special configuration, non-default feature flag, or elevated system privilege is required beyond local access. Exploitation is limited to availability impact only (VA:L); confidentiality and integrity are not exploitable through this vulnerability. Deployment in sandboxed, containerized, or capability-restricted environments (e.g., seccomp, cgroups CPU limits) would materially reduce the denial-of-service impact.

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 matchstar - for example, a pattern like (a+)+ against an input of repeated 'a' characters followed by a non-matching character. The application's processing thread spins consuming CPU, degrading or stalling the service for other users. The published proof-of-concept archive (tiny-regex-c-redos-poc.zip, referenced in the GitHub issue) provides a ready-made demonstration of this behavior.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

tiny-regex-c f2632c6d9ed25272987471cdb8b70395c2460bdb

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

Vendor (vuldb) PRIMARY 1.9 LOW
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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy