MISFIRE

Browse / AI Framework and Platform Flaws / CVE-2024-7037

open-webui allows writing and deleting arbitrary files

CVE-2024-7037 ยท 2024-10-09 moderate

Class
AI Framework and Platform Flaws (filed by a model that read the source)
Technique
Path traversal and file access
Affected
open-webui (PyPI)
CVSS
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H

How it works, in short

The pipelines upload endpoint joins an unsanitised client filename onto the cache directory, allowing files outside it to be written or deleted. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.