CVE-2024-8060: Open WebUI allows Remote Code Execution via Arbitrary File Upload to /audio/api/v1/transcriptions
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-webuiFor 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 entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
