Browse / AI Framework and Platform Flaws / CVE-2026-44562
Open WebUI's Model Import Overwrites Any Model Without Ownership Check
- Class
- AI Framework and Platform Flaws (filed by a model that read the source)
- Technique
- Authentication and access control
- Affected
- open-webui (PyPI)
- Gets past
- Authorisation check
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- EPSS
- 0.3% chance of exploitation in 30 days
How it works, in short
The model import route overwrites existing models by ID without any ownership or access grant check, so a permitted user can replace models they do not own. (Our summary, written by a model. The source text is below.)
Details
Model Import Overwrites Any Model Without Ownership Check
Affected Component
Model import endpoint:
- backend/open_webui/routers/models.py (lines 254-308, import_models)
Affected Versions
Current main branch (commit 6fdd19bf1) and likely all versions with model import functionality.
Description
The POST /api/v1/models/import endpoint allows users with the workspace.models_import permission to overwrite any existing model in the database, regardless of ownership. When an imported model's ID matches an existing model, the endpoint merges the attacker's payload over the existing model data and writes it to the database with no ownership or access grant validation. Additionally, filter_allowed_access_grants is never called, bypassing the access grant restrictions enforced on all other model mutation endpoints.
# Line 280 โ fetches existing model with NO ownership check
existing_models_dict = {m.id: m for m in Models.get_models_by_ids(model_ids, db=db)}
# Line 295 โ attacker's data overrides existing model fields
form = ModelForm(**{**existing_model.model_dump(), **model_data})
# Line 296 โ writes directly, never calls filter_allowed_access_grants
Models.update_model_by_id(model_id, form, db=db)
Compare with properly-guarded endpoints:
- update_model_by_id (line 499): checks ownership/write access AND calls filter_allowed_access_grants
- update_model_access_by_id (line 571): checks ownership/write access AND calls filter_allowed_access_grants
- import_models (line 254): checks neither
CVSS 3.1 Breakdown
| Metric | Value | Rationale |
|--------|-------|-----------|
| Attack Vector | Network (N) | Exploited remotely via API call |
| Attack Complexity | Low (L) | Single API call with a crafted payload |
| Privileges Required | Low (L) | Requires workspace.models_import permission (non-admin, granted by admin to groups/users) |
| User Interaction | None (N) | No victim interaction required |
| Scope | Unchanged (U) | Impact within the model management boundary |
| Confidentiality | None (N) | No direct data disclosure |
| Integrity | High (H) | Any model's system prompt, base model, and access grants can be silently replaced |
| Availability | None (N) | No denial of service |
Attack Scenario
- Admin grants User B the
workspace.models_importpermission (intended for bulk importing model configurations). - User A (or an admin) owns a model
company-assistantused by the organization. - User B sends: