CVE-2025-68145
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThis is a path traversal vulnerability in mcp-server-git where the --repository flag intended to restrict git operations to a specific repository path is not enforced on subsequent tool calls. The server fails to validate that the repo_path argument in tool invocations is actually within the configured allowed repository, allowing attackers to access other repositories the server process can reach.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 2025.12.18CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify mcp-server-git installationLocate the mcp-server-git binary or package in your environment. Common paths include /usr/bin/mcp-server-git, ~/.local/bin/mcp-server-git, or check via package manager: npm list -g @modelcontextprotocol/server-git or pip show mcp-server-gitAffected if mcp-server-git is installed and no version is displayed or version is shown before 2025.12.18
-
Verify the installed version against affected rangeRun the version check command for your installation method. For npm: npm list -g @modelcontextprotocol/server-git --depth=0. For pip: pip show mcp-server-git. For binary: mcp-server-git --versionAffected if The displayed version is earlier than 2025.12.18 (e.g., 2025.12.17, 2025.12.10, etc.) or no version is shown indicating an unpatched build
-
Check if --repository flag is configuredExamine your MCP server startup configuration, environment variables, or command-line arguments. Look for --repository or repo_path parameters that specify an allowed repository pathAffected if The --repository flag is set to restrict operations to a specific path (this is the configuration that the vulnerability bypasses)
-
Confirm the server is accessible to untrusted inputsReview your deployment model: is the MCP server exposed to tool calls from untrusted clients or external sources? Check network exposure and authentication settingsAffected if The mcp-server-git accepts tool invocations from clients or processes you do not fully control
You are affected if mcp-server-git is installed with a version earlier than 2025.12.18, the --repository flag is configured to restrict git operations, and the server accepts tool calls from untrusted sources that could supply arbitrary repo_path values.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2025.12.18
Upgrade to version 2025.12.17 or later which implements path validation that resolves both the configured repository and requested path (following symlinks) to verify the requested path is within the allowed repository before executing git operations.
2025.12.17
- Upgrade mcp-server-git to version 2025.12.17 or later by installing the updated package from the official distribution channel (e.g., npm, pip, or binary release)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-68145 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-68145 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data