Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence agent query input
-
DeliverySubmit query_graph with >32 projection items
-
ExploitLoop writes past 32-element stack arrays
-
ExecutionCorrupt stack / read uninitialized slots
-
ImpactCrash server, possible confidentiality/integrity impact
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the ability to submit a Cypher query through the query_graph MCP tool with a RETURN or WITH clause containing more than 32 projection items; that over-wide projection count is the exact trigger, because the parser (pre-0.9.0) did not bound it while executors index fixed 32-element stack arrays. A related path reads uninitialized stack slots when building result columns even when no node matches. Limiting factors: the vector is local (AV:L) and requires some privilege to reach the tool (PR:L) - practically, access to the query_graph interface, which in agentic or multi-tenant deployments can be reached indirectly by an attacker who controls content that shapes the agent's query. Only versions before 0.9.0 are affected; 0.9.0 (and verified v0.12.1) reject oversized clauses. |
| Impact | The input CVSS is 7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), which reflects a locally-reachable, low-privilege, low-complexity flaw with no user interaction and high impact on all three dimensions. The strongest confirmed signal is availability: the advisory and description both confirm a reliable server crash from a single query_graph argument (A:H is well-supported). Confidentiality and integrity (C:H/I:H) are only partially supported - the sources say exploitation 'potentially' compromises process confidentiality and integrity and that outcomes beyond a crash depend on stack layout, so the high C/I ratings are plausible but not demonstrated. No EPSS score, no CISA KEV entry, and no SSVC automatable/technical-impact decision values were supplied, so those frameworks cannot be weighed here; the only decision signal is the vuln.today priority label 'this_week', consistent with a serious but not actively-exploited bug. There is no public exploit identified at time of analysis - the four references are a vendor advisory, a patch PR, the fix commit, and the release, not proof-of-concept exploit code. The notable nuance the raw CVSS misses: although the vector is AV:L, the realistic threat model is an AI agent whose query_graph input is shaped by untrusted content, so an attacker without a local shell can still reach the sink indirectly - this elevates practical concern above a typical local-only bug even though the EPSS/KEV data needed to confirm widespread exploitation is absent. |
| Exploit ScenarioDerived | An attacker who can influence the queries an AI agent sends to the codebase-memory-mcp server (for example via untrusted content the agent processes) gets the agent to issue a query_graph Cypher query whose RETURN or WITH clause contains more than 32 projection items. The projection executor loops over the parsed count while indexing fixed 32-element stack arrays, writing past them and corrupting stack memory, reliably crashing the server and potentially affecting process confidentiality and integrity. No public exploit code is identified, but the trigger condition (an over-wide RETURN/WITH clause) is simply described in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Stack memory corruption in codebase-memory-mcp before 0.9.0 allows any caller of the query_graph MCP tool to reliably crash the server process and potentially read or corrupt process memory by submitting a Cypher RETURN or WITH clause with more than 32 projection items, because the parser never bounded the projection count while the executors indexed fixed 32-element stack arrays. The flaw is scored 7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H): locally reachable, low complexity, no user interaction, with high confidentiality and integrity impact alongside the crash. In practice the prerequisite is access to the query_graph interface, which in agentic or multi-tenant deployments can be reached indirectly by an attacker who controls content that shapes an agent's query; no public exploit identified at time of analysis, and the issue is fixed in 0.9.0.
RemediationAI
Vendor-released patch: 0.9.0. Upgrade to at least 0.9.0, and the vendor recommends v0.12.1, which they verified contains the fix and which bounds RETURN to 32 and WITH to 16 projection items, rejecting oversized clauses instead of truncating them. The advisory states that upgrading to a fixed release is the remedy and recommends v0.12.1; patch references are GHSA-vpgh-g3jg-ggx9 (https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-vpgh-g3jg-ggx9), PR https://github.com/DeusData/codebase-memory-mcp/pull/941, commit e69e0844dbc1c737ebd3d17e97007d0f5cf16beb and release https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0. Where upgrading cannot be done immediately, restrict which callers and agents can reach the query_graph tool and treat untrusted content that can shape agent-generated Cypher as an attack path, since a single over-wide projection is sufficient to trigger the overflow; note that this containment is a scope reduction, not a fix, and the server remains exploitable by anyone who can submit the query. For deployments where the server is driven by untrusted callers, the same upstream PR documents the CBM_ALLOWED_ROOT environment variable, which confines index_repository to paths under a chosen root after symlink and '..' resolution - this addresses indexing path scope only and does not mitigate the projection overflow.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
codebase-memory-mcp is a local code-intelligence server that exposes a persistent graph to developers and AI agents over MCP tools, one of which is query_graph, backed by a Cypher parser and projection executors written in C. The parser function parse_return_or_with accepted an unbounded number of projection items in RETURN and WITH clauses, while the downstream executors (execute_return_simple and siblings) materialize each row's projection into fixed-width stack arrays of 32 columns and index them with a loop bounded by the parsed count. Passing more than 32 projection items therefore wrote past those arrays - CWE-121 stack-based buffer overflow, also tracked as CWE-787 out-of-bounds write in the advisory - and a related result-column path read uninitialized stack slots even when no node matched. The fix in 0.9.0 adds a count check in the parser before execution so over-wide clauses are rejected rather than silently truncated; in the verified v0.12.1 release the limit is 32 items for RETURN and 16 for WITH. The same upstream PR also hardened adjacent code (size_t-typed zstd decompression with frame-content-size checks, fail-closed self-update checksum verification, and a new CBM_ALLOWED_ROOT path restriction for index_repository), but the projection bounds check is the specific remedy for this CVE. The trigger is a single tool argument; exploitation does not require a malformed graph or a matched node.
Know when Codebase Memory Mcp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Reached locally through the query_graph tool by a low-privilege caller with no user interaction; availability impact (reliable crash) is confirmed, while C:H/I:H reflect the vendor's stated potential memory-corruption impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-121 (stack-based buffer overflow), also classified CWE-787.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-114494 is a high-severity memory corruption vulnerability in the codebase-memory-mcp product (versions before 0.9.0) that allows a caller of the query_graph MCP tool to crash the server and potentially read or alter process memory. This affects any organization using this component, especially in agentic or multi-tenant environments where the interface may be indirectly reachable by an attacker who controls input shaping an agent's query, putting sensitive data and system integrity at risk.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
More in Codebase Memory Mcp
View allHeap memory corruption in codebase-memory-mcp before 0.9.0 lets a crafted repository artifact corrupt memory during auto
Denial of service in codebase-memory-mcp before version 0.10.0: the indexer's own .gitignore matcher implements * and **
Git option injection in the codebase-memory-mcp MCP server before 0.9.0 lets a local, authenticated caller of the detect
Arbitrary process termination on Windows hosts running the optional graph UI of codebase-memory-mcp: the POST /api/proce
EUVD-2026-131803
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB