CVE-2026-114494 codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP tools. Prior to 0.9.0, the Cypher parser accepted an unbounded number of projection items in RETURN and WITH clauses while projection executors indexed fixed 32-element stack arrays using the parsed count. A query_graph query with more than 32 projection items could therefore write beyond those arrays, and a related result-column path could read uninitialized stack slots even when no node matched. Any caller of query_graph, including an agent whose query is influenced by untrusted content, could cause a reliable server crash and potentially compromise process confidentiality and integrity. This issue is fixed in version 0.9.0.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm codebase-memory-mcp(npm) | < 0.9.0 | 0.9.0 | Fixed |
| pypi codebase-memory-mcp(PyPI) | < 0.9.0; = 0.8.1 | 0.9.0 | Fixed |
| DeusData codebase-memory-mcp | = < 0.9.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| DeusData codebase-memory-mcp | = < 0.9.0 | No fix listed |
| npm codebase-memory-mcp(npm) | < 0.9.0 | 0.9.0 |
| pypi codebase-memory-mcp(PyPI) | < 0.9.0 | 0.9.0 |
| pypi codebase-memory-mcp(PyPI) | = 0.8.1 | No fix listed |
References
- https://github.com/DeusData/codebase-memory-mcp/commit/e69e0844dbc1c737ebd3d17e97007d0f5cf16beb patch
- https://github.com/DeusData/codebase-memory-mcp/pull/941 patch
- https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0
- https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-vpgh-g3jg-ggx9 vendor-advisory
- ENISA EUVD EUVD-2026-131803 third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product