CVE-2024-7034: Remote Code Execution due to Arbitrary File Write in open-webui/open-webui

Published 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 filepath = f"{UPLOADDIR}/{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 filepath to escape the intended UPLOADDIR 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.

Affected Software

3 affected components
open-webui open-webui
pip/open-webui<=0.3.8
openwebui Open WebUI=0.3.8

Event History

Mar 20, 2025
CVE Published
via MITRE·10:10 AM
Data Sourced
via MITRE·10:10 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
Affected Software
Advisory Published
via GitHub·12:32 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

What software is affected by CVE-2024-7034?

CVE-2024-7034 affects version 0.3.8 of open-webui.

4

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.

5

Is CVE-2024-7034 a known vulnerability?

Yes, CVE-2024-7034 is a known vulnerability that has been documented and reported.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By 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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203