CVE-2024-12537: Open WebUI Uncontrolled Resource Consumption vulnerability
Open WebUI 0.3.32 and earlier serves the `api/v1/utils/code/format` endpoint without authentication. An unauthenticated attacker can POST a very large body and leave the server unresponsive. The advisory lists no patched version.
Published Mar 20, 2025 · Updated Apr 1, 2025 · Analysis Nov 1, 2026
What an attacker can do
The code formatting endpoint at api/v1/utils/code/format does not require a login and does not limit the size of the content it processes. The client wrapper is in src/lib/apis/utils/index.ts. An attacker sends a POST with a huge payload, and the server spends its resources formatting it. Other requests slow down or stop, and the service degrades for legitimate users.
The CVSS 3.0 vector (7.5) says network, low complexity, no privileges, no interaction, availability only. The attacker only needs to reach the web port of the instance. Teams that use Open WebUI as a shared chat front end for local or hosted models lose it during an attack. The advisory describes no data exposure. A related issue, CVE-2024-12534, uses oversized sign-in fields for the same kind of effect.
Who is affected
The open-webui package on PyPI and npm at version 0.3.32 and earlier. Check your version:
pip show open-webuiFor Docker, check the image tag. Any instance whose port is reachable by untrusted clients is exposed, since the endpoint needs no login.
open-webui
- Ecosystem
- PyPI
- Affected
- <= 0.3.32
- Fixed in
- No patched version yet
- Check
pip show open-webui
open-webui
- Ecosystem
- npm
- Affected
- <= 0.3.32
- Fixed in
- No patched version yet
- Check
npm ls open-webui
How to fix it
The advisory lists no patched version for either ecosystem. Check Open WebUI releases newer than 0.3.32 and their notes for authentication and size limits on this endpoint, and upgrade to the latest release. The sources name no workaround. General mitigations: block /api/v1/utils/code/format for unauthenticated clients at your reverse proxy, set a request body size limit there, and keep the instance on a VPN or private network.
How to tell if you were hit
Look in reverse proxy and access logs for POST requests to /api/v1/utils/code/format, especially large bodies or many requests from one address without an authenticated session. On the host, watch for sustained high CPU or memory use and out-of-memory kills of the Open WebUI process.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
In version 0.3.32 of open-webui/open-webui, the absence of authentication mechanisms allows any unauthenticated attacker to access the api/v1/utils/code/format endpoint. If a malicious actor sends a POST request with an excessively high volume of content, the server could become completely unresponsive. This could lead to severe performance issues, causing the server to become unresponsive or experience significant degradation, ultimately resulting in service interruptions for legitimate users.
Questions
- Is there a patched Open WebUI version for CVE-2024-12537?
The advisory lists none. It covers 0.3.32 and earlier. Check newer releases and their notes.
- Does the attacker need to log in?
No. The advisory says the endpoint has no authentication.
- Is this the same as CVE-2024-12534?
No. CVE-2024-12534 is about oversized email and password fields on sign-in. This one is the unauthenticated code format endpoint. Both affect 0.3.32 and earlier.
References
Read for this analysis:
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Open WebUI vulnerabilities
All Open WebUI entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
