CVE-2026-13745
7.7
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/U:Amber
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Google Cloud | Gemini CLI | 0 < 0.39.1 | affected |
Weaknesses
- CWE-829: CWE-829 Inclusion of functionality from untrusted control sphere
- CWE-15: CWE-15 External Control of System or Configuration Setting
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: yes
- Technical Impact: total
References
- https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1
- https://www.redguard.ch/blog/2026/06/03/advisory-google-gemini-cli/
- https://www.pwned.info/articles/homing-in-on-arbitrary-code-execution-within-gemini-cli/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.