CVE-2024-8060: Open webui Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-ff5c-56m7-vc75
CVSS 8.1
CWE-434 CWE-22
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-8060
GHSA Identifier GHSA-ff5c-56m7-vc75
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Open webui
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (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.

open-webui fixed: 0.5.17
pip install open-webui>=0.5.17
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-8060 Affected Open webui Versions

1 component(s)
Fixed Versions:
0.5.17
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?
CVE-2024-8060 is a security vulnerability in Open webui involving Open WebUI allows Remote Code Execution via Arbitrary File Upload to /audio/api/v1/transcriptions under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Open webui versions are affected?
Affected versions include releases prior to 0.5.17 across affected packages: open-webui.
What version fixes CVE-2024-8060?
Upgrading to 0.5.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is open-webui affected?
Yes, open-webui is affected in releases prior to 0.5.17. Upgrade your dependency to 0.5.17 or later.
What is the CVSS score of CVE-2024-8060?
CVE-2024-8060 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2024-8060?
CVE-2024-8060 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check PyPI dependencies for CVE-2024-8060?
Run the dependency tree command: 'pip show open-webui'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}