CVE-2026-54014 Open WebUI Path Traversal – File Access Vulnerability
Open WebUI, a self-hosted AI platform designed for offline operation, contains a path traversal flaw that allows authenticated users to read files outside the intended cache directory. The vulnerability stems from an incomplete validation check in the file serving logic that fails to properly isolate the cache folder from similarly-named sibling directories. An attacker with valid credentials can exploit directory name confusion to access restricted files. The issue has been patched in version 0.9.6.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 4.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses (CWE)
- CWE-22
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-23 / 2026-06-25
NVD description (verbatim)
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6, a path traversal vulnerability exists in open-webui's cache file serving endpoint that allows any authenticated user to read files from sibling directories outside the intended cache directory, by exploiting an incomplete startswith containment check that lacks a trailing path separator. The root cause is that serve_cache_file() in open_webui/main.py validates the resolved path with file_path.startswith(os.path.abspath(CACHE_DIR)) — without appending os.sep. This allows any path resolving to a sibling directory whose name begins with cache (e.g. cache_sibling, cache_backup, cached_models) to pass validation. This vulnerability is fixed in 0.9.6.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in the serve_cache_file() function within open_webui/main.py. The function validates requested file paths using file_path.startswith(os.path.abspath(CACHE_DIR)) without appending a trailing path separator (os.sep). This allows an attacker to craft requests that resolve to paths in sibling directories whose names begin with the cache directory string—for example, 'cache_sibling', 'cache_backup', or 'cached_models'—which would pass the incomplete startswith() check. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) classifies this flaw. Authentication is required, limiting exposure to users with valid credentials.
Business impact
Organizations deploying Open WebUI in offline environments face risk of sensitive data exposure through unauthorized file access. The vulnerability could allow insiders or compromised user accounts to exfiltrate configuration files, model data, or other non-cache assets stored on the same host. While the MEDIUM severity reflects the requirement for authentication, the potential scope of readable files depends on the deployment's data sensitivity and the breadth of sibling directories present. For production AI deployments, even authenticated access violations may trigger compliance concerns.
Affected systems
Open WebUI versions prior to 0.9.6 are affected. The vulnerability affects both fresh installations and existing deployments that have not yet upgraded. Self-hosted instances running on any operating system (Linux, macOS, Windows) are in scope, provided they serve the cache endpoint to authenticated users. Fully air-gapped deployments and instances with strict network isolation may face reduced practical risk, though the flaw remains present.
Exploitability
Exploitation requires valid authentication credentials, which moderately limits the attack surface. An authenticated user can bypass the path containment check by requesting files from sibling directories through crafted API calls to the cache file serving endpoint. No user interaction or special conditions are needed once authenticated. The straightforward nature of the validation flaw (a missing path separator) makes it low complexity to exploit for an attacker with access. Public disclosure of the root cause will likely prompt rapid weaponization in threat actor playbooks targeting Open WebUI deployments.
Remediation
Upgrade to Open WebUI version 0.9.6 or later, which corrects the path validation logic to include the trailing path separator and prevent sibling directory bypass. Prior to upgrading, organizations should audit file access logs for suspicious cache endpoint requests from authenticated users and review what sensitive files exist in sibling directories. Consider restricting the cache endpoint to trusted network segments or limiting user account creation as interim controls.
Patch guidance
Apply the upgrade to 0.9.6 as soon as possible following your standard change management procedures. The patch modifies the validation check to properly isolate the cache directory, eliminating the sibling directory bypass. Verify the upgrade through your deployment method (container image, package manager, or source installation) and confirm version number after restart. No breaking changes or data migration are indicated; the fix is a validation tightening.
Detection guidance
Monitor access logs for the cache file serving endpoint (/cache or similar routes depending on configuration) for patterns indicating directory traversal attempts, such as requests containing path traversal sequences or references to parent/sibling directories. Alert on authenticated users accessing cache endpoints with unusual frequency or from unexpected source IPs. File integrity monitoring on sibling directories can detect unauthorized reads. Intrusion detection signatures should cover attempts to resolve paths outside CACHE_DIR.
Why prioritize this
While CVSS 4.3 reflects the authentication requirement and confidentiality-only impact, the flaw is straightforward to exploit and affects all instances below 0.9.6. Prioritization should account for: (1) whether Open WebUI stores sensitive model data or configuration in sibling directories, (2) the trust level of your user base, and (3) compliance or contractual data protection obligations. Organizations running Open WebUI in production should treat this as a near-term patch target; development or non-critical instances can follow standard patching cycles.
Risk score, explained
CVSS 3.1 score of 4.3 (MEDIUM) reflects: Network vector (accessible remotely), Low attack complexity (straightforward path manipulation), but Login required (PR:L), resulting in reduced overall impact. Severity is constrained to Confidentiality (C:L) with no Integrity or Availability impact. The score appropriately captures that exploitation requires credentials; however, real-world risk depends on what files exist in sibling directories and how Open WebUI is deployed in your environment. Organizations storing high-sensitivity AI models or training data adjacent to the cache directory should weight the risk higher.
Frequently asked questions
Can an unauthenticated attacker exploit this vulnerability?
No. The vulnerability requires a valid user account and authentication to the Open WebUI instance. However, if your deployment allows open user registration or has weak credential practices, the effective barrier is lower.
What files can be read through this vulnerability?
Any file readable by the Open WebUI process in sibling directories whose names start with 'cache' (e.g., cache_backup, cached_models, cache_sibling). The attacker cannot read arbitrary files on the filesystem, only those in confusingly-named sibling folders. Your actual exposure depends on what directories and files you have stored alongside the cache directory.
Is there a workaround if we cannot upgrade immediately?
Restrict network access to the cache serving endpoint to trusted IPs or segments. Additionally, audit and relocate any sensitive files from sibling directories whose names begin with 'cache' to unrelated directory names. These are temporary mitigations; upgrading to 0.9.6 is the proper fix.
Does this vulnerability affect air-gapped or offline deployments differently?
The vulnerability itself exists regardless of network isolation. However, offline deployments may face lower operational risk if there are fewer attack vectors for initial compromise. Nonetheless, insider threats and lateral movement within the same network would still pose risk. Patch for completeness and defense-in-depth.
This analysis is provided for informational purposes by SEC.co and reflects publicly available information as of the publication date. CVSS scores, version numbers, and advisory dates are sourced from official vulnerability disclosures and vendor advisories. Organizations should verify patch applicability and upgrade paths against their specific Open WebUI deployment configuration and consult the official Open WebUI release notes. No exploit code or detailed attack steps are provided in this advisory. This document does not constitute professional security advice; engage qualified security professionals to assess risk in your specific environment. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-54017HIGHOpen WebUI Terminal Proxy Path Traversal (v0.9.6 Fix)
- CVE-2018-25393MEDIUMNavigate CMS 2.8.5 Path Traversal Vulnerability (CVSS 6.5)
- CVE-2018-25421MEDIUMOpen STA Manager 2.3 Path Traversal File Download Vulnerability
- CVE-2019-25734MEDIUMContact Form by WD CSRF & Local File Inclusion Vulnerability
- CVE-2019-25740MEDIUMJoomla com_jsjobs Arbitrary File Deletion Vulnerability
- CVE-2022-50953MEDIUMWordPress admin-word-count-column Plugin Local File Read Vulnerability
- CVE-2024-47263MEDIUMSynology Hyper Backup Path Traversal – Admin Privilege Required
- CVE-2024-47273MEDIUMSynology Hyper Backup Path Traversal Vulnerability (4.3 MEDIUM)