Read the docs

Stack out-of-bounds write in codebase-memory-mcp query_graph

Priority LOW 35CWE-121Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-121 and the CVSS impact.

Summary

codebase-memory-mcp before 0.9.0 is affected. The Cypher parser accepts an unbounded number of projection items in RETURN and WITH clauses, while the projection code writes into fixed 32-element stack arrays, so a query_graph query with more than 32 items writes past those arrays (CWE-787). A caller of query_graph, including an agent whose queries are influenced by untrusted content, can crash the server and potentially compromise process confidentiality and integrity.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00175 4th percentileScored 2026-11-30
Fix Fixed codebase-memory-mcp (DeusData): 0.9.0codebase-memory-mcp (npm): 0.9.0+1 more product

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
DeusDatacodebase-memory-mcpbefore 0.9.00.9.0Patch availableCNA
—codebase-memory-mcp (npm)before 0.9.00.9.0Patch availableGHSA-vpgh-g3jg-ggx9
—codebase-memory-mcp (PyPI)before 0.9.00.9.0Patch availableGHSA-vpgh-g3jg-ggx9
  • codebase-memory-mcp VendorDeusData Affected before 0.9.0 Fixed in 0.9.0 Patch available CNA
  • codebase-memory-mcp (npm) Vendor— Affected before 0.9.0 Fixed in 0.9.0 Patch available GHSA-vpgh-g3jg-ggx9
  • codebase-memory-mcp (PyPI) Vendor— Affected before 0.9.0 Fixed in 0.9.0 Patch available GHSA-vpgh-g3jg-ggx9

Remediation

Upgrade codebase-memory-mcp to version 0.9.0, which fixes the issue. The sources list no fixed version for DeusData codebase-memory-mcp other than 0.9.0.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

  • Fix · CNA codebase-memory-mcp (DeusData) Fixed in 0.9.0
  • Fix · GHSA-vpgh-g3jg-ggx9 codebase-memory-mcp (npm) Fixed in 0.9.0 Advisory →
  • Fix · GHSA-vpgh-g3jg-ggx9 codebase-memory-mcp (PyPI) Fixed in 0.9.0 Advisory →

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-114494
  2. 2026-11-20 CISA SSVC decision points changed
  3. 2026-12-01 Alias added: GHSA-vpgh-g3jg-ggx9
  4. 2026-12-01 Fix available: PyPI/[email protected], npm/[email protected] · GHSA-vpgh-g3jg-ggx9
  5. 2026-12-01 CVSS score added · GHSA-vpgh-g3jg-ggx9
  6. 2026-12-01 Weakness changed · GHSA-vpgh-g3jg-ggx9
  7. 2026-12-01 6 new references · GHSA-vpgh-g3jg-ggx9

References

  • TI-2026-96051 Heap buffer overflow in codebase-memory-mcp artifact import CVSS 3.1HIGH 7.8
  • TI-2026-96054 Catastrophic backtracking in .gitignore matching stalls indexing CVSS 3.1MEDIUM 5.5
  • TI-2026-96053 Missing authorization in codebase-memory-mcp UI on Windows CVSS 3.1MEDIUM 5.5
  • TI-2026-96052 Git option injection in codebase-memory-mcp lets attackers write files CVSS 3.1MEDIUM 5.5

Sources