Engineer of One
[ ← Journal ]

Read-only git status could run a program the repo named

Covers 2026-11-10 to 2026-11-12 Engineer of One Editorial

On November 11, 2026, cliffhall published GHSA-6hqx-gqrx-c5r2, a high-severity advisory for the pip package mcp-server-git. The report in that advisory calls it the reference Git MCP server in modelcontextprotocol/servers. The affected range is every version before 2026.11.11. The patched version is 2026.11.11.

The original report inside the advisory was written against version 2026.11.4. It scores the issue 7.0 on CVSS 4.0 and rates that score high. It names CWE-94, Improper Control of Generation of Code, and CWE-829, Inclusion of Functionality from Untrusted Control Sphere. It says the same behavior appeared on 2026.10.28, with and without --repository confinement. The report’s fixed-versions line says none as of 2026-11-07. The advisory says that line predates the fix.

What a status call could run

The report says the server runs Git commands inside repositories chosen by the client without neutralising the repository’s own configuration. It says Git honours command-bearing keys from .git/config, and that core.fsmonitor names a program Git executes whenever it refreshes the index. It says a read-only git_status call therefore executes an attacker-chosen program with the MCP server’s privileges: its user, its environment, and its filesystem access.

The report says this happens without an approval prompt, and outside any sandbox that governs the model’s own tool calls. It says that, from the client’s perspective, the call asked Git for status.

The report names a second key, diff.external, reached through the read-only tools git_diff_unstaged and git_diff_staged. It says the server’s only configuration override was core.quotepath=false. It also says the tool can return ordinary status text, so the call need not look unusual. The report calls git_status the most frequently called tool in the server, because models use it to orient themselves. That sentence is the report’s description. It is not a separate count of calls.

Which folders can carry the setting

The report says the configuration lives in .git/config, so the folder has to arrive with that directory intact.

The report is specific about two paths that do not carry another machine’s config. It says a plain git clone does not copy the server-side .git/config, and that GitHub’s source ZIP excludes .git. It says those two channels alone do not carry the payload.

The report names paths that can. A project archive or a CI artifact. A backup. A shared network folder. A vendored dependency tree. An agent workspace whose files were copied rather than cloned. The report says the user does not have to run anything inside the repository, and that one git_status call from the MCP server is enough.

What 2026.11.11 changes

The advisory says the fix shipped in mcp-server-git 2026.11.11, in pull request 5514, and that it covers every sink the report lists, not only core.fsmonitor.

The advisory says every Git command the server runs sets overrides through GIT_CONFIG_COUNT, which outranks every configuration file and is inherited by the Git processes Git itself starts. core.fsmonitor is false. core.hooksPath points at the null device, so no hook runs. commit.gpgSign and merge.verifySignatures are false. submodule.recurse, status.submoduleSummary, and merge.autoStash are false. core.pager is cat.

The advisory says every filter driver, merge driver, and branch.<name>.mergeOptions entry that the repository’s own configuration defines is emptied. Drivers from the user’s global or system configuration, such as Git LFS, keep working. Every diff shown as a patch passes --no-ext-diff and --no-textconv. git_status and the diff tools pass --ignore-submodules=dirty, so Git does not look inside a submodule under that submodule’s own configuration.

The advisory says a Git older than 2.31, which ignores GIT_CONFIG_COUNT, is refused rather than run unprotected. It says git_log and git_show do not run git log or git show, so log.showSignature is never consulted.

The advisory says there is no workaround for affected versions other than upgrading. Its next sentence is the limit that remains until then: “Until then, point the server only at repositories whose .git directory you trust.”

Four lines for each folder

The check below is a record. It does not run code from a repository. For each folder a coding agent may open, write four lines.

  1. Arrival. Clone, GitHub source ZIP, or a copy that can keep .git: an archive, a CI artifact, a shared folder, a vendored tree, or a copied workspace.
  2. Config. Whether .git/config is in that folder. A clone and a GitHub source ZIP do not bring another machine’s config. The other arrivals can.
  3. Package. The mcp-server-git version in the environment that starts the server, written next to 2026.11.11. Read it from that environment’s package list or lockfile.
  4. Git. The version of Git on that same machine. The advisory says the patched server refuses Git older than 2.31.

One folder, one set of lines. A clone on 2026.11.11 with Git 2.31 or newer is a different row from a copied workspace still on 2026.11.4.

What to do this week

  • Fill in the four lines for every folder the agent can open, including vendored trees and copied workspaces.
  • If the package line is below 2026.11.11, that version is inside the advisory’s affected range. The advisory says the response is to upgrade, and that until then the server should see only a .git directory you trust.
  • Write Git’s version on the same note as the package. The patched server, the advisory says, refuses Git older than 2.31 rather than run it unprotected.
  • Do not read a normal status message as proof that only status ran. The report says the tool result can be ordinary status text.

Keep the version, the arrival, and the Git line together. The advisory is about those three facts at once.

Sources

  1. mcp-server-git: arbitrary command execution via a repository's own Git configuration (core.fsmonitor) during read-only tools · GitHub · 2026-11-11

Researched and drafted with AI assistance, checked against the sources above.

See how this could work in your day.

See a worked example →