CVE-2025-68144 json
mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files
published 2025-12-17 10 mo ago modified 2026-07-07 4 mo ago also GHSA-9xwc-hfwc-8w59 , PYSEC-2026-1622 , EUVD-2025-204003
- cvss
- 7.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.2%
- EPSS 7.2% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi mcp-server-git 2025.12.18
- lfprojects model_context_protocol_servers 2025.12.17
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 10 mo ago
Exploit prediction
7.21% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 4.0 | 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 |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mcp-server-git | <2025.12.18 |
2025.12.18 |
Affected products
- modelcontextprotocol servers
Classification
- Weakness
-
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
References
-
github.com
/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-68144
advisory
-
github.com
/modelcontextprotocol/servers
package
-
pypi.org
/project/mcp-server-git
package
-
github.com
/advisories/GHSA-9xwc-hfwc-8w59
advisory
Sources
- CVE List CVE-2025-68144
- GitHub Advisory GHSA-9xwc-hfwc-8w59
- NVD CVE-2025-68144
- OSV PYSEC-2026-1622
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.