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

Published 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.

Other sources

Rejected reason: This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.

NVD

Affected Software

3 affected componentsFixes available
open-webui open-webui<=0.3.8
pip/open-webui<0.3.33
0.3.33
openwebui Open WebUI<=0.3.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/open-webui to a version that resolves this vulnerability.

    Fixed in 0.3.33
  2. Configuration

    Change the authentication cookie SameSite attribute from lax to strict (or otherwise not-lax) to reduce CSRF risk.

    open-webui/open-webui SameSite attribute for authentication cookies = strict (or at least not lax)
  3. Configuration

    Enable/require CSRF tokens for requests that modify pipeline code (state-changing actions), since the application currently lacks CSRF tokens.

    open-webui/open-webui CSRF tokens for state-changing requests = enabled

Event History

Mar 20, 2025
CVE Published
via MITRE·10:11 AM
Rejected
via MITRE·10:11 AM
Data Sourced
via NVD·10:15 AM
Description
Advisory Published
via GitHub·12:32 PM
Aug 31, 2026
Rejected
via MITRE·03:11 PM

Frequently Asked Questions

1

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.

2

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.

3

Who is affected by CVE-2024-7806?

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

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203