Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with valid user token
-
DeliveryDiscover restricted model names (enumeration or reconnaissance)
-
ExploitPOST to /ollama/api/generate with restricted model name
-
ExecutionProxy forwards without AccessGrants check
-
PersistObtain inference results or resource consumption
-
ImpactRepeat with /api/show to extract system prompts and configuration
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) Ollama backend configured in Open WebUI, (2) model access control intentionally configured by admin (not disabled via BYPASS_MODEL_ACCESS_CONTROL=true), (3) attacker with any valid authenticated user account (PR:L, not admin-level), (4) knowledge of restricted model names (which follow predictable conventions like llama3:70b, mistral:latest). No special client configuration, user interaction, or non-default setup is needed beyond a standard Open WebUI deployment with Ollama backend and access groups. The vulnerability does NOT affect deployments where BYPASS_MODEL_ACCESS_CONTROL is set to true, where access control is disabled entirely, or where no Ollama backend is configured. |
| Impact | CVSS 5.4 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L) with low integrity but measurable confidentiality and availability impact warrants moderate priority. The network-accessible and low-complexity attack vector means exploitation requires only an HTTP client and valid credentials; no exploit code complexity or advanced techniques needed. The authentication requirement (PR:L) significantly limits real-world risk compared to an unauthenticated bypass, as attackers need a legitimate user account. However, the presence of source code evidence from the official GitHub advisory (GHSA-rcvp-6fgw-c7fh) and fixed version (0.9.0) confirms this is a genuine, non-theoretical vulnerability affecting deployed systems. Patch availability since 0.9.0 means legacy deployments running ≤0.8.12 remain vulnerable. The attack is trivial to execute once inside the authentication boundary-single API calls with predictable model names-making this a high-priority fix for multi-tenant or group-based Ollama deployments where access control policies are intentionally deployed. |
| Exploit ScenarioDerived | An authenticated user Alice with access only to llama3:8b model learns that the organization deployed llama3:70b restricted to the ML Engineers group. Alice directly POSTs to /ollama/api/show with model name llama3:70b and her valid authentication token. The endpoint, lacking AccessGrants validation, returns the full model configuration including the system prompt. Alice then calls /ollama/api/generate with the same model name to run inference tasks, consuming GPU resources allocated for ML Engineers. Alice's actions succeed because the proxy forwards all requests without permission checks, despite the /api/chat endpoint in the web UI correctly blocking her access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
Primary rating from Vendor (https://github.com/open-webui/open-webui) · only source for this CVE.
CVSS VectorVendor: https://github.com/open-webui/open-webui
DescriptionCVE.org
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)
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
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
EUVD-2026-30614
GHSA-rcvp-6fgw-c7fh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB