AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2024-7043: Open WebUI Allows Arbitrary File Reading and Deletion

highCVSS 3.0 8.1GHSA-jrhc-9qg9-4qfq

Open WebUI 0.3.8 and earlier does not check for administrator rights on its files API. Any logged-in user can list every uploaded file, read any file's details and delete any file by ID. The advisory lists no patched version.

Published Mar 20, 2025 · Updated Nov 19, 2026 · Analysis Nov 10, 2026

What an attacker can do

The files endpoints skip the admin check. A user-level account can call GET /api/v1/files/ to list all files uploaded by all users, including their ID values. With an ID, GET /api/v1/files/{file_id} returns details of any file, and DELETE /api/v1/files/{file_id} deletes it.

The attacker needs only a normal account (CVSS 3.0 of 8.1, low privileges, no user interaction). On a shared instance this exposes other people's uploaded documents, which often feed retrieval-augmented chats and hold internal data. It also lets one user destroy another's files, which breaks their knowledge bases and chats. The weakness is missing authorization (CWE-862). The advisory does not describe code execution.

Who is affected

The pip package open-webui, version 0.3.8 and earlier, on instances with more than one user. Check:

pip show open-webui

For Docker, check the image tag. Single-user instances face little risk because the attacker needs an account.

open-webui

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

How to fix it

The advisory lists no patched version, and the affected range is 0.3.8 and earlier. Move to a newer Open WebUI release and check its release notes for the files API fix. Until then, restrict who can register or log in, put the instance behind SSO or a VPN, and block /api/v1/files/ for non-admin users at your reverse proxy where you can.

How to tell if you were hit

Check access logs for GET /api/v1/files/ from non-admin accounts, runs of GET /api/v1/files/{file_id} across many IDs, and DELETE /api/v1/files/{file_id} calls. Users who report missing uploads are another sign.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

An improper access control vulnerability in open-webui/open-webui v0.3.8 allows attackers to view and delete any files. The application does not verify whether the attacker is an administrator, allowing the attacker to directly call the GET /api/v1/files/ interface to retrieve information on all files uploaded by users, which includes the ID values. The attacker can then use the GET /api/v1/files/{file_id} interface to obtain information on any file and the DELETE /api/v1/files/{file_id} interface to delete any file.

Credited to Classic298.

Questions

Is there a fixed version for CVE-2024-7043?

The advisory lists none. It marks 0.3.8 and earlier as affected, so move to a newer release and read its notes.

Does the attacker need to be an admin?

No. A normal user-level account is enough, because the endpoints do not check for administrator rights.

Which endpoints are involved?

GET /api/v1/files/, GET /api/v1/files/{file_id} and DELETE /api/v1/files/{file_id}.

Can it lead to code execution?

The advisory describes reading and deleting files only, with high confidentiality and integrity impact and none on availability.

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