mcp-server-git runs programs named by a repository's own .git/config through the Git LFS filter
GHSA-6663-fm5v-gqm5 · published 2026-11-27
- Severity
- High
- CVSS score
- 7.8
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2026.11.27
Code execution as the user who runs the server (CWE-829). Who is impacted: a user of mcp-server-git who has Git LFS installed and points the server at a repository directory that someone else supplies, such as an unpacked archive, a shared folder or a vendored tree. Every user of the official Docker image meets the Git LFS condition, because the image runs git lfs install --system. The documented Docker configuration mounts the user's home directory read-write into the container, so a program in the container can write files in the host home directory. I did not test the Docker image. The --repository option gives no protection. …
Upgrade mcp-server-git to 2026.11.27 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.
GIT_LFS_SKIP_SMUDGE=1 alone is not enough. It stops the transfer agent on checkout and merge, but the lfs.extension. .clean program still runs on git_status. Two complete options: 1. Extend the existing override mechanism. Empty the repository-scope keys lfs.extension.*.(clean|smudge), lfs.customtransfer.*.(path|args) and lfs.standalonetransferagent. Add core.sshCommand, core.askpass and credential.helper to the overrides. Set GIT_LFS_SKIP_SMUDGE=1 as defense in depth. I did not verify how git-lfs behaves with an emptied extension command. …
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp-server-git | PyPI | < 2026.11.27 | 2026.11.27 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- 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.