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

- Severity: Medium 6.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 8.70%, higher than 95% of CVEs (2026-12-01)
- Published: 2025-12-17T19:49:54.000Z
- Modified: 2026-09-30T23:10:00.237Z
- Also known as: GHSA-5cgr-j3jf-jw3v, PYSEC-2026-1621
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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 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.

(As written by CVE List.)

## Affected

- modelcontextprotocol servers: < 2025.9.25
- mcp-server-git (PyPI): before 2025.9.25
- lfprojects model_context_protocol_servers: before 2025.9.25

## Every score

- GitHub_M: CVSS:4.0 6.5 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-5cgr-j3jf-jw3v> (vendor-advisory, web)
- <https://github.com/modelcontextprotocol/servers/commit/eac56e7bcde48fb64d5a973924d05d69a7d876e6> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68143> (advisory)
- <https://github.com/modelcontextprotocol/servers> (package)
- <https://pypi.org/project/mcp-server-git> (package)
- <https://github.com/advisories/GHSA-5cgr-j3jf-jw3v> (advisory)

## Sources

- CVE List: [CVE-2025-68143](https://www.cve.org/CVERecord?id=CVE-2025-68143), CVE Terms of Use, modified 2025-12-18
- GitHub Advisory Database: [GHSA-5cgr-j3jf-jw3v](https://github.com/advisories/GHSA-5cgr-j3jf-jw3v), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-68143](https://nvd.nist.gov/vuln/detail/CVE-2025-68143), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-1621](https://osv.dev/vulnerability/PYSEC-2026-1621), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-68143 · Whole record: https://cve.day/CVE-2025-68143.json · Rebuilt by cve.day 2026-11-25T22:59:09.607Z
