Resolved

A read-only Git tool ran a program the repo named

A Git server said it would never run a program a repository named. With Git's LFS driver installed, it did, and the run left no trace in the output.

Logged 29 Nov 2026

The promise and the driver

The mcp-server-git project tells users the server will never run a program that a repository names, which was true only while Git's LFS driver stayed out of the loop. When Git's LFS driver is installed, as it is in the project's own Docker image, the server runs whatever the repository's .git/config points it at. The advisory is High, 7.8.

The advisory lists the configuration keys that turn a hostile repository into a running program: an LFS clean filter, the smudge and custom transfer hooks, plus core.sshCommand, credential.helper and core.askpass. Because the hostile repository is the one the user allowed, the --repository flag offers no protection at all, and the trigger can be the read-only git_status call. No network is needed.

A clean tree, and no sign

The run leaves the working tree looking clean, with no trace in the output that a program executed, so a user scanning for anomalies sees nothing unusual. The fix empties those keys at repository scope and sets GIT_LFS_SKIP_SMUDGE, and it ships in version 2026.11.27. The patch is out.

Log take: The boundary was a single sentence in a README, and a driver the server trusts by default undid it. A tool built to read a repository can still execute a program that repository names, and the run leaves the working tree looking clean (interpretation; vendor advisory, read through search and aggregators). Nothing in the output looks wrong.

Sources

Research