CVE-2026-45667: Open WebUI: Unauthenticated endpoint can trigger embedding generation (cost/DoS)
Open WebUI 0.7.2 and earlier exposes GET /api/v1/memories/ef with no authentication. Each call runs the configured embedding function, so anyone on the network can burn CPU or GPU time and, with a paid embedding provider, run up charges. Version 0.8.0 removed the route.
Published May 14, 2026 · Updated May 19, 2026 · Analysis Nov 3, 2026
What an attacker can do
The route @router.get("/ef") in backend/open_webui/routers/memories.py calls request.app.state.EMBEDDING_FUNCTION("hello world") and returns the result. It has no authentication dependency. It looks like a debug leftover with no legitimate caller.
The proof of concept needs nothing but the default setup (ENABLE_MEMORIES defaults to true): an unauthenticated curl to /api/v1/memories/ef returns HTTP 200 with the embedding result. An attacker repeats the request. Where embeddings run locally, this uses CPU or GPU and slows the service for real users. Where Open WebUI is set to a remote provider such as OpenAI or Azure, each call is an outbound billed request, so the owner pays and may hit rate limits that also break retrieval for legitimate users.
The attacker needs only network access to the Open WebUI port (PR:N, UI:N). No data is read; the string embedded is fixed. The harm is cost and availability, which the CVSS vector scores as low integrity and low availability.
Who is affected
Affected: the open-webui pip package at 0.7.2 and earlier, per the advisory. It states that 0.8.0 and later are not affected. Cost exposure is greatest when the embedding engine is a paid remote API. Check your version:
pip show open-webuiTo test an instance, call the route without credentials and see whether it answers 200:
curl -i http://HOST:PORT/api/v1/memories/efopen-webui
- Ecosystem
- PyPI
- Affected
- <= 0.7.2
- Fixed in
- 0.8.0
- Check
pip show open-webui
How to fix it
Upgrade to open-webui 0.8.0 or later (released February 2026):
pip install --upgrade open-webuiCommit e5035ea31 deletes the /api/v1/memories/ef route outright instead of adding authentication, since nothing depended on it. The advisory lists no workaround. If you cannot upgrade, block that path at the reverse proxy and set spending limits with your embedding provider.
How to tell if you were hit
Search reverse proxy and access logs for GET /api/v1/memories/ef, especially requests without a session cookie or Authorization header, and bursts from one address. Check your embedding provider's usage dashboard for spikes in requests of a very short input. After upgrading, the same request should return 404 or 405 instead of 200.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
GET /api/v1/memories/ef is accessible without authentication and executes request.app.state.EMBEDDING_FUNCTION(...). This allows any unauthenticated caller to trigger embedding generation which can lead to direct cost exposure if a paid provider is used. Code reference: backend/open_webui/routers/memories.py (@router.get("/ef") -> calls request.app.state.EMBEDDING_FUNCTION("hello world")).
Details
GET /api/v1/memories/ef is reachable without authentication and triggers request.app.state.EMBEDDING_FUNCTION("hello world"). This crosses an intended security boundary by allowing unauthenticated users to invoke potentially expensive embedding computation and/or paid upstream embedding APIs.
PoC
- Start Open WebUI in default configuration (no special env hardening; default ENABLE_MEMORIES is true).
- From an unauthenticated client (no cookies/Authorization header), call: curl -i http://\:\/api/v1/memories/ef
- Observe the server performs embedding generation and returns a response like:
- HTTP 200 with JSON containing the result.
How it can be abused / attacker actions:
- Send repeated requests to
/api/v1/memories/efto: - consume CPU/GPU resources (DoS)
- generate sustained outbound usage to embedding providers if configured (cost + rate-limit exhaustion)
- degrade latency/availability for legitimate users
Impact
If embeddings are configured to use paid/remote providers (OpenAI/Azure/etc), an attacker can generate unlimited requests and incur charges.
Resolution
Fixed in commit e5035ea31, first released in v0.8.0 (Feb 2026). The /api/v1/memories/ef route was removed entirely. It was a diagnostic/debug-style endpoint that hard-coded "hello world" through the embedding function without any authentication dependency; there was no legitimate caller that depended on it, so deletion was the cleaner fix than retrofitting auth. Users on >= 0.8.0 are not affected.
Credited to densi97, Classic298.
Questions
- Does CVE-2026-45667 need authentication?
No. The endpoint answered unauthenticated GET requests in the default configuration, which is why the attack needs only network access.
- Can it leak data?
The advisory describes no data exposure. The route embeds a fixed string, "hello world", so the risks are compute load, provider charges and degraded availability.
- Which version fixes it?
open-webui 0.8.0, which removed the route. Versions up to 0.7.2 are listed as vulnerable.
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 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
