NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2026-44563: Open WebUI's Ollama Model Access Control Bypass via /api/generate, /api/embed, /api/embeddings, and /api/show

mediumCVSS 3.1 5.4GHSA-rcvp-6fgw-c7fh

Open WebUI up to 0.8.12 does not enforce model access control on four Ollama proxy endpoints: /api/generate, /api/embed, /api/embeddings and /api/show. Any logged-in user who knows a restricted model's name can run it and read its system prompt and settings. Only /api/chat checks access. Fixed in 0.9.0.

Published May 8, 2026 · Updated May 15, 2026 · Analysis Oct 28, 2026

What an attacker can do

In backend/open_webui/routers/ollama.py, generate_completion, embed, embeddings and show_model_info accept any model name from a user and forward it to the Ollama backend. They need only get_verified_user, any non-pending account, and confirm the model exists in the full unfiltered list. They never call AccessGrants.has_access(). The /api/chat route does, and returns 403 for users who lack a grant.

The attacker is a regular user such as one limited to llama3:8b who guesses that a restricted llama3:70b exists. Model names are predictable. Direct calls to /ollama/api/generate or /ollama/api/embed with a bearer token run on the restricted model. /ollama/api/show returns the model's configuration, which includes system prompts, parameters, templates and license information.

Two effects follow. Restricted models can be used without permission, so a user can consume GPU capacity and cost on large models in a shared deployment (a low availability impact). And a restricted model's system prompt and settings leak. The model access control looks effective in the chat interface, so admins get a false sense of safety. It applies where Ollama is a configured backend and BYPASS_MODEL_ACCESS_CONTROL is not true.

Who is affected

Affected: open-webui <= 0.8.12 (pip). The report was made against main at commit 6fdd19bf1 and says likely all versions with Ollama model access control. You are exposed if Ollama is a backend, you restrict some models to groups, and BYPASS_MODEL_ACCESS_CONTROL is not set to true.

Check the version:

pip show open-webui

For Docker, check the image tag.

open-webui

Ecosystem
PyPI
Affected
<= 0.8.12
Fixed in
0.9.0
Check
pip show open-webui

How to fix it

Upgrade to open-webui 0.9.0 or later:

pip install --upgrade open-webui

The advisory lists no workaround. The four endpoints need the same grant check that /api/chat already has. Until you upgrade, treat restricted models' system prompts as visible to all users, and consider blocking the /ollama/api/generate, /embed, /embeddings and /show paths at a reverse proxy for non-admin users, if your clients do not need them.

How to tell if you were hit

Search the access log for POST /ollama/api/generate, /ollama/api/embed, /ollama/api/embeddings and /ollama/api/show requests, and compare the model in each body with the user's grants. A user calling a model they have no grant for is the signal.

On the Ollama side, look at which models loaded and ran, and at GPU use for large models at times when authorized users were not active. System prompts in restricted models should be considered exposed if /api/show calls came from unauthorized accounts.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Ollama Model Access Control Bypass via /api/generate, /api/embed, /api/embeddings, and /api/show

Affected Component

Ollama proxy endpoints missing model access control:

  • backend/open_webui/routers/ollama.py (lines 955-995, generate_completion)
  • backend/open_webui/routers/ollama.py (lines 835-881, embed)
  • backend/open_webui/routers/ollama.py (lines 891-937, embeddings)
  • backend/open_webui/routers/ollama.py (lines 791-820, show_model_info)

Affected Versions

Current main branch (commit 6fdd19bf1) and likely all versions with Ollama model access control support.

Description

Four Ollama proxy endpoints accept any model name from the user and forward the request to the Ollama backend without checking whether the user is authorized to access that model. These endpoints only require get_verified_user (any authenticated non-pending user) and validate that the model exists in the full unfiltered model list, but never check AccessGrants.has_access().

This is in direct contrast with the /ollama/api/chat endpoint (line 1101-1122) which correctly validates model access grants and returns 403 for unauthorized users:

# /api/chat (line 1101-1122) — CORRECTLY checks access
if not bypass_filter and user.role == 'user':
    user_group_ids = {group.id for group in Groups.get_groups_by_member_id(user.id)}
    if not (
        user.id == model_info.user_id
        or AccessGrants.has_access(
            user_id=user.id, resource_type='model',
            resource_id=model_info.id, permission='read',
            user_group_ids=user_group_ids,
        )
    ):
        raise HTTPException(status_code=403, detail='Model not found')

# /api/generate (line 955-995) — NO access check at all
# /api/embed (line 835-881) — NO access check at all
# /api/embeddings (line 891-937) — NO access check at all
# /api/show (line 791-820) — NO access check at all

CVSS 3.1 Breakdown

| Metric | Value | Rationale |
| Attack Vector | Network (N) | Exploited remotely via API calls |
| Attack Complexity | Low (L) | Single API call with a known model name |
| Privileges Required | Low (L) | Requires any authenticated user account |
| User Interaction | None (N) | No victim interaction required |
| Scope | Unchanged (U) | Impact within the Ollama model access boundary |
| Confidentiality | Low (L) | `/api/show` exposes restricted model details including system prompts and parameters |
| Integrity | None (N) | No data modification |
| Availability | Low (L) | Unauthorized consumption of GPU/compute resources on restricted models |

Attack Scenario

  1. Admin configures model access control, restricting llama3:70b to the "ML Engineers" group. Regular user Alice is only authorized for llama3:8b.
  2. Alice knows the restricted model name (model names are predictable — llama3:70b, mistral:latest, etc.).
  3. Alice calls the unprotected endpoints directly: ```bash # Run completions on restricted model curl -X POST /ollama/api/generate \ -H "Authorization: Bearer " \ -d '{"model": "llama3:70b", "prompt": "..."}'

View restricted model details and system prompt

curl -X POST /ollama/api/show \ -H "Authorization: Bearer " \ -d '{"model": "llama3:70b"}'

Generate embeddings with restricted model

curl -X POST /ollama/api/embed \ -H "Authorization: Bearer " \ -d '{"model": "llama3:70b", "input": "..."}'

4. All requests succeed and are proxied to Ollama without any access control check.

## Impact

- Model access control is silently ineffective for four out of five Ollama proxy endpoints
- Unauthorized users can consume GPU/compute resources on restricted models (cost and capacity impact in multi-user deployments)
- `/api/show` exposes restricted model configurations including system prompts, parameters, templates, and license information
- Admins have a false sense of security — access restrictions appear to work via the main chat interface but are trivially bypassed via direct API calls

## Preconditions

- Ollama must be configured as a backend
- Admin must have configured model access control (not using `BYPASS_MODEL_ACCESS_CONTROL=true`)
- Attacker must know the restricted model name (model names follow predictable conventions)

Credited to Classic298.

Questions

Which endpoints are affected?

/ollama/api/generate, /ollama/api/embed, /ollama/api/embeddings and /ollama/api/show. The /api/chat endpoint checks model access correctly.

What can an unauthorized user learn from /api/show?

Restricted model details: system prompts, parameters, templates and license information.

Am I affected if I use only OpenAI-style backends?

The advisory states Ollama must be configured as a backend. A related flaw affects the /responses endpoint of the OpenAI router, CVE-2026-44556.

Is it exploited in the wild?

No source reports exploitation. It is not in CISA's KEV catalog, and its EPSS score is low (0.0024).

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Open WebUI vulnerabilities

All Open WebUI entries