Open-WebUI uses Starlette that can be starved of memory and go offline

HighSE Fix-First Score 43/100GHSA-w466-2wfc-8g58SE-AIV-00950Denial of service and resource exhaustionAI softwareMade public 20 Mar 2025

Download as PDF

What this means

An attacker can send requests that make the Open-WebUI service use more and more memory until it crashes. While this is happening, the service stops responding to real users. The attacker does not need a valid account. If the service restarts automatically, an attacker can repeat this attack to keep it offline.

SecurityElites Manager Brief: the decision in one minute

Open-WebUI relies on a web framework (Starlette) that does not limit how much memory a single request can consume. An attacker can exhaust memory and crash the service. All versions before 0.5.8 are affected. Update to 0.5.8 or later.

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 that runs Open-WebUI.
Likely effortAbout 30 minutes: a version bump to 0.5.8 and a restart. Longer if the team needs to test the upgrade in a staging environment first or if there are many instances to update.

Questions to ask your team or supplier

  • Do we have all instances of Open-WebUI listed and do we know the version of each one?
  • Can we upgrade in stages (staging first, then production) or must we do it all at once, and what is our rollback plan if something breaks?
  • Is Open-WebUI currently protected by a reverse proxy or rate limiter, and if not, can we add one as a second layer of defense?

Message you can forward to the owning team

Security notice: Open-WebUI uses Starlette that can be starved of memory and go offline (GHSA-w466-2wfc-8g58)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to open-webui 0.5.8 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-w466-2wfc-8g58-open-webui-uses-starlette-that-can-be-starved-of-memory/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00950

What is at stake in your AI setup

  • Keys and tokens for AI providers: exhaustion attacks do not directly steal them, but if the service goes down, users cannot access AI features and may try workarounds that expose credentials.
  • Chat history and prompts: if the service crashes repeatedly due to attacks and backups fail, unsaved conversations may be lost.

Map where your company uses AI

Who is exposed

  • Teams running Open-WebUI on the internet or any untrusted network without additional request limits in front of it.
  • Instances running any version before 0.5.8.
  • Setups where Open-WebUI cannot be restarted quickly if it crashes.

Upgrades you need

SoftwareAffected versionsMove to
open-webui
PyPI
Every version before 0.5.80.5.8 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

Where it sits in the standards

OWASP Top 10 for LLM Applications 2025: LLM10 Unbounded Consumption

If you cannot upgrade today

  • If upgrade to 0.5.8 must wait: place Open-WebUI behind a reverse proxy (nginx, Apache) or API gateway and set a maximum request body size limit (for example, 10 MB). This reduces how much memory a single request can use.
  • Set up automatic restarts so that if Open-WebUI crashes from memory exhaustion, it recovers within a few minutes without manual work.
  • Restrict network access to Open-WebUI so only trusted IP addresses can reach it.

Signs it may already have been used against you

  • In Open-WebUI logs, look for memory use that climbs steadily or suddenly, especially after receiving many requests.
  • Check the system where Open-WebUI runs for unexpected crashes or restarts around the same time each day, or after receiving large requests.
  • If Open-WebUI is behind a proxy, check the proxy logs for requests with very large bodies, very long URLs, or requests that cause the service to become slow or unresponsive.

SecurityElites Fix Guide: step by step

  1. Find all instances of Open-WebUIList every machine, container and server where Open-WebUI is running. Include development, staging and production. Note the Python package manager (pip, poetry, conda) used to install it on each.
  2. Check the current versionOn each machine, run the command to show the installed version of open-webui. Record which instances are before version 0.5.8.
  3. Back up configuration and dataExport or snapshot the Open-WebUI configuration, database and any saved chats or models. This protects against loss if the upgrade fails.
  4. Upgrade to version 0.5.8On each affected instance, upgrade the open-webui package to version 0.5.8 using the Python package manager. For example, with pip: `pip install --upgrade open-webui==0.5.8`.
  5. Restart Open-WebUIStop and start the Open-WebUI service on each instance so it loads the new version. If it runs in a container, restart the container. If it runs as a system service, restart that service.
  6. Confirm the fix is in placeOn each instance, check that the installed version is now 0.5.8 or later using the same command as step 2.
  7. Look for signs of earlier attacksCheck logs from before the upgrade for unusual memory use, repeated crashes, or requests with very large payloads. If you find evidence of attack, review who made those requests and what data they may have accessed.
  8. Add request limits in front of Open-WebUIIf possible, place a reverse proxy or API gateway (such as nginx or a cloud provider's load balancer) in front of Open-WebUI and set a maximum request size and timeout. This reduces the window for a future memory exhaustion attack.

How to confirm it is fixed: Confirm that all instances of Open-WebUI show version 0.5.8 or later when you run `pip show open-webui`.

SecurityElites Quick Fixes: copy and paste

Upgrade open-webui with pipupgrade

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

Pin it in requirements.txtupgrade

open-webui>=0.5.8

Check Open-WebUI version with pipfor this issue

pip show open-webui | grep Version

Rate and size limits with nginxgeneral hardening

limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;

server {
    location /api/ {
        limit_req zone=api burst=20 nodelay;
        client_max_body_size 2m;
    }
}

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-w466-2wfc-8g58) 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.5.8 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 versions of open-webui are affected by this issue?A good answer: Every version before 0.5.8 is affected; version 0.5.8 and all later versions have the fix.
What is the attack and what does it do?A good answer: An attacker sends requests that force the service to use more and more memory until it crashes, making Open-WebUI unavailable to legitimate users.
Who can carry out this attack?A good answer: Anyone who can reach Open-WebUI on the network; no account or special permissions are needed.
What should we do first to fix it?A good answer: Find all instances of Open-WebUI, check which ones are before 0.5.8, then upgrade them to 0.5.8 and restart.

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 uses Starlette that can be starved of memory and go offline (GHSA-w466-2wfc-8g58)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-00950 https://securityelites.com/ai-vulnerabilities/ghsa-w466-2wfc-8g58-open-webui-uses-starlette-that-can-be-starved-of-memory/

### Why this matters
An attacker can send requests that make the Open-WebUI service use more and more memory until it crashes. While this is happening, the service stops responding to real users. The attacker does not need a valid account. If the service restarts automatically, an attacker can repeat this attack to keep it offline.

### What to do
1. Find all instances of Open-WebUI
2. Check the current version
3. Back up configuration and data
4. Upgrade to version 0.5.8
5. Restart Open-WebUI
6. Confirm the fix is in place
7. Look for signs of earlier attacks
8. Add request limits in front of Open-WebUI

Full steps: https://securityelites.com/ai-vulnerabilities/ghsa-w466-2wfc-8g58-open-webui-uses-starlette-that-can-be-starved-of-memory/

### Done when
- [ ] open-webui is at 0.5.8 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that all instances of Open-WebUI show version 0.5.8 or later when you run `pip show open-webui`.
- [ ] 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

In version 0.3.32 of open-webui, the application uses a vulnerable version of the starlette package through its dependency on fastapi. The starlette package versions <=0.49 are susceptible to uncontrolled resource consumption, which can be exploited to cause a denial of service through memory exhaustion. This issue is addressed in fastapi version 0.115.3.

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-w466-2wfc-8g58

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.