npm · PyPI
CVE-2026-114495
codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity
- Severity
- High 7.8
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 0.9.0
- Exploit chance
- 0.2% in the next 30 daysHigher than 15% of CVEs. EPSS by FIRST, 1 Dec 2026
- Weakness
- Integer overflow (CWE-190)Incorrect numeric conversion (CWE-681)Out-of-bounds write (CWE-787)
- Attack
- Needs local access · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Also known as
- GHSA-8xwq-xv2x-853r
- Sources
- OSV.dev and GitHub
Description
When a repository contains a .codebase-memory/ artifact, indexing it imports the artifact automatically. Before 0.9.0 the decompression buffer was allocated with the 64-bit original_size from the attacker-controlled artifact.json, but the capacity handed to the Zstandard decompressor was truncated to int. A size with bit 31 set became negative, was sign-extended back to a huge size_t, and the decompressor wrote the frame's full content past the real allocation.
Indexing a malicious repository could corrupt heap memory with attacker-controlled bytes: a reliable crash and potentially code execution. No extra interaction beyond indexing the repository is needed.
Workarounds
Upgrade to a fixed release; the codebase-memory-mcp verified recommendation is v0.12.1. On affected versions, avoid indexing untrusted repositories that contain a .codebase-memory/ artifact.
Affected software
| Software | Affected versions |
|---|---|
codebase-memory-mcpPyPI · osv:PyPI:codebase-memory-mcp |
|
codebase-memory-mcpnpm · osv:npm:codebase-memory-mcp |
|
About codebase-memory-mcp
- Weekly downloads (PyPI)
- 1,862PyPI Stats, 1 Dec 2026
Vulnerabilities in codebase-memory-mcp
- In our list
- 5
- Published in the last 12 months
- 5
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-114499codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexerMedium 5.5 1 Dec 2026
- CVE-2026-114497codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processesMedium 5.5 1 Dec 2026
- CVE-2026-114496codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the projectMedium 5.5 1 Dec 2026
- CVE-2026-114494codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 itemsHigh 7.8 1 Dec 2026
About codebase-memory-mcp
- Weekly downloads (npm)
- 10,962npm, 1 Dec 2026
Vulnerabilities in codebase-memory-mcp
- In our list
- 5
- Published in the last 12 months
- 5
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-114499codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexerMedium 5.5 1 Dec 2026
- CVE-2026-114497codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processesMedium 5.5 1 Dec 2026
- CVE-2026-114496codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the projectMedium 5.5 1 Dec 2026
- CVE-2026-114494codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 itemsHigh 7.8 1 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-114495
- GitHub Advisory Database https://github.com/advisories/GHSA-8xwq-xv2x-853r