CVE-2025-68144: mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files
Vulnerability summary
CVE-2025-68144 is a high (CVSS 7.1) vulnerability in lfprojects model_context_protocol_servers. EPSS estimates a 7.72% chance of exploitation in the next 30 days, higher than 94.7% of scored vulnerabilities.
Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 17-12-2025PublishedVulnerability first disclosed.
- 18-12-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:L
- NVDNIST6.3MediumCVSS: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
EPSS trend
Probability
7.72%
Chance of exploitation in the next 30 days
Percentile
95%
Versus all other CVEs
30-day change
Increase +0.51 pp
From 7.21% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Lfprojects1 product
- model_context_protocol_servers< 2025.12.17
Modelcontextprotocol1 product
- servers< 2025.12.17
PyPI1 product
- mcp-server-git< 2025.12.18
3 vendors · 3 products
References
5 links- github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59X Refsource CONFIRMWEBVendor Advisory