---
id: "CVE-2024-7041"
kind: "vulnerability"
aliases: ["CVE-2024-7041", "GHSA-xcvc-5hgv-phqg"]
title: "open-webui Insecure Direct Object Reference (IDOR) vulnerability"
severity: "medium"
cvss: 6.5
epss: 0.00367
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "open-webui", "fixed": ["0.6.3"], "affected": "< 0.6.3", "ecosystem": "pypi"}, {"name": "openwebui open webui", "fixed": [], "affected": "= 0.3.8", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["ai-apps", "ai-tooling", "cwe-250", "cwe-639", "open-webui", "python", "self-hosted"]
not_affected_if: ["single-user", "version-0.6.3-or-later"]
published_at: "2024-10-09T20:15:09+00:00"
first_seen_at: "2026-10-26T15:12:52+00:00"
updated_at: "2026-10-26T16:02:26+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-xcvc-5hgv-phqg", "first_seen_at": "2026-10-26T15:12:52+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-7041", "first_seen_at": "2026-10-26T16:02:26+00:00"}]
---

# open-webui Insecure Direct Object Reference (IDOR) vulnerability

Open WebUI's memory update endpoint does not check that the caller owns the memory, so a logged-in user can change memories belonging to other users. An attacker gets write access to other users' stored memory content.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:open-webui affected < 0.6.3 fixed 0.6.3
- vendor:openwebui open webui affected = 0.3.8 fixed ?

## How to check

- Check the installed version with `pip show open-webui` and compare it to `0.6.3`.
- Review the memory update route under `/api/v1/memories/{id}/update` to see whether it verifies the memory belongs to the requesting user.

## Fix

- Upgrade `open-webui` to `0.6.3` or later.

## Timeline

- 2026-10-26T15:12:52+00:00 ghsa https://github.com/advisories/GHSA-xcvc-5hgv-phqg
- 2026-10-26T16:02:26+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-7041

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
