# CVE-2025-68145: mcp-server-git has missing path validation when using --repository flag

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-17 · Modified: 2025-12-18
- Aliases: GHSA-j22h-9j4x-23w5, PYSEC-2026-1623
- Record: https://cvemate.com/vulnerability/CVE-2025-68145 · JSON: https://cvemate.com/vulnerability/CVE-2025-68145/json

## Description

```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.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 7.527%, percentile 94.658%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- lfprojects model\_context\_protocol\_servers: \< 2025.12.18
- modelcontextprotocol servers: \< 2025.12.17
- PyPI mcp-server-git (PyPI): \< 2025.12.18

## References

- <https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-j22h-9j4x-23w5>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68145>
- <https://github.com/modelcontextprotocol/servers>
- <https://pypi.org/project/mcp-server-git>
- <https://github.com/advisories/GHSA-j22h-9j4x-23w5>

---

Data as of 2026-12-05T05:10:38.867Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
