CVE-2025-68144
High · 7.1CVSS
7.1
EPSS
7.2%
Published
Dec 17, 2025
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | mcp-server-git | 0 | 2025.12.18 |
Related vulnerabilities
- GHSA-vjqx-cfc4-9h6v mcp-server-git : Path traversal in git_add allows staging files outside repository… Also affects mcp-server-git
- CVE-2026-27735 Model Context Protocol Servers is a collection of reference implementations for the model… Also affects mcp-server-git
- CVE-2025-68143 Model Context Protocol Servers is a collection of reference implementations for the model… Also affects mcp-server-git
- CVE-2025-68145 In mcp-server-git versions prior to 2025.12.17, when the server is started with the… Also affects mcp-server-git
- GHSA-5cgr-j3jf-jw3v mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary… Also affects mcp-server-git
- CVE-2026-112944 launch-editor allows users to open files with line numbers in editor from Node.js. CWE-88
- CVE-2026-112900 Pillow is a Python imaging library. CWE-88
- CVE-2026-105326 An argument injection flaw was found in CUPS. CWE-88