CVE-2024-7034: Open WebUI Allows Arbitrary File Write via the `/models/upload` Endpoint
6.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.71551%
CWE
Published
3/20/2025
Updated
3/21/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| open-webui | pip |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly identifies the pattern file_path = f"{UPLOAD_DIR}/{file.filename}" as the root cause. This code pattern would typically exist in the request handler function for the /models/upload endpoint. While exact function names and file paths aren't provided in the advisory, the described vulnerability pattern clearly indicates the file upload handling function associated with this endpoint is vulnerable due to: 1) Direct use of user-controlled filename without sanitization 2) Lack of path normalization 3) Absence of checks preventing directory traversal. The confidence is high because the code snippet provided in the advisory directly maps to common web framework file upload handler implementations.