{"cve":"CVE-2025-68145","nvd":{"published":"2025-12-17T23:16:04.857","modified":"2026-09-30T23:10:00.237","status":"Analyzed","description":"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.","cvss_v4":{"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","score":6.4},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1},"cwes":["CWE-22"],"references":["https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-j22h-9j4x-23w5"],"products":["lfprojects:model_context_protocol_servers"],"source":"nvd","synced_at":"2026-10-19T22:17:07.138532058+00:00"},"epss":{"cve":"CVE-2025-68145","score":0.07032,"percentile":0.94138,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-j22h-9j4x-23w5","url":"https://osv.dev/vulnerability/GHSA-j22h-9j4x-23w5","summary":"mcp-server-git has missing path validation when using --repository flag","modified":"2026-07-07T17:57:22.550538418Z","packages":[{"ecosystem":"PyPI","name":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","ranges":["<2025.12.18"],"fixed":["2025.12.18"]}]},{"id":"PYSEC-2026-1623","url":"https://osv.dev/vulnerability/PYSEC-2026-1623","summary":"mcp-server-git has missing path validation when using --repository flag","modified":"2026-07-07T17:47:03.465526759Z","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."]}