# CVE-2025-68144: mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files

- Severity: Medium 6.3 (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:N/SI:H/SA:L`
- 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): 7.72%, higher than 94% of CVEs (2026-12-01)
- Published: 2025-12-17T22:10:56.086Z
- Modified: 2026-07-07T17:56:33.750Z
- Also known as: GHSA-9xwc-hfwc-8w59, PYSEC-2026-1622
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

In mcp-server-git versions prior to 2025.12.17, the git_diff and git_checkout functions passed user-controlled arguments directly to git CLI commands without sanitization. Flag-like values (e.g., `--output=/path/to/file` for `git_diff`) would be interpreted as command-line options rather than git refs, enabling arbitrary file overwrites. The fix adds validation that rejects arguments starting with - and verifies the argument resolves to a valid git ref via rev_parse before execution. Users are advised to update to 2025.12.17 resolve this issue when it is released.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:L`
- 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:N/SI:H/SA:L`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L`
- 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:N/SI:H/SA:L`

## References

- <https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68144> (advisory)
- <https://github.com/modelcontextprotocol/servers> (package)
- <https://pypi.org/project/mcp-server-git> (package)
- <https://github.com/advisories/GHSA-9xwc-hfwc-8w59> (advisory)

## Sources

- CVE List: [CVE-2025-68144](https://www.cve.org/CVERecord?id=CVE-2025-68144), CVE Terms of Use, modified 2025-12-18
- GitHub Advisory Database: [GHSA-9xwc-hfwc-8w59](https://github.com/advisories/GHSA-9xwc-hfwc-8w59), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-68144](https://nvd.nist.gov/vuln/detail/CVE-2025-68144), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1622](https://osv.dev/vulnerability/PYSEC-2026-1622), CC-BY-4.0, modified 2026-07-07

---

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