mcp-server-git executes a nested submodule transport helper through git_add
GHSA-33p6-82cm-6c2c · published 2026-12-05
- Severity
- High
- CVSS score
- 7.3
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2026.12.5
The demonstrated consequence is arbitrary command execution as the operating-system account running mcp-server-git. A malicious imported or shared checkout can read, modify, or disrupt resources available to that account. This is CWE-78 and does not require Git LFS or a successful connection to the configured SSH host. The conservative CVSS 3.1 base vector is (7.3 High). AV:L reflects that the attacker must provide a checkout available on the server host; PR:L reflects the need for a client with access to the git_add tool; and UI:R reflects the need for a user or client to import/open the checkout and invoke the tool. …
Upgrade mcp-server-git to 2026.12.5 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.
Ensure every Git process used for a checked-out nested repository prevents lazy fetching from attacker-controlled promisor configuration. On Git versions that do not honor GIT_NO_LAZY_FETCH, reject nested promisor/partial-clone configurations before running git_add, or raise the minimum supported Git version to a release that enforces the setting. Apply the check to nested repositories as well as the opened parent repository. Add a regression test with a checked-out nested promisor repository, an absent promised tree object, an SSH URL, and a marker-writing core.sshCommand; calling the registered git_add tool should not create the marker. …
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp-server-git | PyPI | 2026.11.27 | 2026.12.5 |
- 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.