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.
Risk Assessment
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.
Affected Systems
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| open-webui | pip | <= 0.3.8 | No patch |
Do you use open-webui? You're affected.
Severity & Risk
Attack Surface
Recommended Action
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.
CISA SSVC Assessment
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
Classification
Compliance Impact
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.14%.
Technical Details
NVD Description
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)
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-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-2025-65958 8.5 open-webui: SSRF allows internal network access
Same package: open-webui CVE-2024-7990 8.4 open-webui: Stored XSS enables admin session hijack
Same package: open-webui
AI Threat Alert