mcp-server-git let a repo’s own config run commands, even on read-only calls

Five high severity flaws let a repository's own Git configuration run programs through the official MCP Git server, some via read-only tools. Our overview of all eight advisories, the third fix round in three weeks, and what to check today.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 3 min read
Share
Developer desk at night with a laptop showing an abstract branching version control graph, one branch glowing red
Image: AI-generated, i10X
On this page
  1. Why a status check could run someone else's program
  2. All eight advisories at a glance
  3. Three fix releases in 22 days
  4. What to check on your machine today
  5. What is still open

The Model Context Protocol project has shipped its third security release for mcp-server-git in three weeks. On 18 November 2026 it published eight advisories for its reference servers, five of them rated high, and every high one has the same root: a repository’s own Git configuration could make the server launch a program with the user’s rights. Several paths start from tools an agent treats as harmless, such as git_status or git_show. The fixes are in release v2.5.0: upgrade the Git server to 2026.11.18.

Why a status check could run someone else’s program

The reference Git server lets an AI agent inspect and edit local repositories. Since its November 11 release it promises never to run a program that a repository’s configuration names, and it enforces that by overriding risky Git settings on every command. The new reports show where that list had gaps: automatic garbage collection after a merge, a lazy fetch of a missing object, a config include that only appears after a merge, a filter driver whose name is an empty string, and nested diffs or checkouts inside submodules.

The catch is delivery. A normal git clone does not copy the remote’s .git/config, so cloning a hostile project is not enough. The attacker needs a repository that reaches the disk as a whole folder: an unpacked archive, a CI artifact, a shared drive, a vendored tree or a copied workspace. Once it is there, the advisories note that git_status is usually auto approved, returns a normal result while the command runs, and that --repository confinement does not help, because the hostile repository is the one inside the boundary.

All eight advisories at a glance

AdvisoryPackageTriggered bySeverity
GHSA-h2g3-rwxm-xfm3mcp-server-gitgit_merge, fast forwards included (auto maintenance runs gc.recentObjectsHook)High
GHSA-87qg-cmw8-jc5mmcp-server-gitRead-only tools such as git_show, git_diff, git_status, git_log when an object is missing (lazy fetch)High
GHSA-9vjp-x34c-xg6vmcp-server-gitgit_merge with a conflict: an include added by the merged branch runs during the abortHigh
GHSA-pm7p-vphh-2cg7mcp-server-gitgit_status with a filter driver named ""High
GHSA-8wv7-r664-7594mcp-server-gitDiff tools with diff.submodule=diff; git_checkout and git_add in repos with submodulesHigh
GHSA-r2q8-f657-4r56mcp-server-gitDiff and status tools: a crafted index reads files outside --repositoryModerate
GHSA-rq2p-q7c4-6g27server-filesystemDirectory listing tools after a symlink swap (entry names only)Low
GHSA-38j4-j742-j7r3server-everythinggzip resource fetch reaching private IPv4 hosts via NAT64 addressesLow

Three fix releases in 22 days

This is a pattern, not a one-off. On 28 October version 2026.10.28 closed a --repository bypass through a nested gitdir file (now CVE-2026-134465). On 11 November version 2026.11.11 fixed command execution via core.fsmonitor and introduced the hardening that this batch picks apart. A week later five new ways around it were patched. In January we already covered three chained flaws in the same Git server, and the class is not unique to MCP: earlier this month Mistral Vibe also ran code from a crafted Git config before its trust prompt appeared. Our count from the advisory pages: five of the eight reports state that AI tools helped find or write them up, so automated bug hunting is now aimed squarely at agent tooling.

What to check on your machine today

  • Look at how your MCP client starts the server. A pinned entry such as mcp-server-git@2026.11.11 stays vulnerable until you edit it, and uvx may reuse an older cached copy; uvx mcp-server-git@latest resolved to 2026.11.18 in our test on 24 November. For pip installs, pip show mcp-server-git shows the version (the server has no version flag).
  • Run git --version. The fixed server refuses Git older than 2.31, and older than 2.33 for repositories with a checked-out submodule.
  • Node servers: npm ls @modelcontextprotocol/server-filesystem. The release notes warn that package managers rank 2.4.0 below the old date versions (2025.x, 2026.x), so install @2.4.0 explicitly. server-everything needs 2.3.1.
  • Until you can upgrade, set GIT_NO_LAZY_FETCH=1 in the server’s environment block, stop auto approving git_merge, and do not let the agent merge branches in repositories you received from someone else.
  • As a standing rule, give agent Git tools a fresh clone, not an unpacked archive, artifact or shared folder. git clone writes its own clean config. Our piece on how one-step MCP runners drift between versions shows why it pays to know which version actually runs.

What is still open

The release notes list two known gaps: the --repository confinement check is not yet repeated after a tool writes the working tree, and directory listings in server-filesystem are not yet anchored on Windows. None of the advisories has a CVE ID yet, and none reports exploitation. More MCP server flaws are collected on our MCP security tracker; we will update this piece when the open items close.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Ternary Bonsai 2.5 27B: A 5.9 GB Local Agent Model With Near-FP16 Tool Scores
  2. Dell Books $60.2 Billion in AI Orders as Its AI Server Backlog Hits $132 Billion
  3. Skills over MCP Arrives in Claude: What Server Skills Change for Your Agents
  4. Ruflo MCP bridge flaw handed out shells and AI keys; a patch won’t undo poisoning
  5. DBHub MCP server hit by 9.8 zero-day: crafted SQL can beat its access check