HOL-VULN-2026-0022HOL vulnerability recordCVSS 4.0 7.8 · HighPublic

Heap buffer overflow on artifact import via int-truncated decompression capacity in DeusData/codebase-memory-mcp

In codebase-memory-mcp below 0.9.0, indexing a repository that contains a .codebase-memory/ artifact imports that artifact automatically. The import allocated its decompression buffer using the 64-bit original_size value taken from the artifact's own artifact.json, a file the repository controls, but handed the Zstandard decompressor a capacity truncated to int. A size with bit 31 set turned negative, was sign-extended back to a very large size_t, and the decompressor wrote the frame's full content past the real allocation. Indexing a malicious repository could therefore corrupt heap memory with attacker-controlled bytes: a reliable crash, and potentially code execution. No interaction beyond indexing the repository is needed. The fix in 0.9.0 takes the decompressed size from the Zstandard frame header, validates it against the metadata and a size cap, uses the same size_t capacity for allocation and decompression, and checks the decoded length. The advisory lists codebase-memory-mcp below 0.9.0 as affected on npm and pip, and 0.9.0 as patched. CVE-2026-114495 is assigned.

Affected artifact
DeusData/codebase-memory-mcp — artifact import on indexing (.codebase-memory/)mcp server
Affected versions
codebase-memory-mcp ≥ 0 to < 0.9.0; codebase-memory-mcp ≥ 0 to < 0.9.0
Fixed in
0.9.0
Last verified
2026-12-05

Severity

CVSS 4.0 score 7.8 (High), scored by HOL.

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

What this means

GHSA-8xwq-xv2x-853r / CVE-2026-114495: in codebase-memory-mcp, importing a .codebase-memory/ artifact during indexing truncated the decompression capacity to int, so a crafted artifact size overflowed the heap buffer. Fixed in 0.9.0; upgrade from below 0.9.0.

What to do

Upgrade codebase-memory-mcp to 0.9.0 or later; the advisory's verified recommendation is v0.12.1. On affected versions, do not index untrusted repositories that contain a .codebase-memory/ artifact.

Evidence

Precondition. A user indexes a repository that contains a crafted .codebase-memory/ artifact, on codebase-memory-mcp below 0.9.0.

Source proof. Per the advisory, a .codebase-memory/ artifact whose artifact.json carries an original_size with bit 31 set makes the import pass a truncated, sign-extended capacity to the decompressor, which writes the frame content past the allocated buffer when the repository is indexed. HOL did not run the server; this rests on the advisory.

Version determination. Determined by range — The advisory states codebase-memory-mcp below 0.9.0 is affected on npm and pip, patched in 0.9.0.

Disclosure

Disclosure state: independent public · Publisher: DeusData/codebase-memory-mcp

Naming decision: named. Vendor named as drafted. Finding already public with fix published; naming call sits with this job under Nov 24-25 2026 rules.

Vendor response: fixed — Fix published in 0.9.0.

  1. 2026-11-17 · vendor action

    Maintainers published advisory GHSA-8xwq-xv2x-853r with the fix in 0.9.0.

  2. 2026-12-05 · guard update

    Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in 0.9.0, CVE-2026-114495 assigned.

  3. 2026-12-05 · guard update

    Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in 0.9.0, CVE-2026-114495 assigned.

  4. 2026-12-05 · disclosure

    Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in 0.9.0, CVE-2026-114495 assigned.

Affected artifact references

Cite this record

[HOL-VULN-2026-0022] Heap buffer overflow on artifact import via int-truncated decompression capacity in DeusData/codebase-memory-mcp — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0022

Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0022

Found an error in this record, or want to appeal it? Report an issue or appeal.

Appeal or correct this record

Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.

Appeal or correct HOL-VULN-2026-0022