mediumresolved

MCP Git crafted index exposes files outside the allowed repository

A crafted .git/index could make read-only diff tools return files outside the configured repository. Directory validation did not check the paths stored in the index. The maintainer lists mcp-server-git 2026.11.18 as patched.

The report demonstrated traversal entries in a binary Git index with --repository enabled. git_diff_unstaged and git_diff could return content readable by the server account, while git_status exposed path existence. The demonstrated flaw did not require a symlink, alternates entry or executable configuration key.

The maintainer's advisory lists 2026.11.18 as the patched version. This record describes the disclosed vulnerability and does not assert that DeepInspect would prevent local execution or host compromise.

Takeaway

Upgrade to mcp-server-git 2026.11.18 or later. Confinement checks must cover internal repository metadata that causes downstream tools to read other paths.

Sources

mcpmcp-server-git