CVE-2026-45672

Open WebUI: Jupyter code execution works despite `ENABLE_CODE_EXECUTION=false` — feature gate bypassed

Published May 15, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.8.12, 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. This vulnerability is fixed in 0.8.12.

Analysis

AI-generated

Technical impact

The /api/v1/utils/code/execute endpoint of Open WebUI runs arbitrary Python code through Jupyter for any verified user even when the administrator has disabled the feature by setting ENABLE_CODE_EXECUTION to false. This flaw allows attackers to execute malicious code on the host, potentially gaining full control of the system. The vulnerability is an example of a restricted function bypass (CWE-863).

Affected Systems

Open WebUI built by open-webui, specifically releases prior to version 0.8.12. Users of any earlier release that have granted verified user status are susceptible, regardless of the ENABLE_CODE_EXECUTION setting.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity, and although a current EPSS score is not available, the risk remains significant for any verified user with API access. The flaw is not listed in CISA’s KEV catalog, but the attack vector is an authenticated API request by a legitimate user. Once the administrator attempts to disable code execution, the bypass remains active, giving attackers an unmitigated path to compromise the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Open WebUI to version 0.8.12 or later where the endpoint respects the ENABLE_CODE_EXECUTION flag
  • If immediate upgrade is not possible, block the /api/v1/utils/code/execute endpoint at the network layer using firewall or reverse proxy rules
  • Limit verified user status by revoking it from non‑essential accounts or restricting to minimal users

Generated by OpenCVE AI on May 15, 2026 at 22:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-482j-2pq6-q5w4 Open WebUI: Jupyter code execution works despite `ENABLE_CODE_EXECUTION=false` — feature gate bypassed
History
Type Values Removed Values Added
First Time appeared Openwebui
Openwebui open Webui
CPEs cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*:*
Vendors & Products Openwebui
Openwebui open Webui
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui
Type Values Removed Values Added
Description Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.8.12, 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. This vulnerability is fixed in 0.8.12.
Title Open WebUI: Jupyter code execution works despite `ENABLE_CODE_EXECUTION=false` — feature gate bypassed
Weaknesses CWE-863
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 19, 2026, 3:55 AM
Reserved
May 12, 2026, 9:59 PM
Status
Analyzed
Published
May 15, 2026, 9:16 PM
Modified
Nov 11, 2026, 8:10 PM