Heap buffer overflow in codebase-memory-mcp artifact import
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-190 and the CVSS impact.
Summary
codebase-memory-mcp before 0.9.0 is affected. Automatic import of a repository's .codebase-memory/ artifact truncates the 64-bit original_size value from artifact.json to int, so a value with bit 31 set becomes a large size for the Zstandard decompressor. The decompressor can then write frame content beyond the allocated heap buffer, which is a CWE-190 integer overflow leading to an out-of-bounds write (CWE-787). An attacker who provides a malicious repository needs a local user to index it, and indexing can corrupt heap memory with attacker-controlled bytes, causing a reliable crash and potentially code execution.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| DeusData | codebase-memory-mcp | before 0.9.0 | 0.9.0 | Patch available | CNA |
| — | codebase-memory-mcp (npm) | before 0.9.0 | 0.9.0 | Patch available | GHSA-8xwq-xv2x-853r |
| — | codebase-memory-mcp (PyPI) | before 0.9.0 | 0.9.0 | Patch available | GHSA-8xwq-xv2x-853r |
- codebase-memory-mcp VendorDeusData Affected before 0.9.0 Fixed in 0.9.0 Patch available CNA
- codebase-memory-mcp (npm) Vendor— Affected before 0.9.0 Fixed in 0.9.0 Patch available GHSA-8xwq-xv2x-853r
- codebase-memory-mcp (PyPI) Vendor— Affected before 0.9.0 Fixed in 0.9.0 Patch available GHSA-8xwq-xv2x-853r
Remediation
Upgrade codebase-memory-mcp to version 0.9.0, which fixes the issue, for the DeusData, npm and PyPI packages.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA codebase-memory-mcp (DeusData) Fixed in 0.9.0
- Fix · GHSA-8xwq-xv2x-853r codebase-memory-mcp (npm) Fixed in 0.9.0 Advisory →
- Fix · GHSA-8xwq-xv2x-853r codebase-memory-mcp (PyPI) Fixed in 0.9.0 Advisory →
Timeline
- 2026-11-20 Threatist record created from CVE-2026-114495
- 2026-11-25 CISA SSVC decision points changed
- 2026-12-01 Alias added: GHSA-8xwq-xv2x-853r
- 2026-12-01 Fix available: PyPI/[email protected], npm/[email protected] · GHSA-8xwq-xv2x-853r
- 2026-12-01 CVSS score added · GHSA-8xwq-xv2x-853r
- 2026-12-01 Weakness changed · GHSA-8xwq-xv2x-853r
- 2026-12-01 6 new references · GHSA-8xwq-xv2x-853r
References
Other 5
- https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-8xwq-xv2x-853r
- https://github.com/DeusData/codebase-memory-mcp/pull/941
- https://github.com/DeusData/codebase-memory-mcp/commit/a2f09c7ce97205147f127c2c8b12861bf74a02a3
- https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0
- https://github.com/DeusData/codebase-memory-mcp
More DeusData vulnerabilities
- TI-2026-96050 Stack out-of-bounds write in codebase-memory-mcp query_graph CVSS 3.1HIGH 7.8
- TI-2026-96054 Catastrophic backtracking in .gitignore matching stalls indexing CVSS 3.1MEDIUM 5.5
- TI-2026-96053 Missing authorization in codebase-memory-mcp UI on Windows CVSS 3.1MEDIUM 5.5
- TI-2026-96052 Git option injection in codebase-memory-mcp lets attackers write files CVSS 3.1MEDIUM 5.5
Sources
- CVE-2026-114495 · CVE Program
- CVE-2026-114495 · NVD
- FIRST EPSS
- GHSA-8xwq-xv2x-853r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences