CVE-2025-68143/68144/68145: three flaws in the reference Git MCP server
- Product
- mcp-server-git (PyPI)
- CVE
- CVE-2025-68143, CVE-2025-68144, CVE-2025-68145
- Affected
- < 2025.12.18
- Fixed in
- 2025.12.18
Last verified against sources: October 16, 2026
What happened
- According to GitHub Advisory Database's advisory (Dec 17, 2025), git_init accepted arbitrary filesystem paths and created repositories without validating the location. [1]
- git_diff and git_checkout passed user-controlled arguments to git, so flag-like values such as --output= could overwrite arbitrary files. [2]
- With --repository set, repo_path in later tool calls was not checked to be inside that repository. [3]
Impact
What was done
How to protect yourself
Sources
- GHSA-5cgr-j3jf-jw3v (CVE-2025-68143) — GitHub Advisory Database
- GHSA-9xwc-hfwc-8w59 (CVE-2025-68144) — GitHub Advisory Database
- GHSA-j22h-9j4x-23w5 (CVE-2025-68145) — GitHub Advisory Database
Every statement above was checked against these sources before publishing. Spotted an error? Tell us and we will correct it with a dated note.
Corrections
Report an error or request a correction. We review requests within 5 business days and add a dated correction note.