Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Unauthenticated remote endpoint (PR:N/AC:L) leaks API keys (C:H) and SSRF reaches internal systems, changing scope (S:C); config write gives limited integrity impact (I:L).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
mem0 contains unauthenticated config API endpoints that expose LLM API keys in plaintext and allow server-side request forgery via attacker-controlled ollama_base_url parameter. Unauthenticated attackers can retrieve stored secrets like OpenAI API keys via GET /api/v1/config/ or trigger SSRF attacks by setting ollama_base_url to internal addresses like cloud IMDS via PUT /api/v1/config/mem0/llm endpoint.
AnalysisAI
Sensitive information disclosure and server-side request forgery in mem0's self-hosted server let unauthenticated remote attackers steal stored LLM provider credentials and pivot into internal infrastructure. Because the /api/v1/config/ endpoints require no authentication (CWE-306), an attacker can GET plaintext secrets such as OpenAI API keys and PUT a malicious ollama_base_url to coerce the server into requesting internal-only addresses like cloud instance metadata (IMDS). CVSS 4.0 rates this 9.2 (Critical); there is no public exploit identified at time of analysis, but the attack is trivial and reported by VulnCheck.
Technical ContextAI
mem0 (mem0ai/mem0) is an open-source memory layer for AI agents that persists and retrieves contextual memories, backed by configurable LLM and embedding providers. The vulnerable component is the server's configuration REST API, which exposes GET /api/v1/config/ and PUT /api/v1/config/mem0/llm without an authentication or authorization check - the CWE-306 (Missing Authentication for Critical Function) root cause. The config store holds provider API keys in plaintext, so a read of the endpoint returns live credentials. Separately, the llm config accepts an ollama_base_url value that the server subsequently uses to make outbound HTTP requests; with no allowlist or SSRF guard, an attacker-supplied internal URL (e.g., http://169.254.169.254/ cloud IMDS) is fetched by the server, classic SSRF against link-local and internal endpoints.
RemediationAI
Upstream fix available (PR/commit); a released patched version is not independently confirmed from the available data - apply the vendor fix in commit a3154d59e52386d4e1189c1f5f44819868f76514 (https://github.com/mem0ai/mem0/commit/a3154d59e52386d4e1189c1f5f44819868f76514) by upgrading to a build that includes it, and consult the VulnCheck advisory and issue #6081 for guidance. Until patched, do not expose the mem0 config API to untrusted networks: bind the server to localhost or place it behind an authenticating reverse proxy, and restrict or block access to the /api/v1/config/ routes at the proxy/firewall (this prevents credential reads and config writes but breaks any legitimate remote config management). Because SSRF targets cloud metadata, enforce IMDSv2 and block egress from the mem0 host to 169.254.169.254 and other internal ranges (side effect: any intended internal integrations must be explicitly allowlisted). As a precaution, rotate any LLM/provider API keys that were stored in an exposed instance, since they may already be compromised.
Authorization bypass in Mem0 self-hosted server versions through 0.2.8 allows any authenticated holder of a distributed
Unauthenticated data theft, tampering, and denial-of-service affects mem0's OpenMemory API server (openmemory/api compon
Unauthenticated deletion of arbitrary memory records in mem0 1.0.0 allows remote attackers to remove any database entry
mem0 1.0.0 server allows unauthenticated remote attackers to trigger memory reset and table re-creation via unprotected
Unsafe pickle deserialization in mem0 up to version 1.0.11 allows authenticated remote attackers to execute arbitrary co
mem0 1.0.0 server accepts unauthenticated POST requests to the /memories endpoint, allowing remote attackers to inject a
Same technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-42106
GHSA-225m-p565-9h68