Browse / AI Framework and Platform Flaws / CVE-2024-8060
Open WebUI allows Remote Code Execution via Arbitrary File Upload to /audio/api/v1/transcriptions
- Class
- AI Framework and Platform Flaws (filed by a model that read the source)
- Technique
- Path traversal and file access
- Affected
- open-webui (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
How it works, in short
The upload endpoint trusts the client content type and filename, letting paths escape the upload directory and overwrite system files. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8060
- https://github.com/open-webui/open-webui/commit/613a087387c094e71ee91d29c015195ef401e160
- https://github.com/open-webui/open-webui
- https://huntr.com/bounties/a3b1a4b7-c723-496d-842c-844cc0988fe9
Source: GitHub Advisory Database, used under CC BY 4.0.