Open WebUI can be made unavailable by uploading a malformed file

HighSE Fix-First Score 43/100GHSA-6wj5-5pgr-jwq8SE-AIV-00846Missing or broken access controlAI apps and chat interfacesMade public 20 Mar 2025

Download as PDF

What this means

An attacker can upload a specially crafted file that makes the application stop responding to all users. This blocks access for everyone until the server is restarted or the bad file is removed. During an outage, no one can use the service, and customer support costs money to respond.

SecurityElites Manager Brief: the decision in one minute

Open WebUI has a flaw that lets anyone upload a file that crashes the service for all users. You need to upgrade immediately to restore normal access and prevent repeated attacks.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team.
Likely effortAbout 30 minutes: upgrade to version 0.4.7, restart the service, and verify it accepts connections. Longer if you need to restore from backup or investigate whether the attack was used before.

Questions to ask your team or supplier

  • Do we know when Open WebUI was last updated, and can we confirm we are running a version before 0.4.7?
  • Who has permission to upload files, and can we see from logs whether anyone tried to upload unusual files in the past month?
  • If we were affected by this attack, how long would it take us to detect it and restore service, and what is the cost to the business?

Message you can forward to the owning team

Security notice: Open WebUI can be made unavailable by uploading a malformed file (GHSA-6wj5-5pgr-jwq8)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to open-webui 0.4.7 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/ghsa-6wj5-5pgr-jwq8-open-webui-can-be-made-unavailable-by-uploading-a/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00846

What is at stake in your AI setup

  • Service availability: attackers can render the entire AI interface inaccessible to all users
  • Compute bill: a DoS attack that keeps the service processing malformed data can burn CPU and cloud resources

Map where your company uses AI

Who is exposed

  • Any team that runs Open WebUI where users can upload files
  • Services that expose Open WebUI on the internet or to untrusted networks
  • Instances running any version before 0.4.7

Upgrades you need

SoftwareAffected versionsMove to
open-webui
PyPI
Every version before 0.4.70.4.7 or later

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededNone. No login is needed
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readNone
Risk of: data or settings being changedNone
Risk of: the service being taken downHigh

Read from the official severity rating: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Kind of coding mistake

  • CWE-400: resources can be exhausted

If you cannot upgrade today

  • Temporarily disable file uploads by removing upload permissions from the web interface or firewall rules, if the application allows it.
  • Restart the service every hour or on a schedule to clear any stuck processes, as a temporary measure only.
  • Limit uploads to trusted internal users only until you can upgrade.

Signs it may already have been used against you

  • Application becomes unresponsive or slow immediately after a file upload
  • Web server logs show POST requests to file upload endpoints with extremely long multipart boundary headers
  • Error messages in Open WebUI logs mentioning 'malformed multipart' or 'boundary' parsing failures
  • High CPU or memory usage coinciding with upload attempts, then recovery after service restart

Log searches to start from

Find upload requests with unusually long boundary values (adapt field names for your logs)Splunk

sourcetype=webui_app POST */upload* Content-Type=multipart* | regex _raw="boundary=.{1000,}" | table _time, src, uri, size

Find multipart parsing errors around upload endpoints (adapt field names for your logs)Elastic

http.method:POST AND http.uri:*upload* AND (message:*malformed* OR message:*boundary* OR message:*multipart*) | stats count by @timestamp, source.ip, http.uri

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find where Open WebUI is installedCheck which servers or containers run Open WebUI. Note the Python environment, the installed version, and the path where files are stored. Run `pip show open-webui` or check your deployment tool (Docker, Kubernetes, etc.) to confirm the current version.
  2. Back up the application and dataIf you have not done so, create a backup of the Open WebUI database and uploaded files. This lets you recover if something goes wrong during the upgrade.
  3. Upgrade to version 0.4.7 or laterUse your package manager to install the fixed version. For pip: upgrade the package using your normal deployment process. For Docker: pull the image with tag 0.4.7 or later. For other setups, follow the vendor instructions for the fixed release.
  4. Restart the serviceStop and start Open WebUI to load the new code. If you use Docker, restart the container. If you use a process manager, restart the application. Wait for it to fully start before testing.
  5. Verify the fix is in placeRun `pip show open-webui` and confirm the version is 0.4.7 or higher. Log in to the web interface and confirm you can upload a normal file without errors.
  6. Check server logs for signs of past attacksLook at the application and web server logs from before the upgrade. Search for upload requests with very long or repeated characters in the boundary field, or for messages about malformed multipart data. If found, an attacker may have tested or used this flaw before.
  7. Remove any stuck or corrupted uploadsIf the logs show malformed file uploads, manually delete the incomplete or corrupted files from the upload directory to free disk space and restore normal operation. Document which files you removed.
  8. Monitor for repeated attacksSet up alerts on unusual upload patterns or service crashes after file uploads over the next two weeks. If you see the same pattern, check firewall rules and access controls for the upload endpoint.

