CVE-2026-59706

mem0 - Unauthenticated Config API Exposure and SSRF via ollama_base_url

State
Published
Severity
9.2 Critical
Published
Jul 7, 2026
Updated
Sep 24, 2026
Reserved
Jul 6, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.09.2 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:NVulnCheck
3.19.3 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:NVulnCheck

Weaknesses

  • CWE-306 Missing Authentication for Critical Function

Affected Products

ProductVersions
mem0mem0
  • a3154d5 and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.