Skip to content
MCP Reference Servers·Indexed by this site · Originally published· Event →SelectedAttention44

MCP Git server fixes command execution vulnerability in read-only tools

AI summary

The MCP reference server mcp-server-git fixes an arbitrary command execution vulnerability (GHSA-6hqx-gqrx-c5r2, CVSS 4.0 score 7.0); versions before 2026.11.11 are affected, and it is fixed in 2026.11.11. When the server runs Git commands, it does not neutralize the repository's own .git/config; after an attacker plants a command in a malicious repository's config via core.fsmonitor or diff.external, merely invoking the read-only tools git_status and git_diff_unstaged executes that program with the MCP server's privileges, inheriting its environment variables (including credentials in the client's env block), without triggering client approval or a sandbox, and the tool returns results that look normal. This vulnerability belongs to the GitSpawn class; GitHub Copilot CLI (CVE-2026-45033), Goose, and Hermes Agent have had similar CVEs.

Why it was selected

The announcement includes a complete PoC and fix details, so teams deploying Git MCP servers can use it to check versions and to understand the trigger conditions and mitigation approaches for the GitSpawn attack class.

Read originalgithub.com