How to confirm it is fixed: Run `pip show open-webui` and confirm the version is 0.4.7 or higher, then log in to the application and verify you can upload a normal file without errors.

SecurityElites Quick Fixes: copy and paste

Upgrade open-webui with pipupgrade

pip install --upgrade "open-webui>=0.4.7"
pip show open-webui | grep Version

Pin it in requirements.txtupgrade

open-webui>=0.4.7

Require sign-in with nginx in front of the servicegeneral hardening

location / {
    auth_basic "Restricted";
    auth_basic_user_file /etc/nginx/.htpasswd;
    proxy_pass http://127.0.0.1:8080;
}

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

Let your AI coding assistant do the upgrade

Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.

Instruction for your coding assistant

You are helping me fix a security vulnerability (GHSA-6wj5-5pgr-jwq8) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n   - open-webui (PyPI): must be 0.4.7 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

What would you see in the application logs if someone tried to exploit this vulnerability?A good answer: You would see errors about malformed multipart boundaries or parsing failures, followed by the application becoming slow or unresponsive, and then recovery after a restart.
Why does upgrading to 0.4.7 fix this problem?A good answer: Version 0.4.7 includes code that validates or limits the length of multipart boundaries before processing, so malformed headers no longer cause a denial of service.
What should we do if we find evidence that someone uploaded a malformed file before we upgraded?A good answer: Delete the malformed file from the upload directory, review logs to see if the attack was repeated or successful in disrupting the service, and consider limiting who can upload until you understand what happened.
How can we prevent this in the future?A good answer: Keep Open WebUI updated to the latest stable version, limit file upload permissions to trusted users, and monitor logs for unusual upload patterns or server crashes.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## Open WebUI can be made unavailable by uploading a malformed file (GHSA-6wj5-5pgr-jwq8)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-00846 https://securityelites.com/ai-vulnerabilities/ghsa-6wj5-5pgr-jwq8-open-webui-can-be-made-unavailable-by-uploading-a/

### Why this matters
An attacker can upload a specially crafted file that makes the application stop responding to all users. This blocks access for everyone until the server is restarted or the bad file is removed. During an outage, no one can use the service, and customer support costs money to respond.

### What to do
1. Find where Open WebUI is installed
2. Back up the application and data
3. Upgrade to version 0.4.7 or later
4. Restart the service
5. Verify the fix is in place
6. Check server logs for signs of past attacks
7. Remove any stuck or corrupted uploads
8. Monitor for repeated attacks

Full steps: https://securityelites.com/ai-vulnerabilities/ghsa-6wj5-5pgr-jwq8-open-webui-can-be-made-unavailable-by-uploading-a/

### Done when
- [ ] open-webui is at 0.4.7 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `pip show open-webui` and confirm the version is 0.4.7 or higher, then log in to the application and verify you can upload a normal file without errors.
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 20 Mar 2025: Made public
  • 3 Dec 2026: Published

Official record

A vulnerability in open-webui/open-webui version 79778fa allows an attacker to cause a Denial of Service (DoS) by uploading a file with a malformed multipart boundary. By appending a large number of characters to the end of the multipart boundary, the server continuously processes each character, rendering the application inaccessible. This issue can prevent all users from accessing the application until the server recovers.

Weakness type: CWE-400

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/GHSA-6wj5-5pgr-jwq8

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 3 Dec 2026. Read the vendor advisory before changing a production system.