CVE-2026-114495: codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity
Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-8xwq-xv2x-853r
Summary
A heap buffer overflow exists in codebase-memory-mcp due to integer-truncated decompression capacity during artifact import. Engineering and security teams using vulnerable versions should upgrade immediately.
Who is affected
Deployments that index untrusted repositories containing a .codebase-memory/ artifact are affected. Attackers can achieve a reliable crash or potential code execution by supplying a crafted repository without requiring extra user interaction beyond indexing.
Exploitability
The vulnerability requires local access with low attack complexity and user interaction (indexing a repository), yielding a CVSS base score of 7.8 (High) for confidentiality, integrity, and availability impact. The EPSS score is 0.002 with no CISA KEV listing, indicating current exploitation in the wild is not documented.
Remediation
- Upgrade codebase-memory-mcp to version 0.9.0 or the verified v0.12.1 release.
- Avoid indexing untrusted repositories containing a .codebase-memory/ artifact if running an affected version.
How to check your project
- Check project dependency files (such as requirements.txt, setup.py, pyproject.toml, or package.json) for the codebase-memory-mcp package.
- Verify whether the installed version of codebase-memory-mcp falls within the affected range (introduced 0, fixed 0.9.0).
Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | codebase-memory-mcp |
>= 0, < 0.9.0 | 0.9.0 | python -m pip install 'codebase-memory-mcp>=0.9.0' |
| npm | codebase-memory-mcp |
>= 0, < 0.9.0 | 0.9.0 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What causes the vulnerability?
The vulnerability is caused by a heap buffer overflow where the decompression capacity handed to the Zstandard decompressor was truncated to an integer, leading to a huge size_t allocation mismatch.
What packages are affected?
The PyPI and npm packages for codebase-memory-mcp introduced in versions prior to 0.9.0 are affected.
Is there active exploitation documented?
Active exploitation is not documented; the CISA Known Exploited Vulnerabilities status is no.
Original advisory description
References
- WEB https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-8xwq-xv2x-853r
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-114495
- WEB https://github.com/DeusData/codebase-memory-mcp/pull/941
- WEB https://github.com/DeusData/codebase-memory-mcp/commit/a2f09c7ce97205147f127c2c8b12861bf74a02a3
- PACKAGE https://github.com/DeusData/codebase-memory-mcp
- WEB https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0
Source records: GHSA-8xwq-xv2x-853r (OSV.dev) · EPSS by FIRST, 2026-12-01.