Skip to content

codebase-memory-mcp

codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items

CVE-2026-114494GHSA-vpgh-g3jg-ggx9Published 20 Nov 2026, 19:53 UTC

Real-world risk

4.3/ 10Medium

Schedule in the normal cycle

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.8

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
codebase-memory-mcpNiche< 0.9.00.9.0
codebase-memory-mcpNiche< 0.9.00.9.0
codebase-memory-mcpNiche< 0.9.00.9.0

What to do

Update to a fixed version: 0.9.0.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededLowA real low-privileged accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.4% chance of exploitation in 30 days (percentile 35), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.500
  2. Threat T1: Nothing known0.850
  3. 10 × impact 1 × prerequisites 0.5 × threat 0.854.250
  4. Rounded to one decimal between 0.1 and 104.3

How the score works

Exploitation and evidence timeline

  1. 20 Nov 2026 Published
  2. 2 Dec 2026 Risk 4.3 (cvss fallback)

Weakness

CWE-121, CWE-787

References

Get alerts for codebase-memory-mcp

Free email or text alerts when a vulnerability in codebase-memory-mcp reaches risk 8 or higher. Nothing else.

CVE-2026-114494: codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items · CVE Feed