{"schemaVersion":3,"id":"CVE-2025-68144","aliases":["GHSA-9xwc-hfwc-8w59","PYSEC-2026-1622"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-12-17T22:10:56.086Z","modified":"2025-12-18T15:07:03.402Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.3,"severity":"medium","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/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.07209,"percentile":0.94256,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.07209},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.07209,"percentile":0.94256}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.07209,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.07209,"percentile":0.94256}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","description":"The product constructs a string for a command to be executed by a separate component\nin another control sphere, but it does not properly delimit the\nintended arguments, options, or switches within that command string.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/88.html"}],"affected":[{"vendor":"lfprojects","product":"model_context_protocol_servers","name":"model context protocol servers","label":"model_context_protocol_servers","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2025.12.17","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2025.12.17","eol":null,"hubHref":"/vendor/lfprojects/model_context_protocol_servers"},{"vendor":"modelcontextprotocol","product":"servers","name":"servers","label":"servers","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2025.12.17","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2025.12.17","eol":null,"hubHref":"/vendor/modelcontextprotocol/servers"},{"vendor":"PyPI","product":"mcp-server-git","name":"mcp-server-git","label":"mcp-server-git","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/mcp-server-git","purlType":"pypi","versions":[{"text":"< 2025.12.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2025.12.18","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59","label":"github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68144","label":"nvd.nist.gov/vuln/detail/CVE-2025-68144","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/modelcontextprotocol/servers","label":"github.com/modelcontextprotocol/servers","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/mcp-server-git","label":"pypi.org/project/mcp-server-git","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-9xwc-hfwc-8w59","label":"github.com/advisories/GHSA-9xwc-hfwc-8w59","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-12-17T22:10:56.086Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-12-18T15:07:03.402Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:59:54.048Z","stale":false,"partial":false}}