Skip to main content

Open WebUI CVE-2026-45672

| EUVDEUVD-2026-30638 HIGH
Incorrect Authorization (CWE-863)
2026-05-14 https://github.com/open-webui/open-webui GHSA-482j-2pq6-q5w4
8.8
CVSS 3.1 · Vendor: https://github.com/open-webui/open-webui
View

Attack ChainAIDerived

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

  1. Recon
    Obtain user credentials
  2. Delivery
    Authenticate to Open WebUI API
  3. Exploit
    POST malicious Python to /api/v1/utils/code/execute
  4. Install
    Bypass ENABLE_CODE_EXECUTION check
  5. C2
    Execute code in Jupyter container
  6. Execute
    Access internal Docker services via SSRF
  7. Impact
    Exfiltrate data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires Open WebUI deployed with Jupyter server integration enabled (CODE_EXECUTION_ENGINE configured as 'jupyter' with reachable Jupyter endpoint). Attacker must possess valid authentication credentials for any verified user account (PR:L) - not admin, just any authenticated user. The vulnerability is exploitable specifically when administrators have set ENABLE_CODE_EXECUTION=false believing code execution is disabled, though technically the bypass works regardless of the flag state. No user interaction required (UI:N). The Jupyter container must be network-accessible from the Open WebUI backend container in the Docker deployment. Exploitation is NOT possible in deployments without Jupyter integration, and not possible for unauthenticated users. The configuration bypass is the core condition: admins who never enabled Jupyter or who use the default (no CODE_EXECUTION_ENGINE) are not affected.

Impact

CVSS 8.8 (High) reflects network-accessible arbitrary code execution requiring only authenticated user credentials (PR:L), low attack complexity, and high impact across confidentiality, integrity, and availability within the Jupyter container. Real-world risk is elevated by three factors: first, the vulnerability creates a false sense of security where administrators believe code execution is disabled while it remains fully accessible to all authenticated users; second, the Jupyter container has Docker network access to internal services, enabling SSRC and lateral movement beyond the nominal container boundary; third, many Open WebUI deployments grant user accounts freely for LLM access without anticipating that authentication equals code execution capability. The vendor POC demonstrates complete exploitation (secret exfiltration via SSRF) with simple curl commands against default Docker deployments. However, real-world risk is moderated by the authentication requirement (PR:L) and deployment-specific factors: instances without Jupyter integration are not vulnerable, and the scope remains contained to the Jupyter container (S:U) absent additional container escape vulnerabilities. EPSS and KEV data are not available as this is a 2026 CVE. No evidence of widespread exploitation, but the vendor's detailed POC and Docker deployment prevalence suggest attackers could weaponize this rapidly once deployments are identified. Priority depends on deployment profile: critical for multi-tenant Open WebUI instances with Jupyter enabled where admins rely on ENABLE_CODE_EXECUTION=false for isolation, lower for single-user or Jupyter-free deployments.

Exploit ScenarioDerived

An attacker with any valid Open WebUI user account authenticates to the web interface and obtains a Bearer token. They verify the admin has set ENABLE_CODE_EXECUTION=false via GET /api/v1/configs/code_execution. Despite this configuration, they POST a JSON payload with malicious Python code to /api/v1/utils/code/execute. The endpoint forwards the code to the Jupyter container without checking the feature flag. The attacker's code executes with Jupyter container privileges, reads environment variables or mounted volumes, then uses Python's urllib or requests library to exfiltrate data to external servers or probe internal Docker network services (databases, APIs) via SSRF. The vendor POC demonstrates this exact attack path with verified output including secret exfiltration.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 14, 2026

Open WebUI versions through 0.8.11 allow authenticated users to execute arbitrary Python code in the Jupyter container by bypassing the ENABLE_CODE_EXECUTION=false configuration flag. The /api/v1/utils/code/execute endpoint fails to enforce the admin-configured feature gate (CWE-863: Incorrect Authorization), enabling any verified user to run code even when administrators believe execution is disabled. The vulnerability is confirmed by vendor POC (verified 2026-03-25) demonstrating successful code execution, file access, and SSRF to internal Docker services despite explicit admin configuration disabling the feature. Vendor-released patch available in v0.8.12 (commit 6d736d3c5) enforces the configuration check before dispatching code to Jupyter.

RemediationAI

Upgrade to Open WebUI version 0.8.12 or later, which enforces the ENABLE_CODE_EXECUTION configuration check before dispatching code to Jupyter (vendor patch commit 6d736d3c598dbe49488675ed42845e00b62dfcba, released 2026-03-25). The fix adds request.app.state.config.ENABLE_CODE_EXECUTION validation in backend/open_webui/routers/utils.py, returning HTTP 403 with 'Code execution is disabled' when the flag is false. Release notes and patched version available at https://github.com/open-webui/open-webui/releases/tag/v0.8.12. For environments unable to upgrade immediately, disable Jupyter integration entirely by removing Jupyter container configuration and restarting Open WebUI - this eliminates the attack surface but also removes legitimate code execution features for all users. Network segmentation to isolate the Jupyter container from sensitive internal services reduces SSRF impact but does not prevent code execution within the container itself (file access, process spawning remain possible). Verify patch application by confirming the /api/v1/utils/code/execute endpoint returns 403 when ENABLE_CODE_EXECUTION=false rather than executing code.

