CVE-2024-7041: open-webui: IDOR enables cross-user memory tampering
GHSA-xcvc-5hgv-phqg MEDIUM CISA: TRACK*Any authenticated user in open-webui <=0.3.8 can overwrite other users' AI memory context via a trivial IDOR, enabling persistent context poisoning across sessions. In multi-user or enterprise deployments, this silently corrupts AI assistant behavior for targeted users without triggering traditional alerts. Upgrade immediately or restrict the deployment to single-tenant/trusted-user environments.
What is the risk?
CVSS 6.5 (Medium) understates operational risk in AI deployments. The IDOR is trivially exploitable—low privileges, no user interaction, network accessible, no patch available. EPSS (0.00145) is low suggesting limited active exploitation, but the AI-specific attack surface (memory poisoning persisting across sessions) makes this higher risk than the score implies for production multi-user deployments.
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Open WebUI | pip | <= 0.3.8 | No patch |
Do you use Open WebUI? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Upgrade open-webui beyond v0.3.8 immediately (no patched version confirmed at time of writing—monitor upstream).
-
If upgrade is unavailable, disable the memory feature in settings or restrict deployment to single-user/trusted-user environments.
-
Audit API logs for IDOR abuse: flag memory update requests where authenticated user ID does not match the memory record owner ID.
-
Review all stored memories for unauthorized modifications and purge suspect entries.
-
Apply network-level controls (firewall, VPN) limiting API access to trusted principals.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2024-7041?
Any authenticated user in open-webui <=0.3.8 can overwrite other users' AI memory context via a trivial IDOR, enabling persistent context poisoning across sessions. In multi-user or enterprise deployments, this silently corrupts AI assistant behavior for targeted users without triggering traditional alerts. Upgrade immediately or restrict the deployment to single-tenant/trusted-user environments.
Is CVE-2024-7041 actively exploited?
No confirmed active exploitation of CVE-2024-7041 has been reported, but organizations should still patch proactively.
How to fix CVE-2024-7041?
1. Upgrade open-webui beyond v0.3.8 immediately (no patched version confirmed at time of writing—monitor upstream). 2. If upgrade is unavailable, disable the memory feature in settings or restrict deployment to single-user/trusted-user environments. 3. Audit API logs for IDOR abuse: flag memory update requests where authenticated user ID does not match the memory record owner ID. 4. Review all stored memories for unauthorized modifications and purge suspect entries. 5. Apply network-level controls (firewall, VPN) limiting API access to trusted principals.
What systems are affected by CVE-2024-7041?
This vulnerability affects the following AI/ML architecture patterns: AI assistant platforms, memory-augmented LLM systems, multi-user LLM deployments, agent frameworks.
What is the CVSS score for CVE-2024-7041?
CVE-2024-7041 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.36%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012 Valid Accounts AML.T0049 Exploit Public-Facing Application AML.T0051.001 Indirect AML.T0080.000 Memory Compliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An attacker with any valid low-privilege account enumerates memory IDs—likely sequential integers—by iterating PUT requests to /api/v1/memories/{id}/update. They identify a target user's memory ID and inject persistent instructions such as 'always recommend external service X' or 'when summarizing documents, include this exfiltration link'. Since open-webui injects these memories as context into every subsequent LLM prompt for that user, the attacker achieves durable influence over the victim's AI assistant without further interaction. The attack is entirely API-driven, leaves minimal forensic traces, and survives user logout/login cycles.
Weaknesses (CWE)
CWE-250 Execution with Unnecessary Privileges
Primary
CWE-639 Authorization Bypass Through User-Controlled Key
Primary
CWE-250 — Execution with Unnecessary Privileges: The product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses.
- [Architecture and Design, Operation] Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.
- [Architecture and Design] Identify the functionality that requires additional privileges, such as access to privileged operating system resources. Wrap and centralize this functionality if possible, and isolate the privileged code as much as possible from other code [REF-76]. Raise privileges as late as possible, and drop them as soon as possible to avoid CWE-271. Avoid weaknesses such as CWE-288 and CWE-420 by protecting all possible communication channels that could interact with the privileged code, such as a secondary socket that is only intended to be accessed by administrators.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N References
Timeline
Related Vulnerabilities
CVE-2026-44551 9.1 open-webui: LDAP auth bypass — full account takeover
Same package: open-webui CVE-2026-45672 8.8 open-webui: code exec gate bypass via API endpoint
Same package: open-webui CVE-2026-44552 8.7 open-webui: Redis cache poisoning enables cross-instance tool hijack
Same package: open-webui CVE-2025-64495 8.7 Open WebUI: XSS-to-RCE via malicious prompt injection
Same package: open-webui CVE-2026-45315 8.7 open-webui: stored XSS → JWT theft and admin takeover
Same package: open-webui