Skip to content
HighVulnerability

GHSA-r472-mw7m-967f: Open WebUI: Cross-User File Access via Unchecked file_id in Folder Knowledge and Knowledge-Base Attach Endpoints

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

Summary

Multiple Open WebUI endpoints accept a user-supplied `file_id` and attach that file to a resource the caller controls without checking the caller's access to the file. Path 1 is `POST /api/v1/folders/{id}/update` through the folder knowledge consumer in `backend/open_webui/utils/middleware.py`, where the referenced file becomes RAG context for chat completions. Path 2 is the knowledge-base attach endpoints in `backend/open_webui/routers/knowledge.py`, which grant read and write access to the file through `/api/v1/files/{id}/content` and `/api/v1/files/{id}/data/content/update`. An authenticated user who knows another user's file UUID can exfiltrate that file, and on Path 2 also overwrite it.

Mitigation

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