highresolved

MCP Git empty driver names bypass repository command hardening

Repository hardening failed to match filter and merge drivers with empty names. A crafted repository could select such a driver and execute a command through a read-only tool call. The maintainer lists version 2026.11.18 as patched.

The matching expression required a nonempty driver name, while Git also accepted keys such as filter..clean and merge..driver. Those keys were not blanked by the hardening environment. This is a key-matching flaw, separate from late configuration includes and submodule configuration.

The maintainer's advisory lists 2026.11.18 as the patched version. This record describes the disclosed vulnerability and does not assert that DeepInspect would prevent local execution or host compromise.

Takeaway

Upgrade to mcp-server-git 2026.11.18 or later. Security filtering must cover every configuration syntax accepted by the underlying tool.

Sources

mcpmcp-server-git