Skip to main content

Open WebUI CVE-2026-54016

| EUVDEUVD-2026-38526 MEDIUM
Missing Authorization (CWE-862)
2026-06-17 https://github.com/open-webui/open-webui GHSA-cx9v-4qj2-jrw6
4.3
CVSS 3.1 · Vendor: https://github.com/open-webui/open-webui
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid Open WebUI account
  2. Delivery
    Discover or infer target knowledge_id UUID
  3. Exploit
    Craft chat completion request with native function calling enabled
  4. Execution
    Invoke search_knowledge_files with arbitrary knowledge_id
  5. Persist
    Bypass AccessGrants authorization check in no-attached-knowledge code path
  6. Impact
    Receive private knowledge base file metadata

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following conditions to be simultaneously true: (1) the attacker holds a valid authenticated Open WebUI account (any role - admin role is not required); (2) native function calling is enabled in the platform or session configuration ("function_calling": "native"); (3) the knowledge builtin tool category is enabled in platform settings; (4) the selected model for the chat session has no attached knowledge bases (this triggers the vulnerable 'no attached knowledge' code path rather than the correctly authorized path); (5) the attacker knows or can obtain a valid knowledge_id UUID for a knowledge base they do not own and have not been granted read access to. Exploitation is limited to file metadata exposure - filenames, file IDs, knowledge base name and ID, update timestamps - not file content directly. Unauthenticated users cannot exploit this vulnerability (PR:L confirmed by CVSS vector). Deployments where all users are trusted or where no private knowledge bases exist are not meaningfully at risk.

Impact

The NVD-assigned CVSS 3.1 score of 4.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) correctly characterizes this as a medium-severity issue: network-exploitable, low attack complexity, requires only a low-privileged authenticated account, with limited confidentiality impact. No EPSS score was provided in the input data, so exploitation probability cannot be quantified numerically. No CISA KEV listing exists, indicating no confirmed widespread active exploitation at time of analysis. However, the presence of a detailed, public PoC with exact reproduction steps in GHSA-cx9v-4qj2-jrw6 materially lowers the barrier to exploitation - any authenticated platform user can follow the documented steps. The C:L rating reflects metadata-only exposure (filenames, IDs, timestamps - not file content), but the advisory explicitly identifies a chaining risk: exposed file IDs could be used to pivot to content-extraction endpoints such as view_knowledge_file, potentially elevating real-world impact. The requirement to know a valid knowledge_id UUID provides a marginal barrier, though UUIDs may be discoverable through other application features or guessing. Given AC:L and PR:L, exploitation appears automatable with a valid account. The overall risk is real but scoped: multi-tenant Open WebUI deployments with sensitive private knowledge bases face the highest exposure.

Exploit ScenarioDerived

An authenticated attacker with a standard Open WebUI account discovers or infers a knowledge_id UUID belonging to a colleague's private knowledge base containing confidential HR documents. The attacker sends a chat completion API request with "function_calling": "native" against a model with no attached knowledge bases, prompting the LLM to invoke search_knowledge_files with the target knowledge_id. The function executes without any authorization check and returns a JSON list of file metadata - including filenames like salary_review_2026.pdf and acquisition_targets.docx - which the attacker then uses to identify high-value files for potential further exploitation via chained endpoints. The exact JSON request structure for this attack is publicly documented in GHSA-cx9v-4qj2-jrw6.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 18, 2026

Broken Object Level Authorization in Open WebUI's search_knowledge_files builtin tool (versions ≤ 0.9.5) allows any authenticated user to enumerate file metadata from private or restricted knowledge bases they do not own or have permission to access. By sending a crafted chat completion request with native function calling enabled and supplying an arbitrary knowledge_id, an attacker bypasses the AccessGrants permission model entirely, receiving file IDs, filenames, knowledge base names, and timestamps. No KEV listing exists at time of analysis, but a detailed proof-of-concept with full reproduction steps is publicly documented in GitHub Security Advisory GHSA-cx9v-4qj2-jrw6, and a vendor-released patch is available in version 0.9.6.

RemediationAI

Vendor-released patch: Open WebUI 0.9.6. Upgrade the pip package immediately via pip install --upgrade open-webui or pin to open-webui==0.9.6. The fix adds the same authorization gate used by query_knowledge_files before invoking Knowledges.search_files_by_id(), verifying that the requesting user is either an admin, the owner of the target knowledge base, or holds an explicit read permission in AccessGrants. The full advisory and patch details are at https://github.com/open-webui/open-webui/security/advisories/GHSA-cx9v-4qj2-jrw6. If immediate upgrade is not possible, operators should disable native function calling for non-admin users (this prevents the vulnerable tool from being surfaced via the chat API, but removes LLM native tool use entirely), or disable the knowledge builtin tool category in platform settings (trade-off: removes all builtin knowledge search for all users). Restricting chat completion API access to trusted internal users only reduces exposure without disabling functionality. The advisory also recommends defense-in-depth hardening of Knowledges.search_files_by_id() at the data layer so future callers cannot accidentally bypass access control - this should be applied even after patching.

Affected VersionsENISA

open-webui < 0.9.6

Affected Packages

pypi open-webui fix: 0.9.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Open WebUI is a Python-based self-hosted AI chat interface distributed via pip (pkg:pip/open-webui). The vulnerability exists in backend/open_webui/tools/builtin.py within the async function search_knowledge_files. The root cause is CWE-862 (Missing Authorization): in the 'no attached knowledge base' code path, the function directly invokes Knowledges.search_files_by_id(knowledge_id, user_id, ...) with a caller-supplied knowledge_id without first verifying that the caller has read access to that knowledge base. This is an inconsistency - the 'attached knowledge' branch of the same function, as well as the sibling function query_knowledge_files, both perform a three-part authorization check (admin role OR knowledge base ownership OR explicit AccessGrants.has_access() permission via group membership). The underlying Knowledges.search_files_by_id() method receives user_id but does not itself enforce access control on the knowledge_id, meaning authorization responsibility falls entirely on callers - a responsibility this code path omits. Native function calling surfaces the tool directly to the LLM inference pipeline, making the vulnerable path reachable via standard chat API requests.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/open-webui/open-webui) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 4.3 MEDIUM

