{"id":"CVE-2025-68145","aliases":["CVE-2025-68145","GHSA-j22h-9j4x-23w5","PYSEC-2026-1623"],"related":[],"kind":"vulnerability","state":"published","title":"mcp-server-git has missing path validation when using --repository flag","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"In mcp-server-git versions prior to 2025.12.18, 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.18 to remediate this issue.\n\nThank you to https://hackerone.com/yardenporat for reporting.","format":"markdown","source":"ghsa"},{"lang":"es","text":"En versiones de mcp-server-git anteriores a 2025.12.17, cuando el servidor se inicia con la bandera --repository para restringir las operaciones a una ruta de repositorio específica, no validaba que los argumentos repo_path en llamadas de herramientas posteriores estuvieran realmente dentro de esa ruta configurada. Esto podría permitir que las llamadas de herramientas operaran en otros repositorios accesibles al proceso del servidor. La solución añade validación de ruta que resuelve tanto el repositorio configurado como la ruta solicitada (siguiendo enlaces simbólicos) y verifica que la ruta solicitada esté dentro del repositorio permitido antes de ejecutar cualquier operación git. Se aconseja a los usuarios actualizar a 2025.12.17 tras su lanzamiento para remediar este problema.","source":"nvd"}],"published":"2025-12-17T22:12:45.410Z","modified":"2026-09-30T23:10:00.237Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 2025.12.17","status":"affected"}],"vendor":"modelcontextprotocol","product":"servers","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2025.12.18"}],"ecosystem":"PyPI","package":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2025.12.18"}],"vendor":"lfprojects","product":"model_context_protocol_servers","cpe":"cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2025.12.18"}],"ecosystem":"PyPI","package":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","source":"pysec"}],"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-j22h-9j4x-23w5","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68145","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/modelcontextprotocol/servers","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/mcp-server-git","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-j22h-9j4x-23w5","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-12-18T14:53:18.193Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68145","url":"https://www.cve.org/CVERecord?id=CVE-2025-68145","licence":"CVE Terms of Use","modified":"2025-12-18T15:06:54.784Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j22h-9j4x-23w5","url":"https://github.com/advisories/GHSA-j22h-9j4x-23w5","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:22.550Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68145","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68145","licence":"Public domain","modified":"2026-09-30T23:10:00.237Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1623","url":"https://osv.dev/vulnerability/PYSEC-2026-1623","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:03.465Z"}],"updatedAt":"2026-11-25T22:59:09.608Z","epss":{"score":0.07527,"percentile":0.94626,"date":"2026-12-01T12:00:22.000Z"}}