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

CVE-2024-8060: Open WebUI allows Remote Code Execution via Arbitrary File Upload to /audio/api/v1/transcriptions

highCVSS 3.0 8.1GHSA-ff5c-56m7-vc75

Open WebUI before 0.5.17 lets a signed-in user upload a file to `/audio/api/v1/transcriptions` with a user-controlled filename and weak `content_type` checks. The filename allows path traversal, so the upload can overwrite files inside the Docker container and may lead to code execution as root. Upgrade to 0.5.17.

Published Mar 20, 2025 · Updated Oct 15, 2025 · Analysis Nov 1, 2026

What an attacker can do

The transcription endpoint accepts an audio upload. According to the advisory, it validates file.content_type insufficiently and uses the filename the client supplies. A filename containing path segments such as ../ makes the server write the upload outside the intended directory (CWE-22, CWE-434).

The attacker needs any authenticated account, and no user interaction. They choose a path inside the container and overwrite a file that matters, such as application code or a startup script. The advisory says this can lead to remote code execution as the root user in the container. Even without code execution, overwriting critical files breaks the service (the vector scores integrity and availability as high).

Instances that allow open sign-up are at the greatest risk, because anyone can get the account the attack needs. The advisory text names version 0.3.0 as the one tested.

Who is affected

Affected: open-webui below 0.5.17. The advisory text describes version 0.3.0, and the package range runs up to 0.5.17.

pip show open-webui

For Docker, check the image tag you run. Any deployment where untrusted users can hold an account is exposed. The container's root user makes the impact larger.

open-webui

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

How to fix it

Upgrade to open-webui 0.5.17:

pip install --upgrade "open-webui>=0.5.17"

For Docker, pull a current image and recreate the container. The commit linked from the advisory (613a087) changes only TTS model and voice fallbacks in backend/open_webui/routers/audio.py, so it does not show the traversal fix. Rely on the 0.5.17 release, not on that commit. The sources name no workaround. Until you upgrade, disable open sign-up, and run the container as a non-root user with a read-only filesystem except for the data volume.

How to tell if you were hit

Look in access logs for POST requests to /audio/api/v1/transcriptions whose multipart filename contains ../, ..%2f or absolute paths. Inside the container, check for recently modified application files, startup scripts or Python files outside the data directory.

Compare the image's file hashes against a fresh image of the same version. Review unexpected processes or outbound connections from the container.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

OpenWebUI version 0.3.0 contains a vulnerability in the audio API endpoint /audio/api/v1/transcriptions that allows for arbitrary file upload. The application performs insufficient validation on the file.content_type and allows user-controlled filenames, leading to a path traversal vulnerability. This can be exploited by an authenticated user to overwrite critical files within the Docker container, potentially leading to remote code execution as the root user.

Questions

Which Open WebUI version fixes CVE-2024-8060?

Version 0.5.17. Earlier releases are affected.

Does the attacker need an account?

Yes, an authenticated one. The vector shows low privileges and no user interaction. Open sign-up makes this easy to obtain.

Can it lead to remote code execution?

The advisory says it can, as root inside the Docker container, by overwriting critical files.

Is it exploited in the wild?

No source reports exploitation, and it is not in CISA's KEV catalog.

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