Skip to content
Path traversal Disclosed report Intermediate CVE-2024-8060

Open WebUI allows Remote Code Execution via Arbitrary File Upload to /audio/api/v1/transcriptions

The audio transcription endpoint in Open WebUI 0.3.0 did not properly validate uploaded file types or filenames, allowing an authenticated user to write files outside the intended directory. This could let an attacker overwrite critical files inside the Docker container and potentially achieve remote code execution as root.

open-webui/open-webui

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-ff5c-56m7-vc75, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the endpoint trusted the client-supplied content type and filename without sanitising path traversal sequences before saving the uploaded file.

Impact

An authenticated user could overwrite critical files in the Docker container and potentially execute code as the root user.

What the attacker needed

Authenticated user account; Open WebUI 0.3.0 running in Docker

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you upload a file to a website, the server usually checks what kind of file it is and where it will be saved. Here, the server trusted the filename supplied by the user, so someone could use a name containing '../' to make the file land in a different folder. By overwriting important files inside the container, they could make the server run their own code.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from open-webui/open-webui

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.