Skip to content
HighVulnerability

GHSA-26g9-27vm-x3q8: Open WebUI: shared-chat branch ignores access_type, allowing unauthorized file deletion

Published
Record updated
View JSON
Affected
  • open-webui <= 0.8.12
Fixed in
0.9.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

Any authenticated Open WebUI user can permanently delete files owned by other users through DELETE /api/v1/files/{id} when the file is referenced in any shared chat. The has_access_to_file() function in backend/open_webui/routers/files.py grants access through its shared-chat branch without checking the requesting user's identity or the access_type operation. File UUIDs are exposed to users with read access to a knowledge base via GET /api/v1/knowledge/{id}/files, and the flaw was tested on version 0.8.3.

Mitigation

Suggested fix: gate the shared-chat branch on access_type so it only authorizes read operations, by checking if access_type == "read" before returning True when shared chats reference the file.