mcp-server-git Git LFS config command execution
A repository-controlled Git LFS configuration can cause mcp-server-git to run a named program when an MCP client invokes a read-only Git tool such as git_status. The advisory confirms this on version 2026.11.18 when Git LFS is installed.
The server hardens selected repository Git configuration keys, but its trusted Git LFS driver can read additional program-naming keys from the repository's own .git/config. A hostile repository with an LFS extension can therefore make git_status invoke the configured program as the server user.
The documented affected setup requires Git LFS and an MCP tool call against a repository whose .git directory the attacker controls. The official Docker image installs Git LFS system-wide, according to the advisory.
Takeaway
Treat a repository supplied to an MCP Git server as executable configuration, including LFS metadata. Upgrade or isolate the server until its Git LFS configuration handling is fixed.