{"id":"CVE-2026-114494","aliases":["CVE-2026-114494","GHSA-vpgh-g3jg-ggx9"],"related":[],"kind":"vulnerability","state":"published","title":"codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nBefore 0.9.0 the Cypher parser did not bound the number of projection items in a `RETURN` or `WITH` clause, while the projection executors indexed fixed 32-element stack arrays with a loop bounded by the parsed count. A query with more than 32 projection items written through the `query_graph` tool wrote past those arrays. A related path read uninitialized stack slots when building result columns, even when no node matched.\n\n### Impact\n\nStack memory corruption in the server process from a single tool argument: a reliable crash, and potentially worse depending on layout. Reachable by any caller of `query_graph`, including an agent whose queries are influenced by untrusted content.\n\n### Patches\n\nFixed in stable 0.9.0. Projection counts are checked before execution. In the verified v0.12.1 release, RETURN is bounded to 32 items and WITH to 16 items; oversized clauses are rejected rather than silently truncated. Both projection-limit regressions passed in the release-source verification.\n\n### Workarounds\n\nUpgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which has been verified to contain this fix.\n\n### Credit\n\nReported privately by Aaron (@aaronjmars). codebase-memory-mcpthanks them for the thorough report and re-verification.","format":"markdown","source":"ghsa"}],"published":"2026-11-20T19:53:43.608Z","modified":"2026-12-01T00:45:07.820Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-121","CWE-787"],"affected":[{"ranges":[{"version":"< 0.9.0","status":"affected"}],"vendor":"DeusData","product":"codebase-memory-mcp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.0"}],"ecosystem":"npm","package":"codebase-memory-mcp","purl":"pkg:npm/codebase-memory-mcp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.9.0"}],"ecosystem":"PyPI","package":"codebase-memory-mcp","purl":"pkg:pypi/codebase-memory-mcp","source":"ghsa"}],"references":[{"url":"https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-vpgh-g3jg-ggx9","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/pull/941","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/commit/e69e0844dbc1c737ebd3d17e97007d0f5cf16beb","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114494","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/DeusData/codebase-memory-mcp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-20T20:57:54.977Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-114494","url":"https://www.cve.org/CVERecord?id=CVE-2026-114494","licence":"CVE Terms of Use","modified":"2026-11-20T20:58:07.204Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vpgh-g3jg-ggx9","url":"https://github.com/advisories/GHSA-vpgh-g3jg-ggx9","licence":"CC-BY-4.0","modified":"2026-12-01T00:45:07.820Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-114494","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114494","licence":"Public domain","modified":"2026-11-20T21:17:27.867Z"}],"updatedAt":"2026-12-01T00:57:25.866Z","epss":{"score":0.00274,"percentile":0.21188,"date":"2026-12-01T12:00:22.000Z"}}