{"id":"CVE-2025-68145","published":"2025-12-17T22:12:45Z","modified":"2025-12-18T15:06:54Z","title":"mcp-server-git has missing path validation when using --repository flag","vendor":"modelcontextprotocol","product":"servers","tier":"tail","description":{"text":"In mcp-server-git versions prior to 2025.12.17, when the server is started with the --repository flag to restrict operations to a specific repository path, it did not validate that repo_path arguments in subsequent tool calls were actually within that configured path. This could allow tool calls to operate on other repositories accessible to the server process. The fix adds path validation that resolves both the configured repository and the requested path (following symlinks) and verifies the requested path is within the allowed repository before executing any git operations. Users are advised to upgrade to 2025.12.17 upon release to remediate this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"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:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.07527,"percentile":0.94638,"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-j22h-9j4x-23w5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":18.93},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"servers","versions":["< 2025.12.17"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-12-18T14:53:18.193016Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mcp-server-git","vulnerableRanges":["<2025.12.18"],"patched":["2025.12.18"],"from":["GHSA-j22h-9j4x-23w5","PYSEC-2026-1623"],"provenance":"source"}],"summary":{"text":"The mcp-server-git component of the modelcontextprotocol servers product fails to validate that repo_path arguments in tool calls fall within the repository restricted by the --repository flag, a path traversal flaw. An attacker who can get a user to interact with a malicious request (user interaction is required) can cause git operations to run against other repositories the server process can access, with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:44Z"},"euvd":{"id":"EUVD-2025-204002","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-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-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"}}