DEV Community

PyVren
PyVren

Posted on Originally published at pyvren.com

codebase-memory-mcp CVEs: Heap Overflow, Path Traversal, and DoS

TL;DR: Upgrade codebase-memory-mcp to v0.12.1 to fix heap overflow, path traversal, and regex DoS flaws in artifact import and graph query paths.

codebase-memory-mcp is an MCP server that indexes local repositories and exposes graph-query and artifact-import tools to LLM agents. The disclosed flaws show how a single malicious repository can move from a denial-of-service condition to heap or stack memory corruption inside the server process. Because agents often index repositories they did not author, the trust boundary is the repository contents, not the user who submitted them.

Verified Key Facts

Metric / Signal Finding
CVE-2026-114495 CVSS 7.8 High — heap buffer overflow via int-truncated decompression capacity
CVE-2026-114494 CVSS 7.8 High — stack out-of-bounds write in query_graph projection
CVE-2026-114499 CVSS 5.5 Moderate — catastrophic backtracking in .gitignore glob matching
Patched npm/pip versions 0.9.0 for CVE-2026-114495 and CVE-2026-114494; 0.10.0 for CVE-2026-114499
Verified release recommendation v0.12.1 contains all verified fixes
Regex matching budget 20,000-step shared budget in v0.12.1

Inside the Full Technical Dispatch

  • Threat Model & Attack Surface Matrix
  • Why Naive Prompt Filters Fail
  • Defense-in-Depth & Sandbox Isolation Architecture
  • Runnable Guardrail Policy / Verification Code
  • Operational Tradeoffs & False-Positive Budget

Read the full analysis, runnable configurations, benchmark tables, and primary source citations on Pyvren.

Originally published on Pyvren by Hamdi Soudani.

Top comments (0)