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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-17 · Modified: 2025-12-18
- Aliases: GHSA-9xwc-hfwc-8w59, PYSEC-2026-1622
- Record: https://cvemate.com/vulnerability/CVE-2025-68144 · JSON: https://cvemate.com/vulnerability/CVE-2025-68144/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
- EPSS: 7.716%, percentile 94.778%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- lfprojects model\_context\_protocol\_servers: \< 2025.12.17
- modelcontextprotocol servers: \< 2025.12.17
- PyPI mcp-server-git (PyPI): \< 2025.12.18

## References

- <https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68144>
- <https://github.com/modelcontextprotocol/servers>
- <https://pypi.org/project/mcp-server-git>
- <https://github.com/advisories/GHSA-9xwc-hfwc-8w59>

---

Data as of 2026-12-05T05:10:56.720Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
