Skip to content
OpenAdvisories
High · 7.8 CVE-2026-114494 EUVD-2026-131803GHSA-vpgh-g3jg-ggx9

codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items

Published Nov 20, 2026 · Updated Nov 20, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
DeusData codebase-memory-mcp < 0.9.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm codebase-memory-mcp < 0.9.0 0.9.0 GHSA-vpgh-g3jg-ggx9
PyPI codebase-memory-mcp < 0.9.0 0.9.0 GHSA-vpgh-g3jg-ggx9

References