{"cve":"CVE-2025-68144","nvd":{"published":"2025-12-17T23:16:04.703","modified":"2026-06-17T09:58:37.787","status":"Analyzed","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_v4":{"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","score":6.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","score":7.1},"cwes":["CWE-88"],"references":["https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59"],"products":["lfprojects:model_context_protocol_servers"],"source":"nvd","synced_at":"2026-10-19T22:17:07.138532058+00:00"},"epss":{"cve":"CVE-2025-68144","score":0.07209,"percentile":0.94314,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-9xwc-hfwc-8w59","url":"https://osv.dev/vulnerability/GHSA-9xwc-hfwc-8w59","summary":" mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","modified":"2026-07-07T17:56:33.750487025Z","packages":[{"ecosystem":"PyPI","name":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","ranges":["<2025.12.18"],"fixed":["2025.12.18"]}]},{"id":"PYSEC-2026-1622","url":"https://osv.dev/vulnerability/PYSEC-2026-1622","summary":" mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","modified":"2026-07-07T17:47:03.460233612Z","packages":[{"ecosystem":"PyPI","name":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","ranges":["<2025.12.18"],"fixed":["2025.12.18"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}