Arbitrary file write through a crafted ref
The base ref was interpolated into one argv token, so a ref of --output=/tmp/x reached git diff as its own option and wrote the diff to that path. It was reachable over MCP, where the ref comes from an agent.