Skip to content
High 7.8

codebase-memory-mcpに遠隔からプログラムを実行される脆弱性

CVE-2026-114494 First seen on SecPulse

Summary

codebase-memory-mcpの0.9.0より前のバージョンには、query_graphで32個を超える項目を含むCypherクエリを処理すると、スタック上の配列の範囲外に書き込みが起きる脆弱性があります。サーバーが確実にクラッシュするおそれがあり、プロセスの機密性や完全性が損なわれる可能性も指摘されています。修正版は0.9.0です。0.9.0へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

codebase-memory-mcpの0.9.0より前のバージョンには、query_graphで32個を超える項目を含むCypherクエリを処理すると、スタック上の配列の範囲外に書き込みが起きる脆弱性があります。サーバーが確実にクラッシュするおそれがあり、プロセスの機密性や完全性が損なわれる可能性も指摘されています。修正版は0.9.0です。0.9.0へ更新してください。

Affected packages

PackageAffected → Fixed
DeusDatacodebase-memory-mcp —
npmcodebase-memory-mcp
< 0.9.0→ 0.9.0
PyPIcodebase-memory-mcp
< 0.9.0→ 0.9.0
pipcodebase-memory-mcp
< 0.9.0→ 0.9.0
Original description The description as published by the source.

Summary

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.

Impact

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.

Patches

Fixed in stable 0.9.0. Projection counts are checked before execution. In the verified v0.12.1 release, RETURN is bounded to 32 items and WITH to 16 items; oversized clauses are rejected rather than silently truncated. Both projection-limit regressions passed in the release-source verification.

Workarounds

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

Credit

Reported privately by Aaron (@aaronjmars). codebase-memory-mcpthanks them for the thorough report and re-verification.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details