Case · DiggingBeagle record

Codebase Memory MCP decompression header could overflow allocation size

The Codebase Memory MCP import path trusted a 64-bit compressed-artifact original-size field after conversion to a signed allocation size, allowing an attacker-supplied repository artifact to trigger an undersized buffer.

New to DiggingBeagle

Public disclosure: Nov 21, 2026

Scope

Practical controlled code execution and victim exploitation are not established in the inspected advisory; risk depends on automatic artifact import and reachable attacker-controlled data.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

The maintainer described native memory corruption from an imported compressed artifact; a theoretical RCE outcome must not be reported as a verified victim. Grade B reflects the bounded cited original report, experiment, code change or provider statement, not independent replication of every downstream consequence. Impact band is unknown because the available Claim evidence cannot support a comparable realized-harm magnitude.

Assessed Nov 23, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Source or controlled setup

    The Codebase Memory MCP import path trusted a 64-bit compressed-artifact original-size field after conversion to a signed allocation size, allowing an attacker-supplied repository artifact to trigger an undersized buffer.

    Boundary: Initial model, agent or software trust surface under evaluation

  2. 02

    Observed result and authority boundary

    The maintainer advisory documents memory corruption/crash risk and a fix in 0.9.0; arbitrary code execution is a possible impact, not an independently documented real-world exploitation result.

    Boundary: Agent-driven repository ingestion turns opaque binary artifacts into privileged native-memory operations without a model instruction ever needing to be malicious.

Timeline

  1. Nov 21, 2026
    Event type unspecified

    Research or security disclosure

    Original evidence was made public; the underlying tests or incidents may have taken place earlier.

  2. Nov 21, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-NOV23-CODEBASE-MEMORY-ARTIFACT-OVERFLOW-METHODThe Codebase Memory MCP import path trusted a 64-bit compressed-artifact original-size field after conversion to a signed allocation size, allowing an attacker-supplied repository artifact to trigger an undersized buffer.supported

Basis: reported finding

Link to claim
CLM-NOV23-CODEBASE-MEMORY-ARTIFACT-OVERFLOW-RESULTThe maintainer advisory documents memory corruption/crash risk and a fix in 0.9.0; arbitrary code execution is a possible impact, not an independently documented real-world exploitation result.supported

Basis: reported finding

Link to claim

Implications

Agent-driven repository ingestion turns opaque binary artifacts into privileged native-memory operations without a model instruction ever needing to be malicious.

Controls and mitigations

  • Reject out-of-range uncompressed size headers before integer conversion and validate decompressed length against fixed allocation limits.

Unknowns and contradictions

  • Practical controlled code execution and victim exploitation are not established in the inspected advisory; risk depends on automatic artifact import and reachable attacker-controlled data.

Sources and citation

Material revision history

  1. Nov 23, 2026 · Canonical change recorded · new in release · revision 278