Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109572 Overview
CVE-2026-109572 is a privilege escalation vulnerability in Open WebUI versions 0.8.6 through 0.11.3. The flaw exists in the terminal proxy component, which forwards requests to the Terminals administrator API with a shared key attached. Authenticated low-privileged users can abuse the proxy to reach administrator-only endpoints under /api/v1/terminals/{server_id}/{path}. Exploitation allows an attacker to list and stop other users' terminals, modify terminal policies, and inject environment variables into terminals belonging to other users. The weakness is classified as CWE-862: Missing Authorization.
Critical Impact
Any authenticated Open WebUI user can tamper with other users' terminal sessions and inject environment variables, enabling cross-tenant compromise within a shared instance.
Affected Products
- Open WebUI version 0.8.6 and later
- Open WebUI versions prior to 0.11.4
- Deployments exposing the terminal proxy route /api/v1/terminals/{server_id}/{path}
Discovery Timeline
- 2026-10-12 - CVE-2026-109572 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-109572
Vulnerability Analysis
Open WebUI exposes a terminal proxy that forwards HTTP requests to an upstream terminal service. The proxy automatically attaches a shared administrator key to every forwarded request. The proxy did not restrict which upstream paths authenticated users could reach, so standard users could target administrator-only routes by crafting paths under /api/v1/terminals/{server_id}/{path}. Because the shared key authenticated the forwarded request as an administrator, the upstream API accepted privileged operations issued by any logged-in user.
Root Cause
The root cause is a missing authorization check in backend/open_webui/routers/terminals.py. The proxy trusted the authenticated session for access to the proxy itself, but did not validate that the requested upstream path was permitted for the caller's role. Administrative paths such as api/v1/policies, api/v1/status, and api/v1/terminals were reachable through the proxy with the shared admin key, satisfying the conditions for [CWE-862].
Attack Vector
An authenticated attacker sends an HTTP request to the terminal proxy endpoint and specifies a path targeting an administrator API. The proxy forwards the request to the upstream service with the shared key attached. The upstream service accepts the request as privileged and performs actions such as listing terminals, stopping sessions, or modifying terminal policy — including injecting environment variables that execute in another user's terminal context.
)
from starlette.background import BackgroundTask
from starlette.requests import ClientDisconnect
+from yarl import URL
log = logging.getLogger(__name__)
router = APIRouter()
STREAMING_CONTENT_TYPES = ('application/octet-stream', 'image/', 'application/pdf')
+ADMIN_API_PATHS = ('api/v1/policies', 'api/v1/status', 'api/v1/terminals')
# Drop the upstream's server and date: uvicorn adds its own and forwarding both duplicates them.
STRIPPED_RESPONSE_HEADERS = frozenset(
('transfer-encoding', 'connection', 'content-encoding', 'content-length', 'server', 'date')
Source: open-webui patch commit 51bb8cb. The patch introduces an explicit ADMIN_API_PATHS allowlist used to block non-administrator access to privileged upstream routes.
Detection Methods for CVE-2026-109572
Indicators of Compromise
- Requests from non-administrator sessions to /api/v1/terminals/{server_id}/api/v1/policies or /api/v1/terminals/{server_id}/api/v1/status.
- Unexpected terminal stop or list operations in Open WebUI logs attributed to non-admin users.
- Environment variables appearing in user terminals that were not set by the terminal owner or an administrator.
Detection Strategies
- Parse Open WebUI access logs for proxy requests whose forwarded path begins with api/v1/policies, api/v1/status, or api/v1/terminals and correlate with the caller's role.
- Alert on any user other than an administrator issuing POST, PUT, PATCH, or DELETE requests through the terminal proxy to administrator routes.
- Compare terminal policy changes against an approved administrator identity list and flag deviations.
Monitoring Recommendations
- Enable verbose logging on backend/open_webui/routers/terminals.py and ship logs to a centralized store for retention and query.
- Monitor process creation and environment variable changes inside containers that host Open WebUI terminal sessions.
- Track version strings reported by Open WebUI instances to confirm all deployments run 0.11.4 or later.
How to Mitigate CVE-2026-109572
Immediate Actions Required
- Upgrade Open WebUI to version 0.11.4 or later on all instances.
- Review audit logs for proxy requests to administrator paths issued by non-administrator accounts since 0.8.6 was deployed.
- Rotate any secrets or credentials that may have been exposed through injected environment variables in shared terminals.
Patch Information
The fix is published in Open WebUI 0.11.4. The patch adds an ADMIN_API_PATHS allowlist in backend/open_webui/routers/terminals.py and blocks non-administrator users from reaching those upstream routes through the proxy. See the Open WebUI GitHub Security Advisory GHSA-q46m-r89w-j74p, the patch commit 51bb8cb, and the VulnCheck advisory.
Workarounds
- Restrict access to Open WebUI to trusted administrators until the upgrade is applied.
- Block external access to the terminal proxy route /api/v1/terminals/ at a reverse proxy or Web Application Firewall for non-administrator sessions.
- Disable the terminal feature in deployments that do not require it.
# Example reverse-proxy block for the terminal proxy path (nginx)
location ~ ^/api/v1/terminals/[^/]+/(api/v1/(policies|status|terminals)) {
return 403;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

