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

Published Dec 17, 2025
·
Updated

In mcp-server-git versions prior to 2025.9.25, the gitinit tool accepted arbitrary filesystem paths and created Git repositories without validating the target location. Unlike other tools which required an existing repository, gitinit 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.

Other sources

Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp-server-git versions prior to 2025.9.25, the gitinit tool accepted arbitrary filesystem paths and created Git repositories without validating the target location. Unlike other tools which required an existing repository, gitinit 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.

MITRE

Affected Software

2 affected componentsFixes available
pip/mcp-server-git<2025.9.25
2025.9.25
Lfprojects Model Context Protocol Servers<2025.9.25

Event History

Dec 17, 2025
Advisory Published
via GitHub·07:49 PM
Data Sourced
via GitHub·07:49 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·10:09 PM
Data Sourced
via MITRE·10:09 PM
DescriptionWeakness
Data Sourced
via NVD·11:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 PM
RemedyAffected Software
Jan 20, 2026
News Published
via The Register·01:00 PM
News Published
via The Register·01:01 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-68143?

CVE-2025-68143 is categorized as a high-severity vulnerability due to its potential for unauthorized repository creation.

2

How do I fix CVE-2025-68143?

To fix CVE-2025-68143, upgrade mcp-server-git to version 2025.9.25 or later.

3

What type of vulnerabilities does CVE-2025-68143 represent?

CVE-2025-68143 represents a path traversal vulnerability allowing arbitrary filesystem access.

4

Which versions of mcp-server-git are affected by CVE-2025-68143?

mcp-server-git versions prior to 2025.9.25 are affected by CVE-2025-68143.

5

What action can be taken to mitigate the risks of CVE-2025-68143?

To mitigate the risks of CVE-2025-68143, restrict server process permissions and restrict access to filesystem paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203