Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious website with CORS payload
-
DeliveryLure authenticated admin to visit
-
ExploitBrowser sends credentialed request to /api/v1/functions
-
ExecutionRegister attacker Python function
-
PersistExecute arbitrary code as root in container
-
ImpactFull instance/container compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
|
| Exploitation Conditions | Exploitation requires all of: (1) the target Open WebUI instance running a permissive CORS policy with allow_origins=* (the insecure, non-default-secure configuration named in the description); (2) a user with admin privileges - needed because the /api/v1/functions code-registration endpoint is admin-restricted - being actively authenticated with a valid session; and (3) that admin being social-engineered into visiting an attacker-controlled website while logged in (UI:P / user interaction). Limiting factors: the attacker never authenticates directly (they ride the admin's session), so a hardened CORS allowlist, requiring admins to log out, or isolating the admin UI from untrusted browsing all break the chain. The CVSS AC:H and AT:P reflect that the specific configuration and admin-session timing are prerequisites the attacker cannot guarantee, so this is not exploitable against a default-secure or origin-restricted deployment. |
| Impact | Signals are mixed. The vendor-supplied CVSS 4.0 base score is 9.0 (critical) with network vector, but critically AC:H and AT:P (attack requirements present) plus UI:P - meaning exploitation is NOT trivial: it depends on a non-default insecure CORS configuration (allow_origins=*), requires an admin to visit an attacker page while logged in, and depends on browser/session conditions the attacker cannot fully control. So while impact is total (VC/VI/VA:H and subsequent-system SC/SI/SA:H reflecting root-in-container compromise), the exploitation path is conditional rather than spray-and-pray. No EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be quantified. It is not on CISA KEV and no POC is referenced, indicating no confirmed active or widespread exploitation. Net: a high-severity, high-impact issue for instances running the insecure CORS setting, but real-world risk is gated by that configuration and by successful social-engineering of an admin - treat as high priority for exposed/misconfigured deployments, lower for hardened ones. |
| Exploit ScenarioDerived | An attacker crafts a malicious web page containing JavaScript that sends a credentialed cross-origin request to a target Open WebUI server's /api/v1/functions endpoint, registering a function with attacker-controlled Python. They lure a logged-in Open WebUI admin (via phishing link) to the page; because the server permits any origin with credentials, the victim's browser silently submits the request under the admin session, and the malicious code executes on the instance - as root inside the default Docker container. No public POC is referenced, and the high attack complexity means the admin must be authenticated and interact with the attacker page. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
Remote code execution in Open WebUI (self-hosted LLM interface) before the fixed 0.3.33 release allows attackers to hijack an authenticated admin session through a CORS misconfiguration. When an instance is deployed with allow_origins=* and an authenticated admin visits an attacker-controlled website, the malicious page can issue authenticated cross-origin requests to the /api/v1/functions endpoint and register attacker-supplied Python code, achieving code execution - and because the container runs as root by default, full container compromise. There is no public exploit identified at time of analysis and it is not on CISA KEV, but the flaw is documented in a GitHub Security Lab advisory (GHSL-2024-174/175) and reported by VulnCheck.
RemediationAI
Vendor-released patch: upgrade to Open WebUI 0.3.33 or later, which corrects the CORS and session validation handling (see the GitHub Security Advisory GHSA-6xcp-7mpr-m7wm). Until patched, restrict cross-origin exposure by not running with allow_origins=* - set an explicit allowlist of trusted origins via the CORS_ALLOW_ORIGIN configuration so arbitrary attacker sites cannot make credentialed requests; the trade-off is that legitimate additional front-end origins must be enumerated. Additionally, reduce blast radius by not running the container as root (drop privileges / use a non-root user), which limits the 'complete container compromise' outcome even if the CORS request succeeds. Encourage admins to log out of Open WebUI when not in use and avoid browsing untrusted sites in the same session, and place the admin interface behind a VPN or network ACL so only trusted networks can reach it. Reference: https://www.vulncheck.com/advisories/open-webui-remote-code-execution-via-cors-misconfiguration-and-session-validation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Open WebUI is a popular self-hosted web front-end for running local and remote large language models. The root cause is CWE-613 (Insufficient Session Expiration) combined with a CORS misconfiguration: multiple FastAPI routers (backend/apps/webui/main.py, audio, images, rag and others) were configured with a permissive Access-Control-Allow-Origin policy (allow_origins=* together with credentialed requests). This lets any origin make authenticated cross-site requests using the victim's existing session. The /api/v1/functions endpoint, accessible to admin accounts, permits registering 'functions' that contain executable Python, so an attacker who can drive an admin's browser into calling that endpoint gains arbitrary code execution. The single affected CPE is cpe:2.3:a:open-webui:open-webui:*:*:*:*:*:*:*:*.
Know when Open Webui gets its next vulnerability
- 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:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Network-delivered but AC:H because it needs the allow_origins=* misconfig and an admin session; PR:N as the attacker is unauthenticated, UI:R for the admin visit, S:C and C/I/A:H for root code execution and container compromise.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
open-webui before 0.3.14 contains a cross-origin resource sharing misconfiguration allowing arbitrary origins with allow_origins=* and authenticated requests to the /api/v1/functions endpoint. Attackers can execute arbitrary code on the openwebui instance by crafting malicious cross-site requests from attacker-controlled websites when an admin user visits them.
Executive ViewAI
Open WebUI versions before 0.3.33, a self-hosted LLM interface widely deployed in research and enterprise settings, contains a critical remote code execution vulnerability (CVE-2026-56400, CVSS 9.0) that exploits CORS misconfiguration to execute arbitrary Python code in the container running as root. Organizations with internet-exposed Open WebUI deployments face immediate risk of full system compromise, including data exfiltration and potential lateral movement to internal systems. No public exploit code has been identified at time of analysis.
Vendor-released patch: Open WebUI 0.3.33. Interim mitigations: restrict allow_origins from wildcard (*) to specific trusted domains; isolate affected instances to internal networks without public internet access; require administrator access only through VPN or bastion hosts; implement browser restrictions preventing simultaneous authenticated sessions and untrusted website access; monitor /api/v1/functions endpoint for unauthorized code registration attempts.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Open Webui
View allAn XSS vulnerability exists in open-webui/open-webui versions <= 0.3.8, specifically in the function that constructs the
A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui
Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traver
Stored cross-site scripting in Open WebUI's terminal port preview feature allows an authenticated attacker sharing a ter
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.6.37, a St
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.6.37, a Se
In version v0.3.10 of open-webui/open-webui, the `api/v1/utils/pdf` endpoint lacks authentication mechanisms, allowing u
OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re
DNS rebinding SSRF in Open WebUI versions 0.9.6 through 0.11.0 allows authenticated users who control authoritative DNS
Denial of service in Open WebUI versions 0.9.0-0.11.0 allows unauthenticated remote attackers to stall the application s
In version 0.3.8 of open-webui, an endpoint for converting markdown to HTML is exposed without authentication. Rated hig
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. [CVSS 7.3 HIGH]
EUVD-2026-44629
GHSA-m5hr-9f92-qvh9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB