Skip to main content

mem0 EUVDEUVD-2026-42106

| CVE-2026-59706 CRITICAL
Missing Authentication for Critical Function (CWE-306)
2026-07-07 VulnCheck GHSA-225m-p565-9h68
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Discover exposed mem0 config API
  2. Delivery
    GET /api/v1/config/ to read plaintext keys
  3. Exploit
    PUT ollama_base_url to internal IMDS
  4. Execution
    Server issues SSRF request
  5. Impact
    Harvest credentials and pivot internally

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires only network reachability to the mem0 server's config API - no authentication, no user interaction, and default configuration per PR:N/UI:N/AC:L in the CVSS 4.0 vector. The concrete prerequisites are: for credential theft, HTTP access to the GET /api/v1/config/ endpoint; for SSRF, the ability to PUT /api/v1/config/mem0/llm with an attacker-chosen ollama_base_url pointing at an internal/link-local address (e.g., cloud IMDS at 169.254.169.254). The primary limiting factor is exposure - the config API must be reachable by the attacker; if the server is bound to localhost, firewalled, or fronted by an authenticating proxy, the attack surface is removed. SSRF impact against cloud metadata is further limited where IMDSv2 or metadata egress blocking is enforced.

Impact

This is a genuine high priority, not an inflated CVSS number. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N, 9.2) is internally consistent with the description: fully remote, no authentication, no user interaction, high confidentiality impact on both the vulnerable system (leaked API keys) and a subsequent system (SSRF-reachable internal services, SC:H). The dual primitive is what elevates risk - credential theft alone enables downstream account abuse and cloud billing fraud, while the SSRF-to-IMDS path can yield cloud instance credentials and lateral movement. No EPSS score or SSVC decision data was supplied, and the CVE is not on CISA KEV, so there is no evidence of active exploitation; likewise no POC was referenced. The main limiting factor is exposure: risk is only realized where the mem0 server's config API is network-reachable to untrusted clients rather than bound to localhost or firewalled, so real-world impact depends heavily on deployment posture.

Exploit ScenarioDerived

An attacker who can reach an internet-exposed mem0 server sends GET /api/v1/config/ and receives the stored OpenAI (or other provider) API key in plaintext, then reuses it to run up charges or access the victim's LLM account. In a cloud deployment, the attacker instead sends PUT /api/v1/config/mem0/llm setting ollama_base_url to http://169.254.169.254/latest/meta-data/, causing the server to fetch instance metadata and potentially leak cloud credentials. No exploit code was referenced in the source data, but both requests are trivial to craft with standard HTTP tooling given the low attack complexity and absent authentication.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 07, 2026

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.

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.

Affected VersionsENISA

mem0 0 ≤a3154d5

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Mem0 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.2 CRITICAL
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
vuln.today AI 9.3 CRITICAL

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).

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.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.

Executive ViewAI

Why It Matters

mem0's self-hosted server contains an authentication bypass vulnerability that exposes LLM provider credentials (such as OpenAI API keys) and internal infrastructure to remote unauthenticated attackers. Compromise of these credentials could enable unauthorized cloud service charges, account takeover, and lateral movement into internal systems. All organizations running mem0 self-hosted require immediate attention to prevent credential theft and cloud account abuse.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
popular open-source AI memory library, but self-hosted server less ubiquitous
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy