Case · DiggingBeagle record

Git MCP merge abort could reread a malicious config include added after validation

Git configuration changed between an initial check and a later abort, allowing an untrusted driver to execute during cleanup.

Published by DiggingBeagle:

Scope

Git MCP server 2026.11.11; a repository and merge state can be controlled so a previously absent include is materialized later.

Assessment profile

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

Vendor or researcher primary evidence establishes the stated mechanism and its bounds; the public record does not support a population-wide impact score, prevalence or generalization to installations without the prerequisites.

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

At a glance

Mechanism and trust boundary

  1. 01

    Merge creates a previously missing config include

    A repository branch makes an included Git configuration file appear after the server has enumerated and restricted command-bearing settings.

    Boundary: repository branch content -> Git configuration state

  2. 02

    Abort rereads the new settings

    A conflicting merge triggers git merge --abort, which starts another Git process and can execute the newly resolved filter.

    Boundary: initial hardening snapshot -> cleanup-time execution

Claims & evidence

CLM-ENR271-GITMCP-ABORTThe Git MCP advisory describes an initially missing included configuration file introduced during a conflicting merge and executed when git merge --abort rereads repository settings.supported

Basis: reported finding

Link to claim
CLM-2026-NOV21-GITMCP-ABORT-1Git configuration changed between an initial check and a later abort, allowing an untrusted driver to execute during cleanup.supported

Basis: reported finding

Link to claim
CLM-2026-NOV21-GITMCP-ABORT-2The maintainer identifies 2026.11.18 as the fixed Git MCP release for this mechanism.supported

Basis: reported finding

Link to claim

Implications

The defensive Git configuration was determined before the merge, but the branch being merged could create a previously missing included config file. The later abort starts a new Git process and rereads that file, allowing a filter command that the first hardening pass never enumerated. The significance is a changed trust boundary during cleanup, not a general claim that aborting merges always executes code.

Controls and mitigations

  • Upgrade the MCP Git server to the fixed 2026.11.18 release and keep its operating-system privileges restricted.
  • Test repository-originated Git configurations and nested state separately from the chat model, using a synthetic repository and non-sensitive host files.

Unknowns and contradictions

  • The advisory establishes a controlled reproduction, not that every git merge abort can execute outside code or that an attacker exploited customer systems.

Sources and citation

Material revision history

  1. Nov 21, 2026 · Published version · first publication · revision 272