NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2024-7045: Open WebUI Has Improper Access Control Leading to Arbitrary Prompt Read

mediumCVSS 3.0 4.3GHSA-c7fq-p62p-wvpc

Open WebUI 0.3.8 and earlier does not check for admin rights on its prompts API. Any logged-in user can list every prompt the admin created, then read any of them by ID. The advisory names no patched version.

Published Mar 20, 2025 · Updated Oct 15, 2025 · Analysis Nov 1, 2026

What an attacker can do

Two routes lack an authorization check. A call to /api/v1/prompts/ returns all prompts created by the admin, including their ID values. The attacker then calls /api/v1/prompts/command/{command_id} with those IDs to fetch the content of arbitrary prompts.

The attacker needs only a low-privilege account and network access to the instance. No user interaction is needed. The impact is limited to confidentiality, which is why the score is 4.3.

In practice the admin's prompts may hold internal instructions, system prompt text, business logic, or pasted secrets such as API keys or customer data. Any user who can sign in can read them. Treat saved prompts on a shared instance as visible to all users until the check is added.

Who is affected

open-webui (pip) 0.3.8 and earlier. The advisory lists no patched release. Check the installed version:

pip show open-webui

Exposed instances are those where users other than the admin can sign in, including instances with open sign-up.

open-webui

Ecosystem
PyPI
Affected
<= 0.3.8
Fixed in
No patched version yet
Check
pip show open-webui

How to fix it

The advisory gives no patched version and no workaround. Look at the Open WebUI release notes for a version newer than 0.3.8 and upgrade.

Until then, disable open sign-up, remove accounts you do not trust, and do not store secrets in saved prompts. Rotate any credential that has been placed in a prompt. A reverse proxy rule that blocks /api/v1/prompts/ for non-admin users is a stopgap you would have to build yourself; the sources do not describe one.

How to tell if you were hit

Search access logs for requests to /api/v1/prompts/ and /api/v1/prompts/command/ made by non-admin accounts, especially a list call followed by many command lookups in a short window. Compare the accounts making those calls with your list of expected prompt users.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

In version v0.3.8 of open-webui/open-webui, improper access control vulnerabilities allow an attacker to view any prompts. The application does not verify whether the attacker is an administrator, allowing the attacker to directly call the /api/v1/prompts/ interface to retrieve all prompt information created by the admin, which includes the ID values. Subsequently, the attacker can exploit the /api/v1/prompts/command/{command_id} interface to obtain arbitrary prompt information.

Questions

Which endpoints does CVE-2024-7045 involve?

/api/v1/prompts/ lists the admin's prompts with IDs, and /api/v1/prompts/command/{command_id} returns a prompt's content. Neither verifies that the caller is an administrator.

Does the attacker need an account?

Yes, a low-privilege one. The CVSS vector requires low privileges and no user interaction, over the network.

Is a patch available?

The advisory lists no patched version. Check the project's release notes for a release after 0.3.8.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Open WebUI vulnerabilities

All Open WebUI entries