NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2024-12537: Open WebUI Uncontrolled Resource Consumption vulnerability

highCVSS 3.0 7.5GHSA-chf7-q7m5-fq92

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-webui

For 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

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 entries