News · codebase-memory-mcp (open-source project) · 2 min read
Event date: · Published:
codebase-memory-mcp patches critical heap overflow and stack corruption bugs
A batch of five security advisories for codebase-memory-mcp discloses two High-severity memory-corruption bugs reachable by indexing a malicious repository, fixed in version 0.9.0.
codebase-memory-mcp, an open-source MCP server that gives AI coding agents persistent memory of a codebase, received a batch of five security advisories on December 1, 2026, disclosed through GHSA-8xwq-xv2x-853r / CVE-2026-114495. The batch includes two High-severity memory-corruption bugs that can be triggered simply by indexing a malicious repository or processing an untrusted query, plus three lower-severity issues.
What the advisories cover
- A heap buffer overflow (CVE-2026-114495, High) happens because a 64-bit attacker-controlled size value from
artifact.jsonmetadata is truncated to 32 bits before reaching the Zstandard decompressor. - A stack out-of-bounds write (CVE-2026-114494, High) exists because the Cypher-style query parser does not bound RETURN/WITH projection items against a fixed 32-element stack array.
- Both High-severity bugs can be triggered simply by indexing a malicious repository or processing an untrusted query.
- A ReDoS issue triggered via
.gitignoreglob matching is fixed in the same batch. - A Windows feature that could kill arbitrary processes due to a skipped ownership check is fixed.
- A git option-injection flaw via the
base_branchparameter indetect_changesallowed writes outside the project directory.
Why it matters for AI coding agents
codebase-memory-mcp gives AI coding agents persistent memory of a codebase, so memory-corruption bugs reachable just by letting an agent index an untrusted repository amount to a direct supply-chain risk for anyone running AI coding agents on third-party code.
Fix and recommended version
All issues in the batch are fixed in version 0.9.0, with version 0.12.1 recommended for anyone running codebase-memory-mcp against repositories or queries they do not fully control.
Sources
- GHSA-8xwq-xv2x-853r / CVE-2026-114495 (GitHub Security Advisories, December 1, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.