CVE-2024-7041: open-webui Insecure Direct Object Reference (IDOR) vulnerability
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-webuiDocker 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
Read for this analysis:
- https://nvd.nist.gov/vuln/detail/CVE-2024-7041
- https://huntr.com/bounties/6855227f-1237-47b8-8d37-29aad7ddec3a
- https://github.com/open-webui/open-webui/blob/main/backend/apps/webui/routers/memories.py#L71
- https://github.com/pypa/advisory-database/tree/main/vulns/open-webui/PYSEC-2026-1744.yaml
- https://pypi.org/project/open-webui
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 entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
