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

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-11-20T19:54:54.880Z
- Modified: 2026-12-01T01:00:04.488Z
- Also known as: GHSA-8xwq-xv2x-853r
- Weaknesses: CWE-190, CWE-681, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- DeusData codebase-memory-mcp: < 0.9.0
- codebase-memory-mcp (npm): before 0.9.0
- codebase-memory-mcp (PyPI): before 0.9.0

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-8xwq-xv2x-853r> (web)
- <https://github.com/DeusData/codebase-memory-mcp/pull/941> (web)
- <https://github.com/DeusData/codebase-memory-mcp/commit/a2f09c7ce97205147f127c2c8b12861bf74a02a3> (web)
- <https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-114495> (advisory)
- <https://github.com/DeusData/codebase-memory-mcp> (package)

## Sources

- CVE List: [CVE-2026-114495](https://www.cve.org/CVERecord?id=CVE-2026-114495), CVE Terms of Use, modified 2026-11-25
- GitHub Advisory Database: [GHSA-8xwq-xv2x-853r](https://github.com/advisories/GHSA-8xwq-xv2x-853r), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-114495](https://nvd.nist.gov/vuln/detail/CVE-2026-114495), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-114495 · Whole record: https://cve.day/CVE-2026-114495.json · Rebuilt by cve.day 2026-12-01T01:27:25.959Z
