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

CVE-2024-7041: open-webui Insecure Direct Object Reference (IDOR) vulnerability

mediumCVSS 4.0 5.7 · 3.0 6.5GHSA-xcvc-5hgv-phqg

Open WebUI's memory update endpoint, /api/v1/memories/{id}/update, does not check that the memory belongs to the caller. Any logged-in user can edit other users' memories by changing the id. The flaw was reported against 0.3.8; versions below 0.6.3 are affected and 0.6.3 fixes it.

Published Oct 9, 2024 · Updated Oct 26, 2026 · Analysis Nov 1, 2026

What an attacker can do

Open WebUI stores per-user memories, short facts the assistant is given about a user in later chats. The update route takes a memory id from the URL. In affected versions it authorizes the request by login alone, not by whether the memory belongs to that user. This is an insecure direct object reference (CWE-639).

An attacker needs a normal account (PR:L), network access and a guess or enumeration of another user's memory id. No user interaction is needed. The result is high integrity impact and no direct confidentiality or availability impact in the CVSS vector.

In practice, someone with a low-privilege account on a shared instance can plant or rewrite text that the victim's assistant treats as trusted personal context. That can steer answers, insert misleading instructions into the victim's chats, or poison the context used with tools. The advisory does not claim reads of other users' memories, only edits.

Who is affected

The pip package open-webui, all versions below 0.6.3. The reporter tested 0.3.8. Instances with more than one user account are exposed; a single-user install has little exposure. Check the version:

pip show open-webui

Docker users can read it under settings, About.

open-webui

Ecosystem
PyPI
Affected
< 0.6.3
Fixed in
0.6.3
Check
pip show open-webui

How to fix it

Upgrade to open-webui 0.6.3.

pip install --upgrade "open-webui>=0.6.3"

For Docker, pull a newer image tag and recreate the container. The advisory names no workaround.

How to tell if you were hit

Review access logs for POST requests to /api/v1/memories/ ids ending in /update and compare the caller's session to the memory owner where logs allow. Look for one account sending many update requests with sequential ids. Inspect users' stored memories for text they did not write, such as instructions or links.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

An Insecure Direct Object Reference (IDOR) vulnerability exists in open-webui/open-webui version v0.3.8. The vulnerability occurs in the API endpoint http://0.0.0.0:3000/api/v1/memories/{id}/update, where the decentralization design is flawed, allowing attackers to edit other users' memories without proper authorization.

Credited to Classic298.

Questions

Is Open WebUI 0.3.8 affected by CVE-2024-7041?

Yes. It is the version in the report. Everything below 0.6.3 is listed as vulnerable.

Does the attacker need an account?

Yes. The CVSS vector requires low privileges, meaning an authenticated user. The advisory describes no unauthenticated path.

Can the flaw expose other users' memories?

The advisory describes editing only. The vector rates confidentiality impact as none.

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