All vulnerabilities

npm · PyPI

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

Severity
High 7.8
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
0.9.0
Exploit chance
0.3% in the next 30 daysHigher than 21% of CVEs. EPSS by FIRST, 1 Dec 2026
Weakness
Stack-based buffer overflow (CWE-121)Out-of-bounds write (CWE-787)
Attack
Needs local access · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-vpgh-g3jg-ggx9
Sources
OSV.dev and GitHub

Description

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

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

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Upgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which has been verified to contain this fix.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
codebase-memory-mcpPyPI · osv:PyPI:codebase-memory-mcp
  • Every version before 0.9.0
codebase-memory-mcpnpm · osv:npm:codebase-memory-mcp
  • Every version before 0.9.0

About codebase-memory-mcp

Weekly downloads (PyPI)
1,862PyPI Stats, 1 Dec 2026

About codebase-memory-mcp

Weekly downloads (npm)
10,962npm, 1 Dec 2026

References