Skip to content
MediumVulnerability

GHSA-mqq6-cqcx-38vg: Open WebUI's Model Import Overwrites Any Model Without Ownership Check

Published
Record updated
View JSON
Affected
  • open-webui <= 0.8.12
Fixed in
0.9.0
  • released April 21, 2026, 17 days before disclosure

Summary

Open WebUI's `POST /api/v1/models/import` endpoint, implemented in `backend/open_webui/routers/models.py` (`import_models`), lets a user holding the `workspace.models_import` permission overwrite any existing model without an ownership check. The attacker's payload is merged over the stored model and written with `Models.update_model_by_id`, and `filter_allowed_access_grants` is never called, so access grants can be set to public without the `sharing.public_models` permission. Affected versions are not confirmed; the current main branch (commit `6fdd19bf1`) and likely all versions with model import are named.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.