
20/3/2025

20/3/2025

21/3/2025
CVE-2024-7034: Remote Code Execution due to Arbitrary File Write in open-webui/open-webui
First published: Thu Mar 20 2025(Updated: )
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.
Credit: security@huntr.dev
Affected Software | Affected Version | How to fix |
---|
open-webui | | |
pip/open-webui | <=0.3.8 | |
Never miss a vulnerability like this again
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
Frequently Asked Questions
What is the severity of CVE-2024-7034?
CVE-2024-7034 has a medium severity level due to the potential for arbitrary file write vulnerabilities.
How do I fix CVE-2024-7034?
To fix CVE-2024-7034, ensure proper validation and sanitization of user-supplied filenames before handling file uploads.
What software is affected by CVE-2024-7034?
CVE-2024-7034 affects version 0.3.8 of open-webui.
What is the impact of CVE-2024-7034?
The impact of CVE-2024-7034 includes unauthorized file writing which can lead to data corruption or further exploitation.
Is CVE-2024-7034 a known vulnerability?
Yes, CVE-2024-7034 is a known vulnerability that has been documented and reported.
- agent/title
- agent/weakness
- agent/type
- agent/description
- agent/first-publish-date
- agent/guess-ai
- agent/software-canonical-lookup
- collector/nvd-api
- source/NVD
- agent/author
- agent/severity
- collector/github-advisory-latest
- source/GitHub
- alias/GHSA-crh6-pj8c-xrhc
- alias/CVE-2024-7034
- collector/nvd-cve
- agent/references
- agent/source
- agent/last-modified-date
- agent/softwarecombine
- agent/tags
- agent/event
- collector/mitre-cve
- source/MITRE
- collector/github-advisory
- vendor/open-webui
- canonical/open-webui
- package-manager/pip
Contact
SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.coBy using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203