A “read-only” Git tool could run code on your machine.
The maintainers of the official Model Context Protocol servers have published a high-severity advisory for mcp-server-git. In certain setups, the git_status tool, which only reads, can run a program named inside a repository’s own configuration. The fix is in version 2026.11.27.

- The advisory is GHSA-6663-fm5v-gqm5, rated High (CVSS 7.8). It has no CVE number yet.
- The server ran programs named in a repository’s .git/config through the Git LFS filter, triggered by the git_status tool.
- The advisory says the result is “code execution as the user who runs the server”, and the --repository option gives no protection.
- It needs an attacker-controlled .git directory, such as an unpacked archive or shared folder, and a Git LFS filter set up in the user’s Git config. A plain git clone of a hostile repository is not enough.
- Versions before 2026.11.27 are affected. The reporter is credited as sholub-dev.

What happened
On 27 November 2026, the maintainers of the Model Context Protocol servers project published security advisory GHSA-6663-fm5v-gqm5 for mcp-server-git, the reference Git server for AI agents. The advisory is titled “mcp-server-git runs programs named by a repository’s own .git/config through the Git LFS filter”.
When an agent calls the git_status tool, the server can end up running a program named inside the repository’s own Git configuration, through the Git LFS filter. The advisory says this gives code execution as the user who runs the server. Two conditions apply: the attacker must control the .git directory the server looks at, for example in an unpacked archive, a shared folder or a vendored tree, and a Git LFS filter driver must be set up in the user’s system or global Git config. The advisory says a plain git clone of a hostile repository is not enough. The maintainers tested it on macOS only, and did not verify Windows, Linux or the Docker image. The advisory credits the report to sholub-dev and notes it was submitted with AI assistance.
Who is affected
- Anyone running mcp-server-git before version 2026.11.27, for example behind an AI coding assistant
- Teams whose agents open folders, archives or repositories that came from outside
- Setups where Git LFS is installed and configured system-wide
Why it matters
A tool marked as read-only is easy to approve automatically, and agents often call a status check without asking. This flaw shows why that label cannot be the only safeguard: the harm came from what the repository’s own files could make Git do. It matters most when an agent works on content from people you do not control.
What to do now
- Update mcp-server-git to 2026.11.27 or later.
- Do not point an agent at archives, shared folders or repositories you did not create without checking them first.
- Run agent tool servers as a low-privilege user in a sandbox, so a bug cannot reach your keys or files.
- Review which agent tools run without approval, and what each one can really do.
- Check whether Git LFS is configured system-wide on machines where agents run, and limit it where it is not needed.
How HanulSec helps
- We list every tool your agents can call, which ones run without approval, and what each can really do.
- We test your agent tool servers against hostile repositories, archives and files.
- We check what a compromised tool server can reach on the machine, and help you cut that down.
Tell us what you run and we will send a fixed-price proposal within one business day. Request a quote.