Skip to content
MediumNewsLLM-specific

Critical Gemini CLI Flaw Enabled Host Code Execution, Supply Chain Attacks

Published
Record updated
View JSON

Summary

Novee Security researchers found a critical remote code execution flaw in Gemini CLI, an open source AI agent for terminal access to Gemini, which Google patched in Gemini CLI and the 'run-gemini-cli' GitHub Action. Gemini CLI automatically trusted the current workspace folder and loaded any agent configuration in it without review, sandboxing or approval, so an attacker who planted a malicious configuration could run arbitrary commands on the host before sandbox initialization. The researchers said this could expose secrets, credentials and source code and enable token theft, lateral movement and supply chain attacks in CI/CD pipelines.

Mitigation

Google patched the flaw in both Gemini CLI and the 'run-gemini-cli' GitHub Action. The source does not give fixed version numbers or further configuration steps.