Google Gemini CLI arbitrary code execution via malicious MCP server
A vulnerability was discovered in Google's Gemini CLI tool that allows arbitrary code execution through malicious Model Context Protocol server definitions in workspace configuration files. The vulnerability was discovered on December 22, 2025 and disclosed to Google on December 26, 2025.
What happened
The gemini-cli tool is vulnerable to arbitrary code execution through malicious Model Context Protocol (MCP) server definitions configured in workspace settings.
Attackers can exploit the mcpServers or mcp.serverCommand fields in .gemini/settings.json to execute code.
Classification
Sources and evidence
Sources not yet published
This record was researched and written by the Index from original reporting. Its sources are still being verified by an editor, and they are listed here once that check is complete. Until then the record carries no reviewer.