CVE-2025-68145
MEDIUM 6.4CVSS 4.0mcp-server-git has missing path validation when using --repository flag
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.
- Published
- 17 Dec 2025
- Last modified
- 30 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-j22h-9j4x-23w5PYSEC-2026-1623
- Sources
- NVDJSONOSV GHSA-j22h-9j4x-23w5JSONOSV PYSEC-2026-1623JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.4 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lfprojects | model_context_protocol_serverscpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:* |
< 2025.12.18 | 2025.12.18 |
| OSV | PyPI | mcp-server-git | < 2025.12.18 | 2025.12.18 |
References
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-j22h-9j4x-23w5 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-68145 · ADVISORY
- https://github.com/modelcontextprotocol/servers · PACKAGE
- https://pypi.org/project/mcp-server-git · PACKAGE
- https://github.com/advisories/GHSA-j22h-9j4x-23w5 · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 17 Dec 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Dec 2025)