open-webui allows writing and deleting arbitrary files
Date: 2024-10
Affected: pip/open-webui
Attack vector: path-traversal
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2024-7037
CWE: CWE-22
CVSS: 6.5 (CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H)

In version v0.3.8 of open-webui/open-webui, the endpoint /api/pipelines/upload is vulnerable to arbitrary file write and delete due to unsanitized file.filename concatenation with CACHE_DIR. This vulnerability allows attackers to overwrite and delete system files, potentially leading to remote code execution.


Mitigations:

Architectural layers (MAESTRO):