A Git repository is not passive input. Its local configuration can instruct Git to launch helper programs, including a filesystem monitor. In the reference Git MCP server, apparently read-only status and diff tools could invoke those programs with the MCP server’s filesystem and environment privileges. The reporter reproduced execution with an…
Inspect the ClaimsCase · DiggingBeagle record
Read-only Git MCP calls executed commands supplied by repository configuration
A Git repository is not passive input. Its local configuration can instruct Git to launch helper programs, including a filesystem monitor. In the reference Git MCP server, apparently read-only status and diff tools could invoke those programs with the MCP server’s filesystem and environment privileges.
Public disclosure: Nov 11, 2026
Reference mcp-server-git on a workspace with attacker-controlled retained Git configuration; no reported exploitation against a production victim.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The upstream advisory shows Git helper execution from retained local repository configuration. A clean clone lacks that exact .git/config precondition. An impact band is not assigned because the available Claims do not establish a comparable verified severity or quantified harm.
Assessed Nov 12, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-R239-028-CORE · Reference Git MCP server read-only operations executed malicious .git/config commands
At a glance
The observed effect is limited to the study or disclosed setting; deployment and independent impact remain unestablished.
Read the implicationsThe exact repository-transfer route, host permissions and other Git subprocess sinks vary by deployment.
Limits and uncertaintyFull account
A Git repository is not passive input. Its local configuration can instruct Git to launch helper programs, including a filesystem monitor. In the reference Git MCP server, apparently read-only status and diff tools could invoke those programs with the MCP server’s filesystem and environment privileges.
The reporter reproduced execution with an attacker-controlled repository whose .git/config survived workspace transfer. A normal source ZIP or fresh clone does not reproduce that exact condition because it does not include the original local Git configuration. The 2026.11.11 patch overrides dangerous helpers and refuses older Git versions that cannot honor the protective configuration. This is a code-execution boundary failure, not evidence that every repository URL is exploit-ready.
The repository is executable configuration as well as content. The specific setup requires retaining .git/config through workspace transfer; a fresh clone generally will not copy that local configuration, so not every remote repository meets the prerequisite. Repository helper execution is a separate vulnerability from Git object-store alternates escaping the allowed path.
A later independent replication exercised seven repository-controlled execution sinks, finding seven successful helper invocations on version 2026.11.4 but none on the repaired 2026.11.11 build. That is strong evidence for the listed regression set, although users running cached uvx executables or older container image digests still need to verify the actual code launched.
Mechanism and trust boundary
- 01
A repository retaining its local .git/config is supplied to the Git MCP server.
- 02
Git status or diff invokes a repository-configured helper such as core.fsmonitor despite the tool being nominally read-only.
- 03
The helper runs with the MCP service identity and may observe its ambient files or environment.
Claims & evidence
CLM-R239-028-COREGHSA-6hqx-gqrx-c5r2 demonstrates repository-configured program execution from read-only Git MCP tools before the 2026.11.11 patch.supported
Basis: reported finding
- supportsReference Git MCP server read-only operations executed malicious .git/config commandsprimary disclosure
Security advisory, read-only git_status and git_diff reproduction; patched behavior
CLM-R242-GIT-REPRO-7-SINKSA separate laboratory comparison reported execution in all seven exercised repository-controlled Git helper paths on mcp-server-git 2026.11.4 and in none of those seven paths on 2026.11.11; this is a controlled patch regression, not evidence of exploitation in the wild.supported
Basis: reported finding
- supportsIndependent reproduction of Git MCP repository-config executionindependent technical reproduction
Independent seven-sink reproduction, tested affected and patched package versions
Implications
The observed effect is limited to the study or disclosed setting; deployment and independent impact remain unestablished.
Controls and mitigations
- Patch to mcp-server-git 2026.11.11, suppress repository-controlled Git execution hooks, and isolate untrusted repositories from MCP secrets and host privileges.
Unknowns and contradictions
- The exact repository-transfer route, host permissions and other Git subprocess sinks vary by deployment.
Sources and citation
Material revision history
- Nov 12, 2026 · Published version · first publication · revision 241
- Nov 13, 2026 · Published version · material revision · revision 243Public fields changed: claims, narrative, references