Skip to content
MediumNewsLLM-specific

Gemini CLI Vulnerability Could Have Led to Code Execution, Supply Chain Attack

Published
Record updated
View JSON

Summary

Pillar Security reports a critical flaw in Gemini CLI, the open source AI agent, rated CVSS 10/10 but lacking a CVE identifier. In --yolo mode, Gemini CLI ignored tool allowlists, so an attacker could hide malicious prompts in a public GitHub issue and have the agent triage it run commands, extract build-environment secrets and send them to an attacker-controlled server. Pillar says at least eight other Google repositories used the same vulnerable workflow template.

Mitigation

Google addressed the vulnerability on April 24 in Gemini CLI version 0.39.1, which evaluates tool allowlisting under --yolo mode. The run-gemini-cli GitHub Action was also updated. The update additionally resolved a lax trust issue in headless mode, which automatically trusted the current workspace folder.