The server tried to reject executable Git filters through a regex that assumed a non-empty filter name. A crafted configuration using filter..clean avoided that recognition while Git still interpreted the setting when a tool evaluated diff content. The case demonstrates how syntax accepted by the underlying Git parser can differ from syntax accepted by an…
Inspect the ClaimsCase · 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:
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.
Evidence basis: CLM-2026-NOV21-GITMCP-FILTER-1 · CLM-2026-NOV21-GITMCP-FILTER-2 · CLM-ENR271-GITMCP-FILTER · MCP Git server advisory GHSA-pm7p-vphh-2cg7 on git mcp empty-name filter config escaped a validation expression
At a glance
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…
Read the implicationsThe 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.
Limits and uncertaintyFull account
The server tried to reject executable Git filters through a regex that assumed a non-empty filter name. A crafted configuration using filter..clean avoided that recognition while Git still interpreted the setting when a tool evaluated diff content. The case demonstrates how syntax accepted by the underlying Git parser can differ from syntax accepted by an application-level safety validator. The November 18 release closes the specific filter configuration escape.
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.
Mechanism and trust boundary
- 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
- 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
- supportsMCP Git server advisory GHSA-pm7p-vphh-2cg7 on git mcp empty-name filter config escaped a validation expressionprimary disclosure
Summary and root cause: regex pattern and empty Git driver name
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
- supportsMCP Git server advisory GHSA-pm7p-vphh-2cg7 on git mcp empty-name filter config escaped a validation expressionprimary disclosure
Security advisory: empty filter name bypass, diff and clean filter
CLM-2026-NOV21-GITMCP-FILTER-2The maintainer identifies 2026.11.18 as the fixed Git MCP release for this mechanism.supported
Basis: reported finding
- supportsMCP Git server advisory GHSA-pm7p-vphh-2cg7 on git mcp empty-name filter config escaped a validation expressionprimary disclosure
Security advisory: patched version and affected range
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
- Nov 21, 2026 · Published version · first publication · revision 272