CVE-2024-7034: Open WebUI Arbitrary File Write Vulnerability

open-webui Updated 07 Jul 2026

Summary

07/07/2026
No i
Moderate
6.5

CVE-2024-7034: Open WebUI Allows Arbitrary File Write via the /models/upload Endpoint. Affects open-webui versions < 0.3.8. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Open WebUI is a web-based user interface designed to facilitate interactions with various models and data. It allows users to upload files and manage data efficiently. However, in version 0.3.8, it has a critical vulnerability that exposes the system to arbitrary file write attacks, compromising the integrity and security of the application.

Vulnerability Detail

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.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can implement input validation and sanitization on the 'file.filename' parameter to prevent directory traversal attacks. For example, you can restrict the allowed characters in the filename and ensure it does not contain any '../' sequences.

Conclusion

The Open WebUI vulnerability (CVE-2024-7034) poses a significant risk due to its potential for arbitrary file writes. Users are urged to update to a patched version to mitigate this risk and implement necessary input validation as a temporary workaround.

See every vulnerability recorded for open-webui →

Share this vulnerability

FAQ

The vulnerability allows attackers to overwrite arbitrary files on the system, which can lead to unauthorized modifications of critical files and potential remote command execution.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The affected version is 0.3.8. Any version prior to the patch release is also vulnerable.

If you cannot update the package, implement input validation and sanitization as a temporary measure to mitigate the risk of exploitation.

The CVSS score of this vulnerability is 6.5, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for open-webui.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback