The Git MCP server validated repository configuration before a merge, but the merge could introduce a configuration include not present during that check. When the agent aborted the merge, Git reread configuration and could execute a newly supplied merge driver. The security boundary was therefore checked at one point but not maintained during the later…
Inspect the ClaimsCase · 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:
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.
Evidence basis: CLM-2026-NOV21-GITMCP-ABORT-1 · CLM-2026-NOV21-GITMCP-ABORT-2 · CLM-ENR271-GITMCP-ABORT · MCP Git server advisory GHSA-9vjp-x34c-xg6v on git mcp merge abort could reread a malicious config include added after validation
At a glance
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…
Read the implicationsThe advisory establishes a controlled reproduction, not that every git merge abort can execute outside code or that an attacker exploited customer systems.
Limits and uncertaintyFull account
The Git MCP server validated repository configuration before a merge, but the merge could introduce a configuration include not present during that check. When the agent aborted the merge, Git reread configuration and could execute a newly supplied merge driver. The security boundary was therefore checked at one point but not maintained during the later cleanup operation. The patch handles this unsafe abort path.
The advisory establishes a controlled reproduction, not that every git merge abort can execute outside code or that an attacker exploited customer systems.
Mechanism and trust boundary
- 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
- 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
- supportsMCP Git server advisory GHSA-9vjp-x34c-xg6v on git mcp merge abort could reread a malicious config include added after validationprimary disclosure
Summary: missing include, conflicting merge and abort-time configuration reread
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
- supportsMCP Git server advisory GHSA-9vjp-x34c-xg6v on git mcp merge abort could reread a malicious config include added after validationprimary disclosure
Security advisory: merge abort after configuration include mutation
CLM-2026-NOV21-GITMCP-ABORT-2The maintainer identifies 2026.11.18 as the fixed Git MCP release for this mechanism.supported
Basis: reported finding
- supportsMCP Git server advisory GHSA-9vjp-x34c-xg6v on git mcp merge abort could reread a malicious config include added after validationprimary disclosure
Security advisory: patched version and affected range
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
- Nov 21, 2026 · Published version · first publication · revision 272