mcp-server-git (repository boundary bypass via --repository) | Medium || Field | Value |
|---|---|
| CVE / NVD | CVE-2025-68145 |
| EPSS score | 0.061970000 (FIRST EPSS, 2026-06-30) |
| Date (index) | 2025-12-17 |
| Affected product (index) | mcp-server-git (repository boundary bypass via --repository) |
| GHSA ID | GHSA-j22h-9j4x-23w5 |
| OWASP MCP Top 10 (2025) | MCP02 — Privilege Escalation via Scope Creep |
| Published / disclosed | 2025-12-17 |
| Ecosystem | pip |
| Component | mcp-server-git |
| CVSS score | 9.1 CRITICAL CVSS v3.1 (NVD) |
| CWE | CWE-22 |
| Affected versions | < 2025.12.18 |
| Fixed versions | 2025.12.18 |
| Fix status | Patched |
| Exploit status | Chainable |
mcp-server-git has missing path validation when using –repository flag
The attacker needs control over path, repository, or file arguments reaching the affected tool call. In MCP environments this often becomes reachable through prompt-influenced tool arguments, shared configs, or directly exposed tool endpoints.
--repository boundary bypass
Tool calls could operate outside configured repository path. The impact is amplified when the server has broad filesystem or repository access.
Add a minimal vulnerable code snippet here after reviewing the linked source locations.
The patch adds canonical path validation, symlink-aware containment checks, or explicit repository boundary enforcement before executing the affected tool action.
2025.12.18 or later as the primary remediation.This issue is especially important as a chainable primitive. Add only bounded lab verification material if a safe public reference becomes available.
< 2025.12.18... segments, symlink targets, or repository paths that fall outside the intended workspace.https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-j22h-9j4x-23w5