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.
Published: 2026-05-15
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Fri, 15 May 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui

Fri, 15 May 2026 21:00:00 +0000

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'}


Subscriptions

Open-webui Open-webui
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-15T20:55:00.802Z

Reserved: 2026-05-12T21:59:25.666Z

Link: CVE-2026-45672

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-15T21:16:38.510

Modified: 2026-05-15T21:16:38.510

Link: CVE-2026-45672

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-15T23:00:14Z

Weaknesses