Case · DiggingBeagle record

Read-only Git MCP calls executed commands supplied by repository configuration

A Git repository is not passive input. Its local configuration can instruct Git to launch helper programs, including a filesystem monitor. In the reference Git MCP server, apparently read-only status and diff tools could invoke those programs with the MCP server’s filesystem and environment privileges.

Public disclosure: Nov 11, 2026

Scope

Reference mcp-server-git on a workspace with attacker-controlled retained Git configuration; no reported exploitation against a production victim.

Assessment profile

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

The upstream advisory shows Git helper execution from retained local repository configuration. A clean clone lacks that exact .git/config precondition. An impact band is not assigned because the available Claims do not establish a comparable verified severity or quantified harm.

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

At a glance

Mechanism and trust boundary

  1. 01

    A repository retaining its local .git/config is supplied to the Git MCP server.

  2. 02

    Git status or diff invokes a repository-configured helper such as core.fsmonitor despite the tool being nominally read-only.

  3. 03

    The helper runs with the MCP service identity and may observe its ambient files or environment.

Claims & evidence

CLM-R239-028-COREGHSA-6hqx-gqrx-c5r2 demonstrates repository-configured program execution from read-only Git MCP tools before the 2026.11.11 patch.supported

Basis: reported finding

Link to claim
CLM-R242-GIT-REPRO-7-SINKSA separate laboratory comparison reported execution in all seven exercised repository-controlled Git helper paths on mcp-server-git 2026.11.4 and in none of those seven paths on 2026.11.11; this is a controlled patch regression, not evidence of exploitation in the wild.supported

Basis: reported finding

Link to claim

Implications

The observed effect is limited to the study or disclosed setting; deployment and independent impact remain unestablished.

Controls and mitigations

  • Patch to mcp-server-git 2026.11.11, suppress repository-controlled Git execution hooks, and isolate untrusted repositories from MCP secrets and host privileges.

Unknowns and contradictions

  • The exact repository-transfer route, host permissions and other Git subprocess sinks vary by deployment.

Sources and citation

Material revision history

  1. Nov 12, 2026 · Published version · first publication · revision 241
  2. Nov 13, 2026 · Published version · material revision · revision 243Public fields changed: claims, narrative, references