codebase-memory-mcp: heap buffer overflow on artifact import (CVE-2026-114495)
Summary
Per the vendor advisory, codebase-memory-mcp versions before 0.9.0 (npm and pip) can overflow a heap buffer when indexing a repository that contains a .codebase-memory/ artifact, which is imported automatically. The advisory says this could cause a reliable crash and potentially code execution. It was fixed in 0.9.0. The vendor verified the correction in v0.12.1 and recommends that release, and it does not claim that all decompression resource-exhaustion cases are eliminated. The advisory page shows Nov 17, 2026 as the publication date, while the advisory record lists 2026-12-01.
Severity
Timeline
The vendor advisory page shows GHSA-8xwq-xv2x-853r as published.
The advisory record lists a published timestamp of 2026-12-01T00:39:56Z. (per the vendor advisory)
How it happened
Per the vendor advisory, indexing a repository that contains a .codebase-memory/ artifact imports the artifact automatically. Before 0.9.0, the capacity handed to the Zstandard decompressor was truncated to int. The advisory says this could corrupt heap memory with attacker-controlled bytes. In 0.9.0 the import path takes the decompressed size from the Zstandard frame header and validates it against the metadata and a size cap.
How to check your app
- all versions: Check which codebase-memory-mcp version is installed, whether from npm or pip.
- < 0.9.0: Check whether repositories you index contain a .codebase-memory/ artifact.
Sources
Corrections and updates
Cite this entry
- Title
- codebase-memory-mcp: heap buffer overflow on artifact import (CVE-2026-114495)
- Added
- Nov 30, 2026
- URL
- https://vibeincidents.com/incidents/codebase-memory-mcp-cve-2026-114495/
- Suggested citation
VibeIncidents. "codebase-memory-mcp: heap buffer overflow on artifact import (CVE-2026-114495)." Nov 30, 2026. https://vibeincidents.com/incidents/codebase-memory-mcp-cve-2026-114495/