MEDIUM 6.3

CVE-2026-54021: Open WebUI Authentication Bypass via Ollama Backend Routing

Open WebUI, a self-hosted AI platform designed to run offline, contains a privilege escalation flaw in versions before 0.9.6. Authenticated users can manipulate a path parameter to bypass backend access controls and route requests to Ollama servers they should not be able to reach—including internal systems, higher-privilege backends, or administratively disabled instances. The vulnerability requires a valid user account but no additional authentication or interaction, making it a straightforward post-authentication attack.

Source data · NVD / CISA · public domain

CVSS
3.1 · 6.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Weaknesses (CWE)
CWE-863
Affected products
1 configuration(s)
Published / Modified
2026-06-23 / 2026-06-26

NVD description (verbatim)

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6, several direct, index-addressed Ollama proxy routes accept a caller-supplied url_idx path parameter and use it as a raw index into the admin-configured OLLAMA_BASE_URLS list. Access control on these routes validates only whether the user may use the requested model, never which backend the request is routed to. Any authenticated user can append an arbitrary url_idx to force their request onto an Ollama backend they were never authorized to reach, including internal, higher-privilege, or explicitly admin-disabled backends. This vulnerability is fixed in 0.9.6.

1 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in Ollama proxy routes within Open WebUI that accept a url_idx path parameter. This parameter is used as a direct index into the admin-configured OLLAMA_BASE_URLS list without proper validation. While access control checks verify whether a user is authorized to use a specific model, they do not enforce which backend Ollama instance that request should be routed to. An authenticated attacker can craft requests with an arbitrary url_idx value to force routing to unintended backends, bypassing the intended segmentation between different Ollama instances. The flaw is classified under CWE-863 (Incorrect Authorization).

Business impact

This vulnerability enables authenticated users to access AI models and capabilities beyond their intended scope, potentially exposing sensitive use cases, proprietary model configurations, or internal development instances. In multi-tenant or departmentally segmented deployments, users could access backends reserved for administrators or other business units. The ability to reach disabled or experimental backends also increases the risk of triggering unvetted model behavior or accessing systems undergoing security review or remediation.

Affected systems

Open WebUI versions prior to 0.9.6 are affected. The vulnerability only impacts instances that (1) use Ollama as a backend, (2) configure multiple OLLAMA_BASE_URLS entries with intended access segregation, and (3) have multiple authenticated users. Single-user deployments or those with only one configured Ollama backend are not practically exploitable, though the code flaw still exists.

Exploitability

Exploitability is straightforward for any authenticated user. The attack requires only HTTP requests with a modified url_idx parameter; no special tools, credentials beyond a basic user account, or user interaction are needed. The low complexity and authenticated-only requirement reflect the CVSS 3.1 score of 6.3 (Medium severity). External attack surface is present for any Open WebUI instance accessible over the network, though an attacker must first obtain valid login credentials.

Remediation

Upgrade Open WebUI to version 0.9.6 or later. This version implements proper access control enforcement that validates both the model authorization and the target backend. Organizations should verify the upgrade path with the Open WebUI project documentation and confirm that no configuration changes are required post-upgrade. For deployments unable to patch immediately, consider restricting network access to Open WebUI to trusted networks or requiring additional authentication layers (e.g., VPN, reverse proxy authentication).

Patch guidance

The fix is available in Open WebUI version 0.9.6 and later releases. Review the project's official release notes and changelog to confirm the security fix is included in the version you deploy. Test the upgrade in a non-production environment first, particularly if you rely on multi-backend routing for segregation. Verify that after upgrading, users can still access only the backends and models they are authorized for, and that disabled or restricted backends remain inaccessible.

Detection guidance

Monitor Open WebUI logs for unusual or repeated requests with varying url_idx parameter values, particularly to backends that should be off-limits to standard users. Authentication logs showing successful access to disabled backends or unexpected backend routing may indicate exploitation. If using a reverse proxy or API gateway in front of Open WebUI, inspect proxy logs for requests with suspicious path parameters. Consider enabling verbose logging in Open WebUI to capture backend routing decisions and compare them against user entitlements.

Why prioritize this

Although the CVSS score is Medium (6.3), this vulnerability should be prioritized for patching in multi-user deployments where backend segmentation is relied upon for compliance, data isolation, or role-based access control. The ease of exploitation (no special tools, only authenticated access) and the likelihood of rapid discovery (the flaw is direct and parameter-based) warrant swift remediation. Organizations using Open WebUI in production should prioritize this fix within standard security patch cycles.

Risk score, explained

The CVSS 3.1 score of 6.3 reflects a network-accessible vulnerability requiring low privilege (authenticated user) and low complexity, with low impact to confidentiality, integrity, and availability. The score does not account for organizational context—environments where backend segregation is critical for compliance or data protection should treat this with higher urgency than the base score alone suggests. The vulnerability is not yet tracked in the CISA Known Exploited Vulnerabilities catalog, but the simplicity of the attack makes it likely to be discovered and exploited if deployments lag on patching.

Frequently asked questions

Do I need multiple Ollama backends for this vulnerability to affect me?

Yes. Single-backend deployments are not practically exploitable because there is no alternative backend to route to. However, the code flaw still exists in unpatched versions. Multi-user setups with multiple backends—whether for load balancing, feature isolation, or access control—face direct risk.

Can an attacker without a user account exploit this?

No. The vulnerability requires a valid authenticated user account. An attacker must first obtain login credentials through phishing, credential stuffing, or other means. Once authenticated, they can then bypass backend access controls using the url_idx parameter.

What is url_idx and why is it exposed to user input?

url_idx is an index pointer into the list of Ollama backend URLs configured by the administrator. In unpatched versions, it is derived directly from the HTTP request path without validation, allowing any authenticated user to specify which backend receives their request. In version 0.9.6 and later, access control logic validates the intended backend against the user's entitlements.

Is this vulnerability actively exploited in the wild?

As of the publication date, this vulnerability is not listed in the CISA KEV catalog, meaning there is no confirmed public exploitation. However, the straightforward nature of the attack (parameter manipulation in HTTP requests) makes it likely to be discovered and weaponized quickly if deployments remain unpatched.

This analysis is based on the CVE record and vendor information available as of the publication date. Security landscapes evolve; consult the official Open WebUI project repository, security advisories, and your vendor contacts for the latest patch status and deployment guidance. This page is for informational purposes and does not constitute legal, compliance, or professional security advice. Organizations should assess this vulnerability within the context of their own risk tolerance, regulatory obligations, and threat model. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).