Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109295 Overview
CVE-2026-109295 is a regular expression denial of service (ReDoS) vulnerability affecting Open WebUI versions 0.11.0 through 0.11.3. The flaw resides in the grep_knowledge_files and grep_chat_files tool functions, which accept user-controlled regex patterns without complexity limits. Authenticated users can instruct the backing model to invoke these functions with catastrophically backtracking patterns. Each malicious call stalls the asynchronous event loop for approximately two seconds, degrading service availability for all users of the instance. The issue is tracked under CWE-1333: Inefficient Regular Expression Complexity.
Critical Impact
Repeated invocations block Open WebUI server workers, producing a sustained denial-of-service condition against the chat and knowledge search backend.
Affected Products
- Open WebUI 0.11.0
- Open WebUI versions after 0.11.0 and before 0.11.4
- Deployments exposing grep_knowledge_files or grep_chat_files tool endpoints
Discovery Timeline
- 2026-10-12 - CVE-2026-109295 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-109295
Vulnerability Analysis
Open WebUI exposes two model-callable tools, grep_knowledge_files and grep_chat_files, that compile user-supplied patterns against stored content. The implementation passes the pattern directly to the Python regex engine without timeout enforcement or complexity analysis. An authenticated user can prompt the connected model to invoke either tool with a pattern that triggers catastrophic backtracking. According to the vendor advisory, each malicious invocation blocks the asynchronous event loop for roughly two seconds.
Because Open WebUI runs on a cooperative async worker model, a blocked event loop halts request processing for every concurrent session served by that worker. Repeated calls amplify the stall into a sustained outage. The vulnerability requires only a low-privilege authenticated session and no user interaction from other users.
Root Cause
The root cause is the absence of regex timeout handling and pattern complexity validation inside the two grep tool handlers. The functions accept arbitrary PCRE-style expressions, which permit nested quantifiers and overlapping alternations that produce exponential backtracking on crafted inputs. See the GitHub Security Advisory GHSA-gfjp-5hc9-852r for the maintainer analysis.
Attack Vector
The attack is remote and requires authentication but no privileged role. An attacker instructs the chat model to call grep_knowledge_files or grep_chat_files with a backtracking pattern targeting a cooperating input string. Each call consumes a worker for approximately two seconds, and loops of calls degrade availability for all tenants on the instance. Technical details are summarized in the VulnCheck Advisory on Open WebUI.
Detection Methods for CVE-2026-109295
Indicators of Compromise
- Repeated tool-call log entries for grep_knowledge_files or grep_chat_files from a single authenticated session within short time windows.
- Request latency spikes of approximately two seconds correlated with knowledge or chat search operations.
- Elevated CPU utilization on Open WebUI worker processes without corresponding model inference load.
Detection Strategies
- Log and inspect regex patterns submitted to grep tool endpoints for nested quantifiers such as (a+)+, (a|a)+, or long alternations.
- Correlate per-user tool invocation frequency with worker thread stall durations captured by application performance monitoring.
- Alert on sustained async event loop lag exceeding one second on Open WebUI instances.
Monitoring Recommendations
- Instrument the Open WebUI backend with Python async event-loop lag metrics exported to a time-series monitoring stack.
- Capture tool-call audit logs including authenticated user identity, pattern length, and execution time.
- Set thresholds to flag any single session issuing more than a small number of grep tool calls per minute.
How to Mitigate CVE-2026-109295
Immediate Actions Required
- Upgrade Open WebUI to version 0.11.4 or later, which contains the vendor fix.
- Audit existing user accounts and revoke access for untrusted or unknown principals pending patch deployment.
- Review recent application logs for repeated grep tool invocations and identify affected sessions.
Patch Information
The maintainers addressed the vulnerability in Open WebUI 0.11.4. The fix constrains pattern evaluation inside the grep_knowledge_files and grep_chat_files tool handlers to prevent catastrophic backtracking. Refer to the GitHub Security Advisory GHSA-gfjp-5hc9-852r for commit references and release notes.
Workarounds
- Disable the grep_knowledge_files and grep_chat_files tools in the Open WebUI tool configuration until the patch is applied.
- Place Open WebUI behind a reverse proxy that enforces per-user request rate limits on tool-call endpoints.
- Restrict instance access to trusted users through single sign-on or network-level allow lists while the patch is rolled out.
# Upgrade Open WebUI to the patched release
pip install --upgrade "open-webui>=0.11.4"
# Or, for container deployments
docker pull ghcr.io/open-webui/open-webui:0.11.4
docker stop open-webui && docker rm open-webui
docker run -d --name open-webui -p 3000:8080 ghcr.io/open-webui/open-webui:0.11.4
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

