codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity
CVE-2026-114495 · GHSA-8xwq-xv2x-853r · published 2026-12-01
- Severity
- High
- CVSS score
- 7.8
- Chance of exploitation (EPSS)
- 0.24%
- Fixed in
- 0.9.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
Indexing a malicious repository could corrupt heap memory with attacker-controlled bytes: a reliable crash and potentially code execution. No extra interaction beyond indexing the repository is needed.
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. The import path takes the decompressed size from the Zstandard frame header, validates it against the metadata and a size cap, and uses the same size_t capacity for allocation and decompression. The decoded length is checked. codebase-memory-mcp has verified this correction in published v0.12.1, together with the size-mismatch regression. That regression is not a direct multi-gigabyte reproduction; this advisory does not claim that all decompression resource-exhaustion cases are eliminated.
Upgrade to a fixed release; the codebase-memory-mcp verified recommendation is v0.12.1. On affected versions, avoid indexing untrusted repositories that contain a .codebase-memory/ artifact.
| 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: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 itemscodebase-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.