Skip to content
Vulnerabilities

Patch mem0 Vector Store to Block SQL Injection in Databricks

Unpatched mem0 versions allow attackers to execute arbitrary SQL commands on Databricks warehouses via crafted memory inputs, requiring immediate remediation.

Patch mem0 Vector Store to Block SQL Injection in Databricks
Illustration: BlueTeam Herald

Key points

  • CVE-2026-115324 is rated Critical (CVSS 9.2) due to remote code execution potential via SQL injection.
  • The flaw affects mem0 versions prior to 1.0.8, specifically within the Databricks vector store module.
  • Attackers can inject malicious SQL by manipulating memory text, metadata, or message names stored in the system.

The National Vulnerability Database recorded CVE-2026-115324 as a Critical severity flaw with a CVSS score of 9.2. This vulnerability exists in the mem0 library, specifically in versions earlier than 1.0.8. The issue allows attackers to inject SQL commands by influencing stored memory content. Security researchers identified that the flaw resides in the `mem0/vector_stores/databricks.py` file, where user-controlled input is not properly sanitized before being processed by the database engine.

The risk

The vulnerability stems from improper handling of string interpolation in database operations. According to the NVD record, the code uses unescaped `insert()` and `update()` functions. When an attacker supplies crafted memory text, metadata, or message names, these inputs reach the database layer without sanitization. This allows the execution of arbitrary SQL statements on the configured Databricks SQL warehouse. The weakness is classified under CWE-89, which covers SQL injection flaws that can lead to data theft, modification, or deletion.

Who is exposed

Any organization using the mem0ai mem0 library before version 1.0.8 is exposed to this threat. The risk is specific to deployments that utilize the Databricks vector store functionality. Teams that integrate mem0 for managing memory or context in AI applications, particularly those connecting to Databricks warehouses, must verify their library versions. If the installed version is 0.1.117 or any other release prior to 1.0.8, the environment is vulnerable to remote exploitation via manipulated memory inputs.

Cost and compliance

The source material does not provide specific financial cost estimates or regulatory compliance implications for this incident. No data breach notifications, fines, or industry-specific penalties are mentioned in the available records. The NVD record focuses solely on the technical nature of the vulnerability and the affected software versions. Organizations must assess their own compliance frameworks to determine if this exposure violates internal security policies or external regulatory requirements.

Our take on the response

Teams should prioritize upgrading the mem0 library to version 1.0.8 or later immediately. This update addresses the SQL injection flaw by correcting the string interpolation logic in the Databricks module. Until the patch is applied, restrict access to the Databricks warehouse and monitor for unusual query patterns. That suggests a proactive stance is necessary to prevent potential data exfiltration or unauthorized modifications while awaiting full remediation across all environments.

What defenders should look for

Security operations teams should monitor database logs for unexpected SQL syntax or complex queries originating from application layers. Look for spikes in query complexity or errors related to malformed SQL statements. Check for unusual data access patterns, such as bulk reads or writes that do not align with normal application behavior. Investigate any alerts indicating unauthorized attempts to modify database schemas or extract sensitive information. Contain potential breaches by isolating affected database instances and reviewing recent memory inputs for malicious content.

What to do and how to stay safe: mem0

  • Verify the current version of the mem0 library in your development and production environments.
  • Upgrade to mem0 version 1.0.8 or later once the vendor provides the update.
  • Audit recent memory inputs and message names for signs of SQL injection attempts.
  • Monitor Databricks SQL warehouse logs for anomalous query activity or unauthorized access.

Step-by-step guide: Unpatched Software Response: Containment, Recovery, and Prevention Steps

General security guidance from the BlueTeam Herald newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

What is the CVSS score for CVE-2026-115324?

The CVSS score for CVE-2026-115324 is 9.2, which is rated as Critical severity.

Which versions of mem0 are affected by this vulnerability?

All versions of mem0 before 1.0.8 are affected, including version 0.1.117.

How can an attacker exploit this flaw?

Attackers can exploit this by supplying crafted memory text, metadata, or message names that trigger unescaped SQL injection in the Databricks module.

Sources

  1. CVE Program
mem0DatabricksCVE-2026-115324SQL InjectionNVD

Related stories

Block TCF Servlet Access to Stop Oracle EBS Remote Code Execution

Horizon3 researchers found an unauthenticated SQL injection in Oracle E-Business Suite that allows attackers to run commands on application servers without logging in.