Case · DiggingBeagle record

MCP Git repository confinement missed alternate object stores

A repository-controlled Git alternates file could cause Git-backed MCP read tools to access objects beyond the approved repository.

Public disclosure: Nov 9, 2026

Scope

The agent opens a repository containing a malicious or unexpected .git/objects/info/alternates reference. Git resolves objects using an external object directory without applying the MCP server repository-boundary policy to that alternate.

Assessment profile

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

Scoped Claim(s) link to SRC-2026-DB233-MCP-GIT-ALTERNATES; reviewed as vulnerability in research_demonstration. Only reported controlled behavior or proof-of-concept is established; no production victim or impact magnitude is measured.

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

At a glance

Mechanism and trust boundary

  1. 01

    Precondition and trust context

    The agent opens a repository containing a malicious or unexpected .git/objects/info/alternates reference.

  2. 02

    Crossed boundary

    Git resolves objects using an external object directory without applying the MCP server repository-boundary policy to that alternate.

  3. 03

    Observed limit

    Requires readable external object storage and suitable object identifiers; no field data theft or patch release is confirmed.

Timeline

  1. Nov 9, 2026
    Event type unspecified

    Initial documented finding

    MCP Git repository confinement missed alternate object stores

  2. Nov 9, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-R239-029-UPDATEThe November 11 Git MCP advisory documents a second repository-identity bypass in linked worktrees, where a common Git directory could be treated as an allowed separate Git directory; the patched 2026.11.11 version addresses external alternates and directory-role confusion.supported

Basis: reported finding

Link to claim
CLM-DB233-MCP-GIT-ALTERNATES-01The issue reports that objects/info/alternates redirects Git object lookup to paths beyond the configured repository root.supported

Basis: reported finding

Link to claim

Controls and mitigations

  • Resolve and constrain alternate object directories and Git configuration before allowing repository-scoped read operations.
  • Run Git operations in a filesystem sandbox whose readable objects cannot extend beyond the authorized repository.

Unknowns and contradictions

  • Requires readable external object storage and suitable object identifiers; no field data theft or patch release is confirmed.
  • Windows junction behavior and the completeness of all repository-root protections require follow-up testing.

Sources and citation

Material revision history

  1. Nov 12, 2026 · Published version · first publication · revision 240