Open WebUI: Missing `workspace.tools` Authorization Check on Tool Update Endpoint Allows Privilege Escalation to Code Execution
CVE-2026-45395 · GHSA-p4fx-23fq-jfg6 · published 2026-05-14 · updated 2026-05-15
- Severity
- High
- CVSS score
- 7.2
- Chance of exploitation (EPSS)
- 0.44%
- Fixed in
- 0.9.5
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
An attacker with a regular user account and a write access grant on any single tool can: Execute arbitrary server-side code as root (PID 1 in the default Docker deployment) Read sensitive environment variables (WEBUI_SECRET_KEY, OPENAI_API_KEY, etc.) Read/write the application database (all users' chats, files, API keys) Read arbitrary files from the container filesystem Make outbound network requests to internal services The attacker never needs workspace.tools permission. The administrator's explicit decision to deny this user code execution capability is bypassed.
Upgrade open-webui to 0.9.5 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
File: backend/open_webui/routers/tools.py, lines 451-485 The write access grant is a collaboration primitive used across the application (knowledge bases, prompts, models, tools) for content editing. On every other resource type, a write grant allows editing metadata and content. On tools specifically, because the update endpoint triggers exec(), a write grant silently escalates to code execution but only because the workspace.tools check is missing. If the check were present (as it is on create), the write grant would not confer execution privilege. …
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| open-webui | npm | < 0.9.5 | 0.9.5 |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalTodoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server@doist/todoist-mcp
- CriticalLangflow: Unauthenticated Flow Execution via Webhook Authentication Bypasslangflow
- HighOpen WebUI has Stored XSS in Banner Component via Improper Sanitization Orderopen-webui
- Highopen-webui Vulnerable to Stored XSS via Model Descriptionopen-webui, open-webui
- HighOpen WebUI Vulnerable to Stored DOM XSS via Note 'Download PDF'open-webui
- HighOpen WebUI Affected by an External Model Server (Direct Connections) Code Injection via SSE Eventsopen-webui, open-webui
- HighOpen WebUI vulnerable to Stored DOM XSS via prompts when 'Insert Prompt as Rich Text' is enabled resulting in ATO/RCEopen-webui, open-webui
- HighOpen WebUI Unauthenticated Multipart Boundary Denial of Service (DoS) Vulnerabilityopen-webui, open-webui
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.