DeusData codebase-memory-mcp
codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.9.0
Fixed in 0.9.0
Mitigation
Upgrade codebase-memory-mcp to 0.9.0 or later.
References
- Vendor advisory github.com/DeusData/codebase-memory-mcp/securi…
- Patch github.com/DeusData/codebase-memory-mcp/pull/9…
- Patch github.com/DeusData/codebase-memory-mcp/commit…
1 more
- Release notes github.com/DeusData/codebase-memory-mcp/releas…
Timeline
Days relative to CVE publicationFirst public PoC 12 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-114495 (created 2 Dec 2026, found by us: 2 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-114495 | 2 Dec 2026 +12 d | 2 Dec 2026 | 0 | PoC
Flags · score 40
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.