{"id":"CVE-2026-114495","aliases":["GHSA-8xwq-xv2x-853r"],"title":"codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity","originalDescription":"codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP tools. Prior to 0.9.0, automatic import of a repository's .codebase-memory/ artifact allocated a decompression buffer using the attacker-controlled 64-bit original_size value from artifact.json but truncated that value to int when passing the destination capacity to the Zstandard decompressor. A value with bit 31 set became negative and was sign-extended to a large size_t, allowing the decompressor to write frame content beyond the actual allocation. Indexing a malicious repository containing the crafted artifact could corrupt heap memory with attacker-controlled bytes, causing a reliable crash and potentially code execution. This issue is fixed in version 0.9.0.","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00196,"percentile":0.05327},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"codebase-memory-mcp","range":"< 0.9.0","fixed":"0.9.0"},{"ecosystem":"PyPI","name":"codebase-memory-mcp","range":">=0, <0.9.0","fixed":"0.9.0"},{"ecosystem":"npm","name":"codebase-memory-mcp","range":"< 0.9.0","fixed":"0.9.0"},{"ecosystem":"npm","name":"codebase-memory-mcp","range":">=0, <0.9.0","fixed":"0.9.0"}],"references":[{"url":"https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-8xwq-xv2x-853r","type":"x_refsource_CONFIRM"},{"url":"https://github.com/DeusData/codebase-memory-mcp/pull/941","type":"x_refsource_MISC"},{"url":"https://github.com/DeusData/codebase-memory-mcp/commit/a2f09c7ce97205147f127c2c8b12861bf74a02a3","type":"x_refsource_MISC"},{"url":"https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0","type":"x_refsource_MISC"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/114xxx/CVE-2026-114495.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114495","type":"advisory"},{"url":"https://github.com/advisories/GHSA-8xwq-xv2x-853r","type":"other"},{"url":"https://github.com/DeusData/codebase-memory-mcp","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-25T05:27:19.568Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114495","license":"NVD terms of use","firstSeenAt":"2026-11-20T20:49:02.359Z"},{"name":"osv","at":"2026-12-01T01:25:30.094Z","url":"https://osv.dev/vulnerability/GHSA-8xwq-xv2x-853r","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T21:22:43.923Z"},{"name":"ghsa","at":"2026-12-01T10:46:27.874Z","url":"https://github.com/advisories/GHSA-8xwq-xv2x-853r","license":"CC-BY 4.0","firstSeenAt":"2026-12-01T00:52:03.194Z"},{"name":"cvelistV5","at":"2026-11-30T16:03:57.587Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-114495","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T20:13:34.289Z"}],"firstSeenAt":"2026-11-20T20:13:34.289Z","publishedAt":"2026-11-20T19:54:54.880Z","modifiedAt":"2026-12-01T01:00:04.488Z"}