Browse / AI Framework and Platform Flaws / CVE-2024-7041
open-webui Insecure Direct Object Reference (IDOR) vulnerability
- Class
- AI Framework and Platform Flaws (filed by a model that read the source)
- Technique
- Authentication and access control
- Also involves
- Agent Context and Memory Poisoning
- Affected
- open-webui (PyPI)
- Gets past
- Authorisation check
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- EPSS
- 0.4% chance of exploitation in 30 days
How it works, in short
The memory update endpoint checks only that a memory ID exists, not that it belongs to the caller, so users can rewrite others' stored memories. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-7041
- https://github.com/open-webui/open-webui
- 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://huntr.com/bounties/6855227f-1237-47b8-8d37-29aad7ddec3a
- https://pypi.org/project/open-webui
Source: GitHub Advisory Database, used under CC BY 4.0.