CVE-2026-13745
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 GEMINICLIHOME to load malicious configuration files and bypass folder trust prompts.
Package Versions Affected
Automatically patch vulnerabilities without upgrading
CVSS Version



Related Resources
References
https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1, https://www.pwned.info/articles/homing-in-on-arbitrary-code-execution-within-gemini-cli/, https://www.redguard.ch/blog/2026/06/03/advisory-google-gemini-cli/