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.
{
"severity": "MODERATE",
"nvd_published_at": "2024-10-09T20:15:09Z",
"github_reviewed_at": "2024-10-09T22:09:16Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-22"
]
}