PatchSiren cyber security CVE debrief
CVE-2026-13745 Google Cloud CVE debrief
The Gemini CLI prior to version 0.39.1 has a vulnerability that 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. This vulnerability can lead to unauthorized access and data breaches. Defenders should prioritize verifying the integrity of the Gemini CLI installation directory and ensuring that users are aware of the risks associated with starting the CLI in untrusted directories.
- Vendor
- Google Cloud
- Product
- Gemini CLI
- CVSS
- HIGH 7.7
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-09-10
- Original CVE updated
- 2026-09-23
- Advisory published
- 2026-09-10
- Advisory updated
- 2026-09-23
Who should care
Defenders responsible for managing the Gemini CLI installation and users who utilize the CLI in their workflows should be aware of this vulnerability and take necessary precautions to prevent exploitation.
Why it matters
The vulnerability in the Gemini CLI prior to version 0.39.1 allows attackers to achieve arbitrary code execution, which can lead to unauthorized access and data breaches. Defenders should prioritize verifying the integrity of the Gemini CLI installation directory and ensuring that users are aware of the risks associated with starting the CLI in untrusted directories.
- Verify the integrity of the Gemini CLI installation directory to prevent loading of malicious configuration files
- Ensure users are aware of the risks associated with starting the CLI in untrusted directories to prevent exploitation
- Update to version 0.39.1 or later to patch the vulnerability
Technical summary
The 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. This vulnerability can lead to unauthorized access and data breaches. Defenders should prioritize verifying the integrity of the Gemini CLI installation directory and ensuring that users are aware of the risks associated with starting the CLI in untrusted directories.
Defensive priority
Defenders should prioritize verifying the integrity of the Gemini CLI installation directory and ensuring that users are aware of the risks associated with starting the CLI in untrusted directories.
Recommended defensive actions
- Verify the integrity of the Gemini CLI installation directory
- Ensure users are aware of the risks associated with starting the CLI in untrusted directories
- Update to version 0.39.1 or later
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and NVD vulnerability detail page provide information on the vulnerability, but the scope of affected versions and potential impact require further verification. The source references provided offer additional context, but a more thorough analysis is needed to fully understand the vulnerability. Defenders should verify the integrity of the Gemini CLI installation directory and review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-13745 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-13745
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-13745 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-13745
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1
f45cbf4e-4146-4068-b7e1-655ffc2c548c
-
Source reference
Unverified legacy reference
URL: https://www.pwned.info/articles/homing-in-on-arbitrary-code-execution-within-gemini-cli/
f45cbf4e-4146-4068-b7e1-655ffc2c548c
-
Source reference
Unverified legacy reference
URL: https://www.redguard.ch/blog/2026/06/03/advisory-google-gemini-cli/
f45cbf4e-4146-4068-b7e1-655ffc2c548c
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.