UTC
High

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
What it is

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. …

What to do

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. …

Affected
PackageRegistryAffectedFixed in
mcp-server-gitPyPI< 2026.11.272026.11.27

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.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by the MCP reference servers project (https://github.com/modelcontextprotocol/servers/security/advisories); advisories published by the MCP Inspector project (https://github.com/modelcontextprotocol/inspector/security/advisories); advisories published by the MCP TypeScript SDK project (https://github.com/modelcontextprotocol/typescript-sdk/security/advisories); advisories published by the MCP Go SDK project (https://github.com/modelcontextprotocol/go-sdk/security/advisories); advisories published by the MCP Java SDK project (https://github.com/modelcontextprotocol/java-sdk/security/advisories); advisories published by the MCP Kotlin SDK project (https://github.com/modelcontextprotocol/kotlin-sdk/security/advisories); advisories published by the MCP Rust SDK project (https://github.com/modelcontextprotocol/rust-sdk/security/advisories); advisories published by the MCP Ruby SDK project (https://github.com/modelcontextprotocol/ruby-sdk/security/advisories); advisories published by the MCP C# SDK project (https://github.com/modelcontextprotocol/csharp-sdk/security/advisories); advisories published by the MCP PHP SDK project (https://github.com/modelcontextprotocol/php-sdk/security/advisories); advisories published by the MCP Registry project (https://github.com/modelcontextprotocol/registry/security/advisories); advisories published by Open Terminal (https://github.com/open-webui/open-terminal/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-12-06. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].