CVE-2024-7037
CVE-2024-7037 · open-webui allows writing and deleting arbitrary files
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.0 · High
- Published
- Updated
Stack: python
Affected products and versions
open-webui PyPI
- Versions
- 0.1.124
- 0.1.125
- 0.2.0
- 0.2.1
- 0.2.2
- 0.2.3
- 0.2.4
- 0.2.5
- 0.3.0
- 0.3.1
- 0.3.2
- 0.3.3
- 0.3.4
- 0.3.5
- 0.3.6
- 0.3.7
- 0.3.8
- Affected ranges
- ECOSYSTEM: ≤ 0.3.8
No fix published
Original sources
- 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
- https://pypi.org/project/open-webui
- https://github.com/advisories/GHSA-54f4-v6v9-9q82
- https://osv.dev/vulnerability/PYSEC-2026-1721