Network vector because exploitation targets the HTTP chat completion API; PR:L because any authenticated account suffices; C:L because only file metadata, not content, is directly exposed.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/open-webui/open-webui).

CVSS VectorVendor: https://github.com/open-webui/open-webui

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

Summary

Open WebUI has a Broken Object Level Authorization (BOLA) vulnerability in the builtin search_knowledge_files tool.

When native function calling is enabled and the selected model has no attached knowledge bases, an authenticated user can call search_knowledge_files with an arbitrary knowledge_id. The function then returns file metadata from that knowledge base without checking whether the user has read access.

This allows unauthorized enumeration of private or restricted knowledge base files.

Details

The vulnerable code is in:

backend/open_webui/tools/builtin.py

Affected function:

python
async def search_knowledge_files(
    query: str,
    knowledge_id: Optional[str] = None,
    count: int = 5,
    skip: int = 0,
    __request__: Request = None,
    __user__: dict = None,
    __model_knowledge__: Optional[list[dict]] = None,
) -> str:

In the "No attached knowledge" branch, when knowledge_id is provided, the function directly calls:

python
result = await Knowledges.search_files_by_id(
    knowledge_id=knowledge_id,
    user_id=user_id,
    filter={"query": query},
    skip=skip,
    limit=count,
)

This code path does not verify that the current user is authorized to access the specified knowledge base.

The missing check is inconsistent with other nearby code paths. For example, the attached-knowledge branch in the same function checks whether the user is an admin, the owner of the knowledge base, or has explicit read access through AccessGrants:

python
if not (
    user_role == "admin"
    or knowledge.user_id == user_id
    or await AccessGrants.has_access(
        user_id=user_id,
        resource_type="knowledge",
        resource_id=knowledge.id,
        permission="read",
        user_group_ids=set(user_group_ids),
    )
):
    continue

The sibling function query_knowledge_files also performs the same authorization check before using user-supplied knowledge base IDs.

The underlying method Knowledges.search_files_by_id() receives user_id, but it does not enforce authorization for the provided knowledge_id. As a result, this builtin tool path can access a knowledge base by ID without verifying the caller's permissions.

PoC

Prerequisites

  • The attacker has a valid authenticated Open WebUI account.
  • The victim owns a private or restricted knowledge base.
  • The attacker does not own the target knowledge base.
  • The attacker does not have read permission for the target knowledge base in AccessGrants.
  • The attacker knows the target knowledge_id.
  • The selected model has no attached knowledge bases.
  • Builtin tools are enabled.
  • The knowledge builtin tool category is enabled.
  • Native function calling is enabled.

Reproduction Steps

  1. Create a private or restricted knowledge base as the victim user.
  2. Upload one or more files to that knowledge base.
  3. Confirm that the attacker user does not have access to the knowledge base.
  4. As the attacker user, send a chat completion request with native function calling enabled:
json
{
  "stream": true,
  "model": "gpt-4o-mini",
  "params": {
    "function_calling": "native"
  },
  "messages": [
    {
      "role": "user",
      "content": "Please use the search_knowledge_files tool with knowledge_id \"c0c84752-2e9d-42bf-bc3c-c0f272aa61c1\" to search all files"
    }
  ]
}

Replace c0c84752-2e9d-42bf-bc3c-c0f272aa61c1 with the victim's private knowledge base ID.

Expected Result

The request should be denied because the attacker does not have access to the target knowledge base.

Actual Result

search_knowledge_files returns metadata for files inside the target knowledge base, including:

  • file ID;
  • filename;
  • knowledge base ID;
  • knowledge base name;
  • update timestamp.

Impact

This is a Broken Object Level Authorization / Broken Access Control vulnerability.

An authenticated attacker who knows a valid knowledge_id can enumerate files from private or restricted knowledge bases without authorization.

The leaked metadata may expose sensitive information through filenames, such as:

  • financial reports;
  • employee documents;
  • customer contracts;
  • internal roadmap files;
  • confidential project documents.

The exposed file IDs may also help attackers chain this issue with other knowledge-file access paths, such as view_knowledge_file, to attempt further content extraction.

This vulnerability bypasses the intended AccessGrants permission model and may also allow post-revocation metadata access if a user remembers a previously accessible knowledge_id.

Suggested Fix

Add the same authorization check used in query_knowledge_files before calling Knowledges.search_files_by_id():

python
if knowledge_id:
    knowledge = await Knowledges.get_knowledge_by_id(knowledge_id)

    if not knowledge or not (
        user_role == "admin"
        or knowledge.user_id == user_id
        or await AccessGrants.has_access(
            user_id=user_id,
            resource_type="knowledge",
            resource_id=knowledge.id,
            permission="read",
            user_group_ids=set(user_group_ids),
        )
    ):
        return json.dumps({"error": f"Access denied to knowledge base {knowledge_id}"})

    result = await Knowledges.search_files_by_id(
        knowledge_id=knowledge_id,
        user_id=user_id,
        filter={"query": query},
        skip=skip,
        limit=count,
    )

As defense in depth, authorization should also be enforced or safely wrapped around Knowledges.search_files_by_id() so that future callers cannot accidentally bypass access control.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy