Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
Lifecycle Timeline
3DescriptionGitHub Advisory
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 allCVSS 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
- Admin configures model access control, restricting
llama3:70bto the "ML Engineers" group. Regular user Alice is only authorized forllama3:8b. - Alice knows the restricted model name (model names are predictable -
llama3:70b,mistral:latest, etc.). - Alice calls the unprotected endpoints directly:
# Run completions on restricted model
curl -X POST /ollama/api/generate \
-H "Authorization: Bearer <alice_token>" \
-d '{"model": "llama3:70b", "prompt": "..."}'
# View restricted model details and system prompt
curl -X POST /ollama/api/show \
-H "Authorization: Bearer <alice_token>" \
-d '{"model": "llama3:70b"}'
# Generate embeddings with restricted model
curl -X POST /ollama/api/embed \
-H "Authorization: Bearer <alice_token>" \
-d '{"model": "llama3:70b", "input": "..."}'- 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/showexposes 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)
AnalysisAI
Open WebUI Ollama proxy endpoints bypass model access control checks, allowing authenticated users to access restricted models and expose sensitive configuration. Four endpoints (/api/generate, /api/embed, /api/embeddings, /api/show) fail to validate AccessGrants permissions before forwarding requests to the Ollama backend, despite the /api/chat endpoint implementing proper authorization checks. Attackers with any valid user account can consume GPU resources on restricted models and view sensitive details like system prompts by directly calling unprotected endpoints with known model names.
Technical ContextAI
Open WebUI provides a Python FastAPI-based proxy layer (backend/open_webui/routers/ollama.py) for Ollama model access. The framework implements role-based access control via the AccessGrants.has_access() function, which checks whether a user_id has 'read' permission for a specific model resource. While the /api/chat endpoint correctly invokes this check at lines 1101-1122, four sibling endpoints skip this validation entirely. All four vulnerable endpoints accept a model name parameter from the client and forward it to Ollama without authorization verification. The CWE-862 (Missing Authorization) classification reflects the absence of explicit access control enforcement in the proxy layer, creating a privilege escalation path where low-privilege users (PR:L) can interact with resources intended for higher-privilege groups.
RemediationAI
Upgrade Open WebUI to version 0.9.0 or later, which includes the necessary AccessGrants.has_access() validation in all four vulnerable endpoints. This is the primary and only vendor-supplied fix. For deployments unable to upgrade immediately, implement network-level access controls by restricting direct calls to /ollama/api/generate, /ollama/api/embed, /ollama/api/embeddings, and /ollama/api/show endpoints to only the trusted frontend application, blocking direct API consumer access. Configure your reverse proxy (nginx, Apache) or API gateway to deny POST requests to these paths from untrusted networks and log bypass attempts. Note: Network restrictions provide only partial protection since internal microservices may legitimately need these endpoints; a database-level audit log for model access should be enabled to detect unauthorized API calls. See https://github.com/open-webui/open-webui/security/advisories/GHSA-rcvp-6fgw-c7fh for the patched code and confirmation of fix.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing
Same weakness CWE-862 – Missing Authorization
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-30614
GHSA-rcvp-6fgw-c7fh