CVE-2026-44565: Open webui Path Traversal Vulnerability

HIGH
Advisory Identifier: GHSA-j3fw-wc48-29g3
CVSS 8.1
CWE-22
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-44565
GHSA Identifier GHSA-j3fw-wc48-29g3
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Open webui
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (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.

open-webui fixed: 0.6.10
pip install open-webui>=0.6.10
Verify Direct and Transitive Dependencies

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

** CONFIDENTIAL ** Vulnerability Disclosure Analysis Documentation ----------------------------------------------- Vulnerability Details --------------------- 1. Discoverer: Taylor Pennington of KoreLogic, Inc. 2. Date Submitted: June 11, 2024 3. Title: Open WebUI Arbitrary File Write, Delete via Path Traversal 4. High-level Summary: Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traversal vulnerability. After the file is written, it is deleted. 5. Affected Vendor: Open WebUI 6. Affected Product(s): Open WebUI (Formerly Ollama WebUI) 7. Affected Version(s): 0.1.105 8. Platform/OS: Debian GNU/Linux 12 (bookworm) 9. Vector: HTTP web interface 10. CWE: 22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') 11. Technical Analysis: When attaching files to a prompt by clicking the plus sign (+) on the left of the message input box when using the Open WebUI HTTP interface, the file is uploaded to a static upload directory. If the file is an audio file it will be sent to a second API that will attempt to transcribe it. The name of the file is derived from the original HTTP upload request and is not validated or sanitized. This allows for users to upload files with names containing dot-segments in the file path and traverse out of the intended uploads directory. Effectively, users can upload files anywhere on the filesystem the user running the web server has permission. This can be visualized by examining the python code for the "/ollama/models/upload" API route (https://github.com/open-webui/open-webui/blob/0399a69b73de9789c4221acedea70d528e1346c4/backend/apps/ollama/main.py#L1063-L1127): ``` def upload_model(file: UploadFile = File(...), url_idx: Optional[int] = None): if url_idx == None: url_idx = 0 ollama_url = app.state.OLLAMA_BASE_URLS[url_idx] file_path = f"{UPLOAD_DIR}/{file.filename}" # Save file in chunks with open(file_path, "wb+") as f: for chunk in file.file: f.write(chunk) def file_process_stream(): nonlocal ollama_url total_size = os.path.getsize(file_path) chunk_size = 1024 * 1024 try: with open(file_path, "rb") as f: total = 0 done = False while not done: chunk = f.read(chunk_size) if not chunk: done = True continue total += len(chunk) progress = round((total / total_size) * 100, 2) res = { "progress": progress, "total": total_size, "completed": total, } yield f"data: {json.dumps(res)}\n\n" if done: f.seek(0) hashed = calculate_sha256(f) f.seek(0) url = f"{ollama_url}/api/blobs/sha256:{hashed}" response = requests.post(url, data=f) if response.ok: res = { "done": done, "blob": f"sha256:{hashed}", "name": file.filename, } os.remove(file_path) yield f"data: {json.dumps(res)}\n\n" else: raise Exception( "Ollama: Could not create blob, Please try again." ) except Exception as e: res = {"error": str(e)} yield f"data: {json.dumps(res)}\n\n" return StreamingResponse(file_process_stream(), media_type="text/event-stream") ``` The model is temporarily written to disk in chunks and then the data is sent to another internal API. Once the file is successfully passed, the file is removed from the disk. Note line 1116, `os.remove(file_path)`. This has an affect of stomping on and ultimately deleting any file that the user of the open-webui service has permissions over. It may be possible to continue sending chunks to the file slowly and create a race condition however, this was not validated. 12. Proof-of-Concept: First, create a file under the `/tmp` directory named `DELETE_ME` while logged in as the user account of the web application or chown the file to be owned by the open-webui user. ``` # su ollama # touch /tmp/DELETE_ME ``` Execute the following cURL command after replacing the exported `JWT` value for a valid user session: ``` export JWT="JWT_HERE"; curl -s -X $'POST' \ -H $'Host: openwebui.example.com' -H $'Content-Length: 206' -H "Authorization: Bearer ${JWT}" -H $'Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ --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--' \ $'https://openwebui.example.com/ollama/models/upload' ``` Verify that `/tmp/DELETE_ME` has been deleted. 13. Mitigation Recommendation: Modify line 1070 (https://github.com/open-webui/open-webui/blob/0399a69b73de9789c4221acedea70d528e1346c4/backend/apps/ollama/main.py#L1070) to: ``` filename = os.path.basename(file.filename) file_path = f"{UPLOAD_DIR}/{filename}" ```

CVE-2026-44565 Affected Open webui Versions

1 component(s)
Fixed Versions:
0.6.10
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?
CVE-2026-44565 is a security vulnerability in Open webui involving Open WebUI Arbitrary File Write, Delete via Path Traversal under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Open webui versions are affected?
Affected versions include releases prior to 0.6.10 across affected packages: open-webui.
What version fixes CVE-2026-44565?
Upgrading to 0.6.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is open-webui affected?
Yes, open-webui is affected in releases prior to 0.6.10. Upgrade your dependency to 0.6.10 or later.
What is the CVSS score of CVE-2026-44565?
CVE-2026-44565 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2026-44565?
CVE-2026-44565 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check PyPI dependencies for CVE-2026-44565?
Run the dependency tree command: 'pip show open-webui'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}