{"id":"CVE-2025-68144","published":"2025-12-17T22:10:56Z","modified":"2025-12-18T15:07:03Z","title":"mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","vendor":"modelcontextprotocol","product":"servers","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00618,"percentile":0.43892,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":8.78},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"servers","versions":["< 2025.12.17"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-12-18T14:53:26.151891Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mcp-server-git","vulnerableRanges":["<2025.12.18"],"patched":["2025.12.18"],"from":["GHSA-9xwc-hfwc-8w59","PYSEC-2026-1622"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-204003","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-68143","published":"2025-12-17","fixed":"2025.9.25","kev":false,"link":{"from":"CVE-2025-68143","to":"CVE-2025-68144","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mcp-server-git","fromFixed":"2025.9.25","toFixed":"2025.12.18","daysApart":0}]}},{"cve":"CVE-2025-68144","published":"2025-12-17","fixed":"2025.12.18","kev":false},{"cve":"CVE-2025-68145","published":"2025-12-17","fixed":"2025.12.18","kev":false},{"cve":"CVE-2026-27735","published":"2026-02-25","fixed":"2026.1.14","kev":false}],"package":"PyPI:mcp-server-git"}}