Affected VersionsENISA

open-webui < 0.8.12

Affected Packages

pypi open-webui fix: 0.8.12

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 Python-based web interface for large language models with optional Jupyter integration for code execution. The vulnerability stems from CWE-863 (Incorrect Authorization) in the backend Flask/FastAPI application where the /api/v1/utils/code/execute endpoint in backend/open_webui/routers/utils.py forwards user-supplied Python code to the Jupyter kernel without validating the request.app.state.config.ENABLE_CODE_EXECUTION flag. The architecture uses Docker containers with Open WebUI frontend/backend in one container and Jupyter server in another with shared Docker network access. The missing authorization check creates a gap between the admin UI configuration state (which correctly displays ENABLE_CODE_EXECUTION: false) and the actual API enforcement layer, allowing the configuration to be silently bypassed. The CVSS vector AV:N/AC:L/PR:L indicates network-accessible exploitation requiring only low-privilege authentication (any verified user account), with S:U (unchanged scope) meaning the code executes within the Jupyter container boundary, though with network access to other internal services.

Know when Python 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

Vendor (https://github.com/open-webui/open-webui) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (https://github.com/open-webui/open-webui) · only source for this CVE.

CVSS VectorVendor: https://github.com/open-webui/open-webui

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Summary

The /api/v1/utils/code/execute endpoint executes arbitrary Python code via Jupyter for any verified user, even when the admin has set ENABLE_CODE_EXECUTION=false. The feature gate is not enforced on the API endpoint - the configuration says "disabled" but code still executes.

Details

The admin configuration correctly shows ENABLE_CODE_EXECUTION: false. However, the code execution endpoint does not check this flag before forwarding Python code to the Jupyter server. Any authenticated user can execute arbitrary code in the Jupyter container.

PoC

Verified against Open WebUI v0.8.11 (latest) Docker on 2026-03-25.

Setup: Jupyter server connected, ENABLE_CODE_EXECUTION=false confirmed in admin config.

bash
# Step 1: Verify code execution is disabled
curl -s http://target:8080/api/v1/configs/code_execution \
  -H "Authorization: Bearer $TOKEN"
# Returns: {"ENABLE_CODE_EXECUTION": false, ...}
# Step 2: Execute code anyway - gate bypassed
curl -s -X POST http://target:8080/api/v1/utils/code/execute \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"code":"import os; print(os.popen(\"id\").read())"}'

Verified output:

Config: {"ENABLE_CODE_EXECUTION":false,"CODE_EXECUTION_ENGINE":"jupyter",...}

execute_status=200
execute_body={"stdout":"OPEN-WEBUI-SSRF-SECRET","stderr":"","result":""}

The PoC read the internal secret service content via Jupyter - despite ENABLE_CODE_EXECUTION=false. The Jupyter container has network access to internal services, making this both a code execution bypass and an SSRF vector.

Impact

Any authenticated user can execute arbitrary Python code in the Jupyter container, even when the admin has explicitly disabled code execution:

  • Arbitrary code execution in the Jupyter container (read files, spawn processes)
  • Network access to all internal Docker services from the Jupyter container
  • Data exfiltration from internal services
  • The admin's security configuration (ENABLE_CODE_EXECUTION=false) is silently ineffective
  • Users who are told "code execution is disabled" have a false sense of security

Resolution

Fixed in commit 6d736d3c5, first released in v0.8.12. The /api/v1/utils/code/execute handler in backend/open_webui/routers/utils.py now checks request.app.state.config.ENABLE_CODE_EXECUTION before dispatching to the Jupyter engine and returns 403 with FEATURE_DISABLED('Code execution') when the admin has disabled the flag. The retrieval-side code path was gated in the same commit. Users on >= 0.8.12 are not affected.

Executive ViewAI

Why It Matters

Open WebUI versions through 0.8.12 contain an authentication bypass in the code execution endpoint that allows any authenticated user to run arbitrary Python code in the Jupyter container, bypassing administrator-configured security controls designed to disable this feature. This directly undermines access control policies and enables lateral movement to internal Docker services, affecting any organization relying on Open WebUI with user access controls.

Business Impact: High
Compensating Controls

Apply vendor patch (Open WebUI v0.8.12 or later). Interim mitigation if patch cannot be applied immediately: disable network access to /api/v1/utils/code/execute via API gateway or firewall rules; restrict Open WebUI access to trusted networks only; disable Jupyter container integration if code execution is not a required feature.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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