CVE-2026-13745
High
Description
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.
SeverityHigh
CVSS7.7
Exploit probability—
Product
Gemini CLI
PublishedSep 10, 2026
First seenSep 10, 2026
Weakness typeCWE-829CWE-829CWE-15CWE-15
How to fix
Update
- Google Cloud Gemini CLI0.39.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Google Cloud Gemini CLI | v < 0.39.1 | 0.39.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.