CVE-2026-114495
codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity
- CVSS
- 7.8
- EPSS
- 0.20% (p5)
- Published
- 2026-11-20
- Age
- 11d old
- Modified
- 2026-12-01
- Product
- DeusData codebase-memory-mcp
- Aliases
- GHSA-8xwq-xv2x-853r
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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.
Fixed in
0.9.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| PyPI | codebase-memory-mcp | < 0.9.0 | 0.9.0 |
| PyPI | codebase-memory-mcp | >=0, <0.9.0 | 0.9.0 |
| npm | codebase-memory-mcp | < 0.9.0 | 0.9.0 |
| npm | codebase-memory-mcp | >=0, <0.9.0 | 0.9.0 |
Sources
- NVD · first seen 11d ago · NVD terms of use
- OSV · first seen 11d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 10h ago · CC-BY 4.0
- CVE List · first seen 11d ago · CVE Terms of Use
References
- https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-8xwq-xv2x-853r x_refsource_CONFIRM
- https://github.com/DeusData/codebase-memory-mcp/pull/941 x_refsource_MISC
- https://github.com/DeusData/codebase-memory-mcp/commit/a2f09c7ce97205147f127c2c8b12861bf74a02a3 x_refsource_MISC
- https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/114xxx/CVE-2026-114495.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-114495 advisory
- https://github.com/advisories/GHSA-8xwq-xv2x-853r other
- https://github.com/DeusData/codebase-memory-mcp package