Skip to main content

codebase-memory-mcp CVE-2026-114494

| EUVDEUVD-2026-131803 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-11-20 GitHub_M
7.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Influence agent query input
  2. Delivery
    Submit query_graph with >32 projection items
  3. Exploit
    Loop writes past 32-element stack arrays
  4. Execution
    Corrupt stack / read uninitialized slots
  5. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

codebase-memory-mcp < 0.9.0

Affected Packages

euvd codebase_memory_mcp fix: 0.9.0

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

Vendor (GitHub_M) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 20, 2026 - 21:04 EUVD
CVE Published
Nov 20, 2026 - 19:53 cve.org
HIGH 7.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche developer/AI-agent MCP tool, small npm/pip footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy