Sep 10, 2026·6 min read·26 visits
An authenticated user can permanently freeze an Open WebUI server by creating a circular message reference and initiating a deletion, causing an infinite CPU-bound loop that blocks the application's single asyncio thread.
An authenticated denial-of-service vulnerability exists in Open WebUI versions 0.10.0 up to 0.11.0. By uploading a malformed chat history containing cyclical child message references and requesting a message deletion, an attacker can trigger an infinite loop. Since Open WebUI relies on Python's single-threaded asyncio event loop, the CPU-bound loop blocks all incoming connections, freezing the service for all users.
Open WebUI is an extensible, user-friendly, self-hosted interface for managing artificial intelligence workloads and interacting with Large Language Models. To support deep branching conversations, the application structures conversation logs as hierarchical tree networks. Each message node links dynamically to its predecessor and successor nodes, storing child pointers in an internal configuration dictionary.
This backend architecture exposes an attack surface within its chat management API endpoints. Specifically, the message deletion pipeline retrieves and reorganizes child message links when a node is removed. A standard authenticated user can access these interfaces to update, modify, or remove messages from their own personal chat logs.
Because the backend fails to validate structural integrity during JSON document ingestion, users can save chat records that violate directed acyclic graph guidelines. If an attacker introduces cyclic child-parent relationships into their chat history, the deletion logic breaks down. When a deletion is requested, the system enters an infinite loop, starving the runtime environment of CPU resources.
The underlying flaw resides in the recursive traversal logic inside backend/open_webui/models/chats.py. When a user deletes a message, the server attempts to recalculate the chat state. It seeks to resolve the new terminal leaf node (currentId) by stepping down through the list of child references.
The application implements this search via a standard while loop that resolves the last element of the child identifier list. If a cycle exists, such as Message 1 declaring Message 2 as its child, and Message 2 declaring Message 1 as its child, the loop becomes unbounded. The traversal shifts back and forth between these nodes without ever encountering a terminal state.
This behavior has severe consequences because of Python's execution architecture. Open WebUI operates on a single-threaded asynchronous runtime powered by asyncio. A synchronous, CPU-bound infinite loop executes continuously on the main thread without yielding control to other scheduled tasks. Consequently, the entire web server locks up, denying service to all concurrent users on the platform.
The flaw is situated inside the delete_message_from_history() helper function. This function parses the raw chat dictionary and updates pointers. Reviewing the vulnerable implementation reveals a standard unbounded iteration strategy:
def delete_message_from_history(history: dict, message_id: str) -> set[str]:
# ...
# Retrieve child messages starting from the target location
child_ids = (
messages.get(current_id, {}).get('childrenIds', [])
if current_id is None
else messages.get(current_id, {}).get('childrenIds', [])
)
# Vulnerable loop: Traverses down without tracking visited nodes
while child_ids:
current_id = child_ids[-1]
child_ids = messages.get(current_id, {}).get('childrenIds', [])
history['currentId'] = current_id if current_id in messages else None
return deleted_idsThe patched version addresses the issue by implementing a cycle-detection tracker. A Python set is initialized to track every node identifier that has already been visited during the execution scope. If the next resolved child ID is identified within this set, the execution breaks the iteration immediately:
def delete_message_from_history(history: dict, message_id: str) -> set[str]:
# ...
child_ids = (
messages.get(current_id, {}).get('childrenIds', [])
if current_id is None
else messages.get(current_id, {}).get('childrenIds', [])
)
# Patched loop: Introduces visited tracking to detect cycles
visited_ids = set()
while child_ids and child_ids[-1] not in visited_ids:
current_id = child_ids[-1]
visited_ids.add(current_id)
child_ids = messages.get(current_id, {}).get('childrenIds', [])
history['currentId'] = current_id if current_id in messages else None
return deleted_idsAlthough the local fix stops the execution thread from hanging, it represents a reactive mitigation. The backend database layer still does not validate structural constraints during direct write operations. Therefore, other components that traverse the chat log trees using distinct search functions might also be vulnerable to cycle exploitation.
Exploiting this vulnerability does not require administrative privileges. Any registered user can trigger the vulnerability by submitting standard HTTP API commands to the server. The attacker first crafts a custom JSON payload representing a cyclic graph structure.
The attacker uploads the malformed chat data structure using a POST request to /api/v1/chats/new. Once the chat object is created, the database updates to store the cyclic relationships. The attacker then targets the deletion route to trigger the loop:
DELETE /api/v1/chats/{id}/messages/msg_1
Upon receiving this request, the backend executes the deletion helper. The loop runs indefinitely, consuming 100% of the assigned CPU core resources. Because the async scheduler cannot execute other tasks, all concurrent client requests fail to resolve.
The primary impact of this vulnerability is total denial of service. Because the application uses a single process worker pool by default in many self-hosted environments, a single request can render the entire system offline. This impacts all registered users on the system, regardless of their role.
The vulnerability does not allow remote code execution, database compromise, or unauthorized reading of other users' confidential histories. Therefore, the Confidentiality and Integrity metrics remain at None. However, because the attack is trivial to execute and requires zero user interaction from other victims, the Availability impact is High.
In environments where Open WebUI is exposed to public registration or shared across corporate networks, this flaw allows low-privilege actors to disrupt operational workflows. Recovery requires administrative shell access to terminate the container or server process manually.
The primary solution is to upgrade Open WebUI to version 0.11.1 or higher. This release integrates cycle-detection logic into the deletion backend. Self-hosted instances running on Docker can pull the latest image to apply the updates:
docker pull ghcr.io/open-webui/open-webui:main
docker stop open-webui-container
docker rm open-webui-container
docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:mainIf upgrading is not immediately possible, administrators can mitigate the risk by disabling public registration to limit exposure to trusted individuals. Additionally, configuring external reverse-proxy rate limiting on the /api/v1/chats/*/messages endpoint helps block automated exploitation attempts.
Automated tools can monitor server health to identify exploitation. Administrators should configure resource-monitoring rules to alert on sustained high CPU consumption accompanied by unhandled API request timeouts.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
open-webui open-webui | >= 0.10.0, < 0.11.1 | 0.11.1 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-835 |
| Attack Vector | Network (AV:N) |
| CVSS v3.1 Score | 6.5 |
| EPSS Score | Not available |
| Impact | High Availability Impact (Complete Denial of Service) |
| Exploit Status | Proof of Concept |
| KEV Status | Not Listed |
The program contains an iteration loop for which the exit condition is never satisfied, leading to infinite execution and resource exhaustion.
CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.
CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.
CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.
CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
CVE-2026-114154 is a high-severity Denial of Service (DoS) and uncontrolled resource consumption vulnerability in the Microsoft.AspNetCore.Server.HttpSys component of ASP.NET Core. When processing an HTTP request that simultaneously contains a chunked Transfer-Encoding header, a Content-Length header, and an explicit X-Content-Length header, the server throws an unhandled ArgumentException during header normalization. In certain versions, subsequent exception handling attempts to dereference a disposed native request context, aborting error response dispatch and leaking unmanaged HTTP.sys request structures.
A local elevation of privilege vulnerability exists in the Microsoft .NET Aspire CLI (`Aspire.Cli`) versions 13.5.4 prior to 13.6.5. When executing SDK management commands (`aspire sdk generate`, `aspire sdk dump`, and `aspire sdk export`), the CLI creates temporary project directories inside the shared operating system temporary folder (such as `/tmp` on Unix-like systems) without restricting directory permissions or disabling MSBuild automatic response file resolution. A local, low-privileged attacker on a multi-user system can place a crafted `Directory.Build.rsp` file in the shared temporary directory hierarchy. When a victim user executes an affected Aspire CLI command, MSBuild traverses upward, ingests the attacker-controlled response file, and executes arbitrary commands in the security context of the victim user.