CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2025-68144

High
Published: Translated: NVD NIST

Summary

W wersjach mcp-server-git przed 2025.12.17 funkcje git_diff i git_checkout przekazywały argumenty kontrolowane przez użytkownika bez sanitizacji do poleceń CLI git. Wartości przypominające flagi mogły być interpretowane jako opcje wiersza poleceń, co umożliwiało nadpisywanie dowolnych plików.

Risk Assessment

Organizacja może być narażona na poważne ryzyko związane z bezpieczeństwem, w tym na nieautoryzowane nadpisywanie plików, co może prowadzić do utraty danych lub kompromitacji systemu.

Recommendation

Zaleca się aktualizację do wersji 2025.12.17, aby rozwiązać ten problem, gdy zostanie ona wydana.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS