Vulnerability Description
In open-webui version 0.3.8, the endpoint `/models/upload` is vulnerable to arbitrary file write due to improper handling of user-supplied filenames. The vulnerability arises from the usage of `file_path = f"{UPLOAD_DIR}/{file.filename}"` without proper input validation or sanitization. An attacker can exploit this by manipulating the `file.filename` parameter to include directory traversal sequences, causing the resulting `file_path` to escape the intended `UPLOAD_DIR` and potentially overwrite arbitrary files on the system. This can lead to unauthorized modifications of system binaries, configuration files, or sensitive data, potentially enabling remote command execution.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Openwebui | Open Webui | 0.3.8 |
Related Weaknesses (CWE)
References
- https://huntr.com/bounties/711beada-10fe-4567-9278-80a689da8613ExploitThird Party Advisory
FAQ
What is CVE-2024-7034?
CVE-2024-7034 is a vulnerability with a CVSS score of 7.2 (HIGH). In open-webui version 0.3.8, the endpoint `/models/upload` is vulnerable to arbitrary file write due to improper handling of user-supplied filenames. The vulnerability arises from the usage of `file_p...
How severe is CVE-2024-7034?
CVE-2024-7034 has been rated HIGH with a CVSS base score of 7.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-7034?
Check the references section above for vendor advisories and patch information. Affected products include: Openwebui Open Webui.