Browse / AI Framework and Platform Flaws / CVE-2024-7037
open-webui allows writing and deleting arbitrary files
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2024-7037
- https://github.com/open-webui/open-webui
- https://github.com/open-webui/open-webui/blob/main/backend/main.py#L1513
- https://huntr.com/bounties/8508db68-9c99-4b1c-828c-e1bfcacfb847
Source: GitHub Advisory Database, used under CC BY 4.0.