Case · DiggingBeagle record

Git MCP empty-name filter config escaped a validation expression

A crafted empty-name Git filter bypassed configuration checks and invoked external processing during a read-style diff.

Published by DiggingBeagle:

Scope

Git MCP server 2026.11.11; attacker-controlled repository configuration includes a malformed filter key.

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

    Repository specifies an empty-name driver

    A crafted repository supplies Git filter or merge keys with an empty driver identifier that the server safety regex does not match.

    Boundary: untrusted Git configuration -> hardening parser

  2. 02

    Git recognizes and invokes the driver

    Normal diff, add or checkout operations can run the command despite the tool being treated as read-only or safe.

    Boundary: filtered configuration -> Git process execution

Claims & evidence

CLM-ENR271-GITMCP-FILTERThe Git MCP advisory identifies filter..clean, filter..smudge and merge..driver as valid Git keys excluded by the hardening regex that expected at least one driver-name character.supported

Basis: reported finding

Link to claim
CLM-2026-NOV21-GITMCP-FILTER-1A crafted empty-name Git filter bypassed configuration checks and invoked external processing during a read-style diff.supported

Basis: reported finding

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

Basis: reported finding

Link to claim

Implications

The command filter was bypassed because the application safety regex required a nonempty driver name while Git itself accepted an empty one. A repository author could therefore name a filter that the hardening pass missed and trigger it through otherwise ordinary Git operations. The relevant prevention is matching Git parser semantics, not merely refusing suspicious chat requests.

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 finding is based on the maintainer advisory and reproduction; no confirmed external execution is reported in production, and the attack needs a repository with the malicious configuration.

Sources and citation

Material revision history

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