Loading...
Skip to main content

CVE-2025-68143 — Vulnerability in mcp-server-git — CVE Details

MEDIUM

mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesystem locations

Published December 17, 2025Updated July 7, 2026Source: osv

Summary

In mcp-server-git versions prior to 2025.9.25, the git_init tool accepted arbitrary filesystem paths and created Git repositories without validating the target location. Unlike other tools which required an existing repository, git_init could operate on any directory accessible to the server process, making those directories eligible for subsequent git operations. The tool was removed entirely, as the server is intended to operate on existing repositories only. Users are advised to upgrade to 2025.9.25 or newer to remediate this issue. Thank you to https://hackerone.com/yardenporat for disclosure, @0dd for contributing the fix.

Advisory Timeline

  • First published December 17, 2025 (299 days ago).
  • Last revised July 7, 2026 — 202 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update mcp-server-git to 2025.9.25 or later
pip install "mcp-server-git>=2025.9.25"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: pypi (1).

PackageEcosystemAffectedFixed In
mcp-server-git
pypi
0.2.0, 0.3.0, 0.4.0, 0.4.1 (+7 more)2025.9.25

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Frequently Asked Questions

What is CVE-2025-68143?
mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesystem locations This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 9.6/10).
How do I check if my project is affected by CVE-2025-68143?
CVE-2025-68143 affects mcp-server-git. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-68143 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.6

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-5cgr-j3jf-jw3v
PYSEC-2026-1621

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies