CVE-2025-68144
MEDIUM 6.3CVSS 4.0mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files
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.
- Published
- 17 Dec 2025
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-88
- Also known as
- GHSA-9xwc-hfwc-8w59PYSEC-2026-1622
- Sources
- NVDJSONOSV GHSA-9xwc-hfwc-8w59JSONOSV PYSEC-2026-1622JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lfprojects | model_context_protocol_serverscpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:* |
< 2025.12.17 | 2025.12.17 |
| OSV | PyPI | mcp-server-git | < 2025.12.18 | 2025.12.18 |
References
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-68144 · ADVISORY
- https://github.com/modelcontextprotocol/servers · PACKAGE
- https://pypi.org/project/mcp-server-git · PACKAGE
- https://github.com/advisories/GHSA-9xwc-hfwc-8w59 · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 17 Dec 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Dec 2025)