mcp-server-git: a repository's own config can run a program through Git LFS (GHSA-6663-fm5v-gqm5)
Tested by us. The git_status case; see the lab line in the facts box.
Facts
- Alert note
- KB-N-0002 · AI applications, Software supply chain
- Record published
- 2026-11-27 · GHSA-6663-fm5v-gqm5 published by the project · source
- Fix
- 2026-11-27 · mcp-server-git 2026.11.27 on PyPI since 09:53 UTC · source
- Our test run
- 2026-11-27 · Our lab run of the git_status case, 2026.11.18 and 2026.11.27 side by side, 3 runs each
- GitHub advisory
- GHSA-6663-fm5v-gqm5
- CWE
- CWE-829
- Record
- GHSA-6663-fm5v-gqm5, project advisory, no CVE
- Severity
- High, CVSS 3.1 7.8 (local, user interaction), CWE-829, in the project advisory
- Affected
mcp-server-giton PyPI before 2026.11.27- Fixed
- 2026.11.27, on PyPI since 2026-11-27 09:53 UTC, release notes in servers v2.6.0
- Exploited
- No CVE, so not eligible for CISA KEV; the advisory reports no exploitation
- In scanner databases
- Not in the GitHub global database, OSV or PyPI's vulnerability data at 2026-11-27 14:10 UTC
- Lab
- Our run of 2026-11-27, offline container, git 2.39.5, git-lfs 3.3.0: the advisory's reproduction wrote our marker in 3 of 3 runs on 2026.11.18 and in 0 of 3 on 2026.11.27 (exact 95% intervals 29.2% to 100% and 0% to 70.8%). The expected results were written before the run. The lab record is not published yet
- Checked
- 2026-11-27 14:10 UTC
- Next review
- 2026-12-04
What happened
mcp-server-git says it never runs a program that a repository's own configuration names. With Git LFS installed, that did not hold: Git LFS read keys from the repository's .git/config that name programs, and the server's tools ran them, including the read-only git_status. The result is code running as the user who runs the server, and the tool's answer shows nothing unusual.
We ran the advisory's git_status case with an lfs.extension key on the affected and the fixed version, on Linux, in a Debian container with git 2.39.5 and git-lfs 3.3.0; the advisory's author tested only macOS. We did not run the other tools and keys in the advisory's table, a real MCP client, the mcp/git image or Windows.
Who is affected
All three conditions, per the advisory:
mcp-server-gitbefore 2026.11.27;- the Git LFS driver in your system or global Git configuration (
git lfs installwrites it; the project'sDockerfilerunsgit lfs install --system, so every image built from it has it); - the server pointed at a repository whose
.gitdirectory someone else controls: an unpacked archive, a shared folder, a vendored tree.--repositorydoes not help when that repository is the allowed one.
A plain git clone of a hostile repository is not enough, the advisory says, because Git LFS ignores these keys in a tracked .lfsconfig.
Am I affected?
1. Which version runs. For a pip install, in the Python the client starts:
python -c "from importlib.metadata import version; print(version('mcp-server-git'))"
2026.11.27 or later: fixed. Anything earlier: affected if the next two checks say yes. For uvx mcp-server-git in a client config, pin the version (see the fix); we have not verified how long uvx keeps an unpinned cached copy.
A clean pip-audit run does not show you are fixed: it reads PyPI by default (OSV on request), and at 2026-11-27 14:10 UTC neither PyPI's vulnerability data, OSV nor the GitHub global database listed this record, so scanners that read them could not see it.
For Docker, the image the client runs:
docker image inspect mcp/git --format '{{.Created}}'
docker run --rm --entrypoint python mcp/git -c "from importlib.metadata import version; print(version('mcp-server-git'))"
A creation date before 2026-11-27, or a version before 2026.11.27, means affected. If the second command fails, treat the version as unknown and rebuild. "No such image" from the first means this machine has not pulled or built mcp/git; the client would pull it from Docker Hub on first start.
2. Is Git LFS in your trusted config:
git config --show-scope --get-regexp '^filter\.lfs\.'
Lines starting system or global mean the LFS condition holds. No output and exit code 1 means it does not for this user on this machine. Run it as the user and with the environment the client starts the server with (HOME, GIT_CONFIG_GLOBAL). If the client runs mcp/git in Docker, the condition always holds, and this command on the host says nothing about the container.
3. Does a repository name LFS programs. Run inside the repository before the server touches it:
git config --show-scope --get-regexp '^lfs\.(extension\..*\.(clean|smudge)|customtransfer\..*\.(path|args)|standalonetransferagent)$'
Any line starting local or worktree means the repository's own config names a program for Git LFS. Exit code 1 means none of these keys is set. Do not add --local to this command: we ran it on git 2.43.0, and --local misses keys that .git/config pulls in through include.path, so it can report nothing on a repository that has them.
4. Does a repository name a program for downloads. On an unfixed server, a repository can also run a program through core.sshCommand, credential.helper or core.askpass together with a Git LFS endpoint (advisory, keys table). Git prints these keys in lower case, so the pattern is lower case:
git config --show-scope --get-regexp '^(core\.(sshcommand|askpass)|credential\.(.*\.)?helper|lfs\.url|lfs\..*\.access)$'
Here the exit code says little, because your own global credential helper usually matches. Read the first word of each line: local or worktree lines are the repository's own, global and system lines are yours. On an unfixed server, any local line means do not point the server at this repository. We ran it on git 2.43.0 in a temporary repository with each key set.
Fix, and what the upgrade does not do
Upgrade to 2026.11.27. In a client config, pin it: uvx mcp-server-git@2026.11.27 (uv's documented command@<version> form) or pip install mcp-server-git==2026.11.27. The fixed server empties the LFS program keys at repository scope and turns LFS downloads off with GIT_LFS_SKIP_SMUDGE=1.
What the upgrade does not do:
Docker images do not move with PyPI. The
mcp/gittag on Docker Hub was last updated on 2025-06-16 (Docker Hub API, 2026-11-27). If you never built the image yourself,docker run mcp/gituses that copy. We read only its date, not which version it contains or whether this record or older ones affect it. The project's README builds it locally withdocker build -t mcp/git .insrc/git; rebuild after the upgrade.It changes checkouts.
git_checkoutandgit_mergenow write each LFS file as its pointer file. The README says to rungit lfs pull(orgit lfs checkout) afterwards to get the content.Repositories that use a Git LFS extension on purpose now get errors. The README says a tool that would run an emptied extension fails with Git LFS's error. In our lab the fixed
git_statusreturned "Error cleaning Git LFS object" on the test repository. Expect the same fromgit_diff,git_add,git_checkoutandgit_mergeon such repositories; we ran onlygit_status.It protects only the commands the server runs. The advisory describes Git LFS itself reading these keys from
.git/config. Your owngit statusin the same directory, with LFS installed, is outside the fix. Check the repository with commands 3 and 4 first.It does not undo a run. If an affected server already worked on a repository that check 3 or 4 flags, the program may have run as your user; the tool result would not have shown it. In the documented Docker setup your home directory is mounted read-write, so a program that ran in the container could have written there (advisory; its author did not test the image).
Sources
Primary records first. Record identifiers link from the facts box. Opened 2026-11-27 between 13:23 and 14:10 UTC. Our lab record, with the expected results written before the run, is not published yet. GitHub advisory data: CC BY 4.0.
Records and release notes
- Project advisory GHSA-6663-fm5v-gqm5, modelcontextprotocol/servers, accessed 2026-11-27
- Project advisory GHSA-6663-fm5v-gqm5, GitHub API, accessed 2026-11-27
- Release notes, modelcontextprotocol/servers v2.6.0, accessed 2026-11-27
- Fix commit cadcf656aaa2, accessed 2026-11-27
- Fix commit d61bddaf8989, accessed 2026-11-27
- Merge commit 772e50eb5363, accessed 2026-11-27
- PyPI, mcp-server-git 2026.11.27 (sdist with server.py, README.md and Dockerfile), accessed 2026-11-27
- PyPI JSON API, mcp-server-git, accessed 2026-11-27
- OSV, PyPI mcp-server-git, accessed 2026-11-27
- GitHub global advisory API, GHSA-6663-fm5v-gqm5, 404 for this ID at our check, accessed 2026-11-27
- Docker Hub API, mcp/git tags, accessed 2026-11-27
Vendor documentation and statements
- uv documentation, "Requesting specific versions", accessed 2026-11-27
Corrections
No corrections.
Report an error to contact@arviser.com.
How this page was made: Claude Opus 5.5, an AI model, wrote this note and ran the lab. A separate AI agent checked it against the sources and the lab record, reran the lab and signed the lab record. Vadim Nareyko approved the template and the first three notes on 27 November from a summary in Russian.
Text and data on this page: CC BY 4.0. Quoted third-party material keeps its own terms.