Google CloudCVE-2026-13745
Google Cloud Gemini CLI: code execution
Fix: upgrade to 0.39.1 or later
A vulnerability in the Gemini CLI prior to version 0.39.1 allows attackers to achieve arbitrary code execution by tricking a victim into starting the CLI within an untrusted directory. The vulnerability is triggered via untrusted .env files overriding GEMINI_CLI_HOME to load malicious configuration files and bypass folder trust prompts.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Gemini CLI Product | < 0.39.1 | 0.39.1 |