Description
mem0 0.1.117 before 1.0.8 contains an sql injection vulnerability in mem0/vector_stores/databricks.py that allows attackers to inject SQL by influencing stored memory content. Attackers can supply crafted memory text, metadata, or message names that reach unescaped insert() and update() string interpolation to execute injected SQL on the configured Databricks SQL warehouse.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mem0ai | mem0 | 0.1.117 – < 1.0.8 | 1.0.8 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mem0ai | >= 0.1.117, < 1.0.8 | 1.0.8 | GHSA-7587-9684-52r6 |
References
- https://github.com/mem0ai/mem0/issues/4073 issue-tracking
- https://github.com/mem0ai/mem0/pull/4558 patch issue-tracking
- https://github.com/mem0ai/mem0/commit/a2ffca32660537b7b304305f36774ae2a13452cb patch
- v1.0.8 Release Notes release-notes
- https://github.com/mem0ai/mem0/blob/v1.0.7/mem0/vector_stores/databricks.py technical-description
- https://github.com/mem0ai/mem0 product
- VulnCheck Advisory: mem0 0.1.117 before 1.0.8 SQL Injection via Databricks Vector Store third-party-advisory