9.1

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

Analyzed
AliasesGHSA-j22h-9j4x-23w5PYSEC-2026-1623
Published 17-12-2025Last modified 18-12-2025

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.

Priority
Routine

Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.1/10
010
Critical · v3.1 (NVD)
EPSS score
7.53%
0%100%
Low · +0.50 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 17-12-2025
    PublishedVulnerability first disclosed.
  2. 18-12-2025
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Lfprojects1 product
Modelcontextprotocol1 product
PyPI1 product
  • mcp-server-git< 2025.12.18

3 vendors · 3 products

References

5 links