8.8
CWE
352
Advisory Published
Advisory Published
Updated

CVE-2024-7806: Remote Code Execution by Non-Admin Users via CSRF in open-webui/open-webui

First published: Thu Mar 20 2025(Updated: )

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.

Credit: security@huntr.dev

Affected SoftwareAffected VersionHow to fix
open-webui<=0.3.8
pip/open-webui<0.3.33
0.3.33
OpenWrt libuci<=0.3.8
<=0.3.8

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-7806?

    CVE-2024-7806 is classified as a critical vulnerability due to its capability to allow remote code execution.

  • How do I fix CVE-2024-7806?

    To fix CVE-2024-7806, upgrade open-webui to version 0.3.9 or later, which implements CSRF tokens and adjusts cookie attributes.

  • Who is affected by CVE-2024-7806?

    CVE-2024-7806 affects all users of open-webui versions 0.3.8 and earlier.

  • What types of attacks can occur due to CVE-2024-7806?

    CVE-2024-7806 can facilitate remote code execution attacks, allowing attackers to execute arbitrary code on the server.

  • Are there any known exploits for CVE-2024-7806?

    Yes, there are known exploits for CVE-2024-7806 that leverage the CSRF vulnerabilities to execute unauthorized commands.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203