CVE-2026-13745: Google Cloud Gemini CLI · Improper input validation
Affects Google Cloud Gemini CLISource GCVE Database
Not known to be exploited · CVSS 9.2 Critical · patch available : patch Google Cloud Gemini CLI as a priority.
Data as of 10/25/2026, 16:58:55 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L/U:AmberExploitation evidence
Disclosed: evidence found.
CVE published 10 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wild: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Google Cloud Gemini CLI | Affected
| Fixed in
|
AI-suggested
A patch is available for this vulnerability. Since Gemini CLI is a cloud service managed by Google, remediation is handled server-side by the vendor. Users should ensure they are running version 0.39.1 or later. No additional mitigation steps are indicated by the vendor advisory.
Description
CVE-2026-13745 is a critical vulnerability in Google Cloud Gemini CLI versions prior to 0.39.1. It allows attackers to achieve arbitrary code execution by tricking users into running the CLI in an untrusted directory. The attack exploits improper input validation where untrusted .env files can override the GEMINI_CLI_HOME environment variable, causing malicious configuration files to be loaded and bypassing folder trust prompts.
Impact
Successful exploitation allows an attacker to execute arbitrary code on the victim's system without user interaction, by leveraging untrusted environment files and bypassing folder trust mechanisms. This can lead to full compromise of the environment where the Gemini CLI is run.
Weaknesses
- CWE-20Improper Input Validation (opens in a new tab)
Class weaknessLikelihood of exploit: HighCWE Top 25 (2025): #18OWASP Top 10 A05:2025: Injection (opens in a new tab)
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
MITRE discourages mapping vulnerabilities to this broad entry; the root cause is usually a more specific weakness.
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (opens in a new tab)
Base weaknessLikelihood of exploit: HighCWE Top 25 (2025): #9OWASP Top 10 A05:2025: Injection (opens in a new tab)
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.