Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mcp-server-git
  4. ›
  5. CVE-2025-68144

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

December 17, 2025 (updated December 20, 2025)

In mcp-server-git versions prior to 2025.12.18, 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.18 resolve this issue.

Thank you to https://hackerone.com/yardenporat for reporting.

References

  • github.com/advisories/GHSA-9xwc-hfwc-8w59
  • github.com/modelcontextprotocol/servers
  • github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59
  • nvd.nist.gov/vuln/detail/CVE-2025-68144

Code Behaviors & Features

Detect and mitigate CVE-2025-68144 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2025.12.18

Fixed versions

  • 2025.12.18

Solution

Upgrade to version 2025.12.18 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

pypi/mcp-server-git/CVE-2025-68144.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:19 +0000.