CVE-2025-68145: mcp-server-git has missing path validation when using --repository flag
Vulnerability summary
CVE-2025-68145 is a critical (CVSS 9.1) vulnerability in lfprojects model_context_protocol_servers. EPSS estimates a 7.53% chance of exploitation in the next 30 days, higher than 94.6% of scored vulnerabilities.
Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 17-12-2025PublishedVulnerability first disclosed.
- 18-12-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated6.4MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
- NVDNIST6.4MediumCVSS: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
EPSS trend
Probability
7.53%
Chance of exploitation in the next 30 days
Percentile
95%
Versus all other CVEs
30-day change
Increase +0.50 pp
From 7.03% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Lfprojects1 product
- model_context_protocol_servers< 2025.12.18
Modelcontextprotocol1 product
- servers< 2025.12.17
PyPI1 product
- mcp-server-git< 2025.12.18
3 vendors · 3 products
References
5 links- github.com/modelcontextprotocol/servers/security/advisories/GHSA-j22h-9j4x-23w5X Refsource CONFIRMWEBVendor Advisory