CVE-2024-7806
CVE-2024-7806 · Open WebUI Cross-Site Request Forgery (CSRF) Vulnerability
This page contains facts from public vulnerability sources. Check the original advisory before updating.
A vulnerability in open-webui/open-webui versions <= 0.3.8 allows remote code execution by non-admin users via Cross-Site Request Forgery (CSRF). The application uses cookies with the SameSite attribute set to lax for authentication and lacks CSRF tokens. This allows an attacker to craft a malicious HTML that, when accessed by a victim, can modify the Python code of an existing pipeline and execute arbitrary code with the victim's privileges.
CVSS 8.0 · High · Fix available
- 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.10
- 0.3.12
- 0.3.13
- 0.3.14
- 0.3.15
- 0.3.16
- 0.3.17
- 0.3.17.dev2
- 0.3.17.dev3
- 0.3.17.dev4
- 0.3.17.dev5
- 0.3.18
- 0.3.19
- 0.3.2
- 0.3.20
- 0.3.21
- 0.3.22
- 0.3.23
- 0.3.24
- 0.3.25
- 0.3.26
- 0.3.27
- 0.3.27.dev1
- 0.3.27.dev2
- 0.3.27.dev3
- 0.3.28
- 0.3.29
- 0.3.3
- 0.3.30
- 0.3.30.dev1
- 0.3.30.dev2
- 0.3.31
- 0.3.31.dev1
- 0.3.32
- 0.3.33.dev1
- 0.3.4
- 0.3.5
- 0.3.6
- 0.3.7
- 0.3.8
- 0.3.9
- Affected ranges
- ECOSYSTEM: < 0.3.33
Update to 0.3.33
Original sources
- https://nvd.nist.gov/vuln/detail/CVE-2024-7806
- https://github.com/open-webui/open-webui/pull/6054
- https://github.com/open-webui/open-webui/commit/7e253df17593bc12dc5cc89d28703675f05b0158
- https://github.com/open-webui/open-webui
- https://github.com/open-webui/open-webui/blob/1d20c27553f019477f01d7233ebe40b11d31e479/backend/main.py#L892-L920
- https://huntr.com/bounties/9350a68d-5f33-4b3d-988b-81e778160ab8
- https://pypi.org/project/open-webui
- https://github.com/advisories/GHSA-85jc-8h5p-8vw8
- https://osv.dev/vulnerability/PYSEC-2026-1724