{"id":"CVE-2025-68143","published":"2025-12-17T22:09:43Z","modified":"2025-12-18T15:07:15Z","title":"mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesystem locations","vendor":"modelcontextprotocol","product":"servers","tier":"tail","description":{"text":"Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp-server-git versions prior to 2025.9.25, the git_init tool accepted arbitrary filesystem paths and created Git repositories without validating the target location. Unlike other tools which required an existing repository, git_init could operate on any directory accessible to the server process, making those directories eligible for subsequent git operations. The tool was removed entirely, as the server is intended to operate on existing repositories only. Users are advised to upgrade to 2025.9.25 or newer to remediate this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"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:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00813,"percentile":0.53941,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-5cgr-j3jf-jw3v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/servers/commit/eac56e7bcde48fb64d5a973924d05d69a7d876e6","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":10.79},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"servers","versions":["< 2025.9.25"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-12-18T14:53:34.567415Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mcp-server-git","vulnerableRanges":["<2025.9.25"],"patched":["2025.9.25"],"from":["GHSA-5cgr-j3jf-jw3v","PYSEC-2026-1621"],"provenance":"source"}],"summary":{"text":"The git_init tool in the mcp-server-git component of the modelcontextprotocol servers collection accepted arbitrary filesystem paths and created Git repositories there without validating the target location, so it could act on any directory the server process could reach. An attacker who can get the tool invoked with a crafted path needs no authentication or network-level privileges, but user interaction is required, and the directory they target then becomes eligible for later Git operations.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:20Z"},"euvd":{"id":"EUVD-2025-203936","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-68143","published":"2025-12-17","fixed":"2025.9.25","kev":false},{"cve":"CVE-2025-68144","published":"2025-12-17","fixed":"2025.12.18","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-68145","published":"2025-12-17","fixed":"2025.12.18","kev":false,"link":{"from":"CVE-2025-68143","to":"CVE-2025-68145","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-2026-27735","published":"2026-02-25","fixed":"2026.1.14","kev":false}],"package":"PyPI:mcp-server-git"}}