{"id":"CVE-2024-7806","summary":"Remote Code Execution by Non-Admin Users via CSRF in open-webui/open-webui","details":"A vulnerability in open-webui/open-webui versions \u003c= 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.","aliases":["GHSA-85jc-8h5p-8vw8","PYSEC-2026-1724"],"modified":"2026-08-12T03:51:20.939138897Z","published":"2025-03-20T10:11:05.970Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7806.json","cna_assigner":"@huntr_ai","cwe_ids":["CWE-352"]},"references":[{"type":"WEB","url":"https://huntr.com/bounties/9350a68d-5f33-4b3d-988b-81e778160ab8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7806.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7806"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/open-webui/open-webui","events":[{"introduced":"0"},{"last_affected":"9bcd4ce5c0a01af68c0d2aa44554a68bb741c61b"}],"database_specific":{"cpe":"cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"0.3.8"}],"source":"CPE_RANGE"}}],"versions":["v0.3.8","v0.3.7","v0.3.6","v0.3.5","v0.3.4","v0.3.3","v0.3.2","v0.3.1","v0.3.0","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.2.0","v0.1.125","v0.1.124","v0.1.123","v0.1.122","v0.1.114","v0.1.121","v0.1.120","v0.1.119","v0.1.118","v0.1.117","v0.1.116","v0.1.115","v0.1.108","v0.1.113","v0.1.112","v0.1.111","v0.1.110","v0.1.109","v0.1.107","v0.1.106","v0.1.105","v0.1.104","v0.1.103","v0.1.102"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-7806.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"}]}