CVE-2024-8060: Open webui Remote Code Execution Vulnerability
HIGHCVE-2024-8060 is a HIGH (CVSS 8.1) remote code execution vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Open webui libraries in the PyPI ecosystem. The issue involves open webui allows remote code execution via arbitrary file upload to /audio/api/v1/transcriptions. Remediation is available by upgrading affected packages to version 0.5.17.
CVE-2024-8060 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2024-8060
To remediate this vulnerability, upgrade all affected Open webui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install open-webui>=0.5.17
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show open-webui
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-8060, inspect your installed packages using pip:
pip show open-webui
Analyze the terminal output to locate any version of Open webui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.17), your application is affected.
Note: The pip show open-webui command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Open webui, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-8060 Affected Open webui Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
open-webui
|
PyPI |
< 0.5.17
|
0.5.17
|
References
Frequently Asked Questions
What is CVE-2024-8060?
Which Open webui versions are affected?
What version fixes CVE-2024-8060?
Is open-webui affected?
What is the CVSS score of CVE-2024-8060?
What CWE is associated with CVE-2024-8060?
How can I check PyPI dependencies for CVE-2024-8060?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ff5c-56m7-vc75",
"modified" : "2025-03-21T21:24:09Z",
"published" : "2025-03-20T12:32:47Z",
"aliases" : [ "CVE-2024-8060" ],
"summary" : "Open WebUI allows Remote Code Execution via Arbitrary File Upload to /audio/api/v1/transcriptions",
"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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "open-webui"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.17"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8060"
}, {
"type" : "WEB",
"url" : "https://github.com/open-webui/open-webui/commit/613a087387c094e71ee91d29c015195ef401e160"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/open-webui/open-webui"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/a3b1a4b7-c723-496d-842c-844cc0988fe9"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-434" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-21T21:24:09Z",
"nvd_published_at" : "2025-03-20T10:15:40Z"
}
}