The report
A Git tool can appear to be answering a coding assistant's ordinary request for diff or merge information while Git itself consults repository-controlled configuration and launches an unexpected program. Six advisories published on November 18 for the reference mcp-server-git document different routes through that boundary. They are not six observations of the same field attack, nor do they establish that the model independently decided to execute malicious software.
| Advisory | Repository-controlled route | Observed or potential effect |
|---|---|---|
| Merge include | A merged branch introduces a config include after an earlier validation | An abort or subsequent Git operation rereads the include and can invoke commands |
| Filter name | An empty-name filter evades a hardening expression | A read-style Git operation can invoke a configured filter program |
| Maintenance hook | gc.recentObjectsHook remains outside the pinned configuration |
Post-merge maintenance can run a repository-selected command |
| Index path | A crafted index refers outside the --repository root |
A nominal read can include outside-file content, without shell execution |
| Lazy fetch | A promisor remote plus missing object triggers a fetch | A configured transport helper can execute during a read |
| Nested config | A submodule carries its own diff or clean-filter settings | Diff, add or checkout can invoke nested helpers |
The severity and prerequisites differ. The maintenance-hook route requires compatible Git versions and a maintenance-triggering repository state; the index-path route is primarily a confinement and read disclosure problem; lazy fetching needs missing objects. The upstream advisories name 2026.11.18 as the patched mcp-server-git release for these mechanisms. A patched package version is more specific than a blanket assurance that every Git or MCP client is safe.
The research question is no longer whether a read operation can have hidden side effects in principle. The new disclosures show several execution sinks that a top-level configuration filter can miss when nested repositories, object fetches, merge transitions and post-operation maintenance are involved. Hardening must be checked against the Git process that actually runs with the MCP server's privileges, while real exploitation remains distinct from maintainers' reproductions and proof-of-concept scenarios.