High severity · published Sep 10, 2026
CVE-2026-13745
Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME
7.7
CVSS
0.7%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 51% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GC
Gemini CLI · Google Cloud
before 0.39.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-13745
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-13745
github.com
https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1
www.pwned.info
https://www.pwned.info/articles/homing-in-on-arbitrary-code-execution-within-gemini-cli/
www.redguard.ch
https://www.redguard.ch/blog/2026/06/03/advisory-google-gemini-cli/
More from Gemini CLI
7.8
CVE-2026-12537
Unauthenticated Remote Code Execution in Gemini CLI CI/CD Workflows
