home / blog

2026-12-03 · high

CVE-2026-114494: Critical buffer overflow in codebase-memory-mcp

CVE-2026-114494: Cypher parser buffer overflow in codebase-memory-mcp < 0.9.0

CVE-2026-114494: Critical buffer overflow in codebase-memory-mcp

CVE-2026-114494 is a critical vulnerability in the codebase-memory-mcp component, a library that provides local code intelligence for developers and AI agents through a persistent graph and MCP tools. The flaw occurs in the Cypher parser which accepts an unbounded number of projection items in RETURN and WITH clauses, while projection executors index fixed 32-element stack arrays using the parsed count.

The vulnerability has a CVSS score of 7.8, classifying it as high severity. Signals on GitHub indicate that PoCs (Proof of Concept) and exploits are publicly available for this vulnerability. The status is confirmed in the official NVD database where it was published on November 20, 2026. A query_graph with more than 32 projection items can write beyond those arrays and cause a reliable server crash potentially compromising process confidentiality and integrity.

For defense, it is essential to update codebase-memory-mcp to version 0.9.0 or later, where the vulnerability has been fixed by rejecting queries with more than 32 projection items at parse time. For instances that cannot be immediately updated, it is recommended to implement limitations on Cypher queries to avoid RETURN or WITH clauses with more than 32 items. Monitor access to Cypher APIs and implement sandboxing for AI agents that may send untrusted queries.

At a glance

What
Buffer overflow in Cypher parser of codebase-memory-mcp caused by more than 32 elements in RETURN and WITH clauses
Severity
High (CVSS 7.8)
Affected versions
Versions prior to 0.9.0
Fix
Version 0.9.0
Status
Published in NVD on 2026-11-20
Action
Update to version 0.9.0 or later

Sources: NVD, CVE-2026-114494

← All articles