Description
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6, POST /api/chat/completions accepts an image_url.url value that, when it does NOT start with http://, https://, or data:image/, is interpreted as a file id and resolved against the global file table with no ownership check. an authenticated user can therefore set image_url.url to another user's file id, the server reads that file from disk, base64-encodes it, and injects the data URI into the LLM request. the user then prompts the LLM to describe / OCR the file and reads the content back. This vulnerability is fixed in 0.9.6.
Published: 2026-06-23
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Open WebUI is a self‑hosted AI platform that operates entirely offline. In versions earlier than 0.9.6, the POST /api/chat/completions endpoint processes an image_url.url field. When the value does not begin with http://, https://, or data:image/, the service treats it as a file identifier and looks it up in the global file table without verifying ownership. An authenticated user can therefore supply another user’s file ID, causing the server to read the file from disk, encode it in base64, and inject the resulting data URI into the LLM request. The model can then be prompted to describe or OCR the file, and the returned information exposes the file contents to the attacker. The issue is fixed in 0.9.6 and represents CWE‑639, insufficient authorization checks that allow information disclosure. The CVE description was recently updated; review the advisory for the latest details.

Affected Systems

The affected product is Open WebUI from the open‑webui organization. The vulnerability exists in any deployment running a version older than 0.9.6, where the /api/chat/completions endpoint processes image_url.url without proper ownership validation.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity vulnerability. EPSS information is not available, and the issue is not listed in CISA KEV, suggesting that public exploitation is not yet widespread. The exploit requires an authenticated session to send a crafted POST request to /api/chat/completions; based on the description, it is inferred that the attacker must be able to authenticate to the service, after which the attacker can read files belonging to other users by supplying their file identifiers.

Generated by OpenCVE AI on June 24, 2026 at 10:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Open WebUI to version 0.9.6 or later to apply the fix that enforces ownership checks for image_url identifiers.
  • If an immediate upgrade is unavailable, limit authenticated users to only access files they own by implementing stricter file‑table access controls or rejecting image_url URLs that reference another user’s file ID.
  • Validate the image_url field to allow only strings beginning with http://, https://, or data:image/, rejecting all other values to prevent the misuse of the file‑ID path.

Generated by OpenCVE AI on June 24, 2026 at 10:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-wch8-mhj5-9frg Open WebUI: Cross-user file disclosure via /api/chat/completions image_url field
History

Tue, 23 Jun 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui

Tue, 23 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Description Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6, POST /api/chat/completions accepts an image_url.url value that, when it does NOT start with http://, https://, or data:image/, is interpreted as a file id and resolved against the global file table with no ownership check. an authenticated user can therefore set image_url.url to another user's file id, the server reads that file from disk, base64-encodes it, and injects the data URI into the LLM request. the user then prompts the LLM to describe / OCR the file and reads the content back. This vulnerability is fixed in 0.9.6.
Title Open WebUI: Cross-user file disclosure via /api/chat/completions image_url field
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Open-webui Open-webui
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-23T16:49:13.622Z

Reserved: 2026-06-11T16:34:11.636Z

Link: CVE-2026-54009

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T11:00:13Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key