Description
Mem0 versions through 0.2.8, fixed in commit ae7f406, contain a missing authorization vulnerability in the self-hosted server component where the POST /configure endpoint modifies global LLM provider and embedder configuration but only verifies authentication via JWT or X-API-Key without validating the caller's role. Any authenticated user holding a distributed API key can redirect all LLM and embedder traffic to an attacker-controlled server, with the malicious configuration persisted to PostgreSQL and surviving server restarts to affect all users and API keys on the instance.
CVSS breakdown
CVSS 4.0
Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Confidentiality (Vulnerable System)
High
Integrity (Vulnerable System)
High
Availability (Vulnerable System)
None
Confidentiality (Subsequent System)
None
Integrity (Subsequent System)
None
Availability (Subsequent System)
None
CVSS 3.1
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
Affected products
- mem0ai / mem00 – 0.2.8
- mem0ai / mem0ae7f4062652df1376990221101d1adbb0819c973 – ae7f4062652df1376990221101d1adbb0819c973
References
- MISChttps://github.com/mem0ai/mem0/issues/5127
- MISChttps://github.com/mem0ai/mem0/issues/5384
- PATCHhttps://github.com/mem0ai/mem0/pull/5360
- PATCHhttps://github.com/mem0ai/mem0/commit/ae7f4062652df1376990221101d1adbb0819c973
- VENDOR_ADVISORYhttps://www.vulncheck.com/advisories/mem0-missing-authorization-via-post-configure-endpoint