{"id":"CVE-2026-114495","aliases":["GHSA-8xwq-xv2x-853r"],"url":"https://o3.security/vulnerability/CVE-2026-114495","summary":"codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity","details":"### Summary\n\nWhen 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.\n\n### Impact\n\nIndexing 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.\n\n### Patches\n\nFixed in stable 0.9.0. The import path takes the decompressed size from the Zstandard frame header, validates it against the metadata and a size cap, and uses the same size_t capacity for allocation and decompression. The decoded length is checked. codebase-memory-mcp has verified this correction in published v0.12.1, together with the size-mismatch regression. That regression is not a direct multi-gigabyte reproduction; this advisory does not claim that all decompression resource-exhaustion cases are eliminated.\n\n### Workarounds\n\nUpgrade 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.\n\n### Credit\n\nReported privately by Aaron (@aaronjmars). codebase-memory-mcp thanks them for the precise report and re-verification.","published":"2026-11-20T19:54:54.880Z","modified":"2026-11-25T20:45:36.510265080Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":{"score":0.00196,"percentile":0.05327,"asOf":"2026-11-30"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"codebase-memory-mcp","fixedVersion":"0.9.0"},{"ecosystem":"PyPI","name":"codebase-memory-mcp","fixedVersion":"0.9.0"}],"fix":{"url":"https://github.com/DeusData/codebase-memory-mcp/commit/a2f09c7ce97205147f127c2c8b12861bf74a02a3","label":"DeusData/codebase-memory-mcp@a2f09c7"},"references":[{"type":"WEB","url":"https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/114xxx/CVE-2026-114495.json"},{"type":"ADVISORY","url":"https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-8xwq-xv2x-853r"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114495"},{"type":"FIX","url":"https://github.com/DeusData/codebase-memory-mcp/commit/a2f09c7ce97205147f127c2c8b12861bf74a02a3"},{"type":"FIX","url":"https://github.com/DeusData/codebase-memory-mcp/pull/941"},{"type":"PACKAGE","url":"https://github.com/DeusData/codebase-memory-mcp"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-25T20:45:36.510265080Z"}}