codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items
CVE-2026-114494 · GHSA-vpgh-g3jg-ggx9 · published 2026-12-01
- Severity
- High
- CVSS score
- 7.8
- Chance of exploitation (EPSS)
- 0.27%
- Fixed in
- 0.9.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
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.
Upgrade codebase-memory-mcp to 0.9.0 or later, and codebase-memory-mcp to 0.9.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
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.
Upgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which has been verified to contain this fix.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| codebase-memory-mcp | npm | < 0.9.0 | 0.9.0 |
| codebase-memory-mcp | PyPI | < 0.9.0 | 0.9.0 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- Criticalgit_add runs submodule filter commands when gitlink mode is not 160000mcp-server-git
- Criticalmcp-server-git: unexpandable sparse index lets submodule filter drivers runmcp-server-git
- Highcodebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacitycodebase-memory-mcp
- Mediumcodebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the projectcodebase-memory-mcp
- Mediumcodebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexercodebase-memory-mcp
- Mediumcodebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processescodebase-memory-mcp
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.