SQL Injection Affecting mem0ai package, versions [0.1.117,1.0.8)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MEM0AI-21691308
  • published24 Oct 2026
  • disclosed22 Oct 2026
  • creditlighthousekeeper1212, leediay153

Introduced: 22 Oct 2026

NewCVE-2026-115324  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade mem0ai to version 1.0.8 or higher.

Overview

mem0ai is a Long-term memory for AI Agents

Affected versions of this package are vulnerable to SQL Injection via the Databricks vector store in mem0/vector_stores/databricks.py, where user-controlled payload values and vector IDs are interpolated directly into SQL statements without parameterization. An attacker can inject arbitrary SQL through memory payloads passed to the insert method or through a vector ID passed to the delete method, enabling unauthorized data access, modification, or deletion against the backing Databricks SQL warehouse.

CVSS Base Scores

version 4.0
version 3.1