mcp-server-git 2026.11.11: git_merge runs gc.recentObjectsHook from the repository's own config
GHSA-h2g3-rwxm-xfm3 · published 2026-11-18
- Severity
- High
- CVSS score
- Not scored
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2026.11.18
Summary mcp-server-git promises (src/git/README.md, "A repository's own programs") that it never runs a program named by a repository's configuration, with or without --repository. git_merge breaks that promise: a successful merge, fast-forward included, ends in git's automatic maintenance (git maintenance run --auto, then git gc). A repository that ships gc.auto=1, gc.autoPackLimit=1 (two packs) and gc.recentObjectsHook= in its own .git/config makes that gc run the command as the server user. harden_repo / HARDENED_CONFIG pins core.fsmonitor, core.hooksPath and six other keys but no gc. or maintenance. …
Upgrade mcp-server-git to 2026.11.18 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp-server-git | PyPI | >= 2026.11.4, < 2026.11.18 | 2026.11.18 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- Criticalmcp-server-git runs a repo's gpg.program via git_merge and git_branchmcp-server-git
- Criticalgit_add runs submodule filter commands when gitlink mode is not 160000mcp-server-git
- Criticalmcp-server-git: unexpandable sparse index lets submodule filter drivers runmcp-server-git
- Criticalgit: harden_repo ignores core.worktree, so repository-defined filters runmcp-server-git
- Criticalmcp-server-git --repository: checks a bare repo but runs a hidden .git's filtermcp-server-git
- Highgit: index entries under a symlink leak files outside --repositorymcp-server-git
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP reference servers project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.