CVE-2026-59706
CriticalCVSS 9.3Exploitation Probability (EPSS)
Low risk17th percentile - higher than 17% of all known CVEs
Summary
The vulnerability in mem0 exposes unauthenticated config API endpoints that disclose LLM API keys in plaintext and allow server-side request forgery (SSRF) via the 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 such as cloud IMDS via PUT /api/v1/config/mem0/llm endpoint.
Risk Assessment
The risk includes leakage of sensitive LLM API keys and the ability to perform SSRF attacks on internal cloud resources, potentially leading to unauthorized data access and further infrastructure compromise.
Recommendation
Immediately implement authentication for all config API endpoints, remove or secure the GET /api/v1/config/ and PUT /api/v1/config/mem0/llm endpoints, and restrict the ollama_base_url parameter to trusted values.
Other vulnerabilities in mem0
See all- CVE-2026-31240High
The mem0 1.0.0 server lacks authentication and authorization controls for its memory management API endpoints. Critical functions such as updating memory records are exposed without any verification of the requester's identity or permissions.
- CVE-2026-59705Critical
The openmemory/api component in mem0 contains an unauthenticated access vulnerability that allows unauthenticated attackers to read, write, and delete arbitrary user memories by accessing API routers registered without authentication middleware. Attackers can supply arbitrary user_id parameters or directly access memory retrieval endpoints to expose private memory content, or invoke pause endpoints with global_pause=true to cause denial-of-service across all users.
- CVE-2026-31242Critical
The mem0 v1.0.0 server lacks authentication and authorization controls for its memory reset functionality accessible via the DELETE /memories endpoint. An unauthenticated attacker can send a DELETE request that triggers a reset operation, leading to the execution of a DROP TABLE SQL statement.
- CVE-2026-116575Medium
Mem0, persistent memory infrastructure for AI agents, prior to Python SDK 2.0.18 and TypeScript SDK 3.1.6 joins caller-controlled user_id, agent_id and run_id values using unescaped & and = delimiters, allowing another scope component to be embedded in an identifier so distinct tenant tuples produce the same session_scope key. Memory.add(), AsyncMemory.add() and REST POST /memories use that key to read and save raw messages, enabling cross-tenant conversation disclosure and eviction or interleaving of another tenant's history.
- CVE-2026-115324High
mem0 0.1.117 before 1.0.8 contains an SQL injection vulnerability in mem0/vector_stores/databricks.py that allows attackers to inject SQL by influencing stored memory content. Attackers can supply crafted memory text, metadata, or message names that reach unescaped insert() and update() string interpolation to execute injected SQL on the configured Databricks SQL warehouse.
- CVE-2026-49948High
Mem0 versions up to 0.2.8 have a missing authorization vulnerability in the POST /configure endpoint. Any authenticated user with an API key can change global LLM and embedder configuration, redirecting all traffic to an attacker-controlled server. The malicious configuration persists in PostgreSQL and survives server restarts.
- CVE-2026-31245Medium
The mem0 1.0.0 server lacks authentication and authorization controls for its memory creation API endpoint (POST /memories). The endpoint allows unauthenticated users to submit arbitrary memory records without verifying their identity or permissions.
- CVE-2026-31244Medium
The mem0 1.0.0 server lacks authentication and authorization controls for its memory deletion API endpoint (DELETE /memories/{memory_id}). The endpoint allows unauthenticated users to delete arbitrary memory records without verifying identity or permissions. A remote attacker can send unauthenticated DELETE requests to remove any memory entry from the database, leading to unauthorized data loss and potential denial of service.
- CVE-2026-31243Medium
The mem0 1.0.0 server lacks authentication and authorization controls for its memory reset and table re-creation functionality accessible via the DELETE /memories endpoint. An unauthenticated attacker can send a DELETE request that triggers a reset operation, leading to the execution of a CREATE TABLE SQL statement.
- CVE-2026-31241Medium
The mem0 1.0.0 server lacks authentication and authorization controls for its memory deletion API endpoint (DELETE /memories). The endpoint allows unauthenticated users to delete memory records by specifying arbitrary user identifiers (e.g., user_id, run_id, agent_id) in the request query parameters. A remote attacker can send unauthenticated DELETE requests to erase memory data for any user, leading to unauthorized data loss and denial of service.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

