Skip to content

CVE-2026-114495 codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity

HighCVSS 7.8 EPSS 0.24%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP tools. Prior to 0.9.0, automatic import of a repository's .codebase-memory/ artifact allocated a decompression buffer using the attacker-controlled 64-bit original_size value from artifact.json but truncated that value to int when passing the destination capacity to the Zstandard decompressor. A value with bit 31 set became negative and was sign-extended to a large size_t, allowing the decompressor to write frame content beyond the actual allocation. Indexing a malicious repository containing the crafted artifact could corrupt heap memory with attacker-controlled bytes, causing a reliable crash and potentially code execution. This issue is fixed in version 0.9.0.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
npm codebase-memory-mcp(npm) < 0.9.0 0.9.0 Fixed
pypi codebase-memory-mcp(PyPI) < 0.9.0; = 0.8.1 0.9.0 Fixed
DeusData codebase-memory-mcp = < 0.9.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
DeusData codebase-memory-mcp = < 0.9.0 No fix listed
npm codebase-memory-mcp(npm) < 0.9.0 0.9.0
pypi codebase-memory-mcp(PyPI) < 0.9.0 0.9.0
pypi codebase-memory-mcp(PyPI) = 0.8.1 No fix listed

References