codebase-memory-mcp query_graph stack out-of-bounds write via oversized RETURN or WITH (CVE-2026-114494)
Summary
Per the vendor advisory, codebase-memory-mcp before 0.9.0 (npm and pip) did not bound RETURN or WITH projection items, so a query_graph query with more than 32 items wrote past fixed stack arrays, causing a reliable crash and potentially worse depending on layout. A related path also read uninitialized stack slots when building result columns, even when no node matched. Fixed in 0.9.0; the vendor recommends v0.12.1.
Severity
Timeline
The vendor repository's advisory page shows GHSA-vpgh-g3jg-ggx9 as published.
The GitHub advisory database entry lists a published time of 2026-12-01T00:37:12Z. (per the vendor advisory)
How it happened
Per the vendor advisory, before 0.9.0 the Cypher parser did not bound the projection items in a RETURN or WITH clause, while the projection executors indexed fixed 32-element stack arrays using the parsed count. A query with more than 32 items sent through query_graph wrote past those arrays. A related path read uninitialized stack slots when building result columns, even when no node matched. Any caller of query_graph can reach this, including an agent whose queries are influenced by untrusted content. The CVSS vector lists attack vector Local, privileges required Low and no user interaction.
How to check your app
- all affected versions: Below 0.9.0: Check whether the installed codebase-memory-mcp package, from npm or pip, is older than 0.9.0.
- all affected versions: Below 0.9.0: Check whether any agent using the server can send query_graph queries influenced by untrusted content.
Sources
Corrections and updates
Cite this entry
- Title
- codebase-memory-mcp query_graph stack out-of-bounds write via oversized RETURN or WITH (CVE-2026-114494)
- Added
- Nov 30, 2026
- URL
- https://vibeincidents.com/incidents/codebase-memory-mcp-cve-2026-114494/
- Suggested citation
VibeIncidents. "codebase-memory-mcp query_graph stack out-of-bounds write via oversized RETURN or WITH (CVE-2026-114494)." Nov 30, 2026. https://vibeincidents.com/incidents/codebase-memory-mcp-cve-2026-114494/