mcp-cve-project

CVE-2025-68145 | mcp-server-git (repository boundary bypass via --repository) | Medium |

CVE Information

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

CVE Breakdown


What is the vulnerability?

mcp-server-git has missing path validation when using –repository flag

Attack prerequisites / exposure

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.

CVE is because of what bug?

--repository boundary bypass

MCP-specific impact / why it matters

Tool calls could operate outside configured repository path. The impact is amplified when the server has broad filesystem or repository access.

Where was the bug? (source + snippet)