Home / Google Cloud / Gemini CLI / CVE-2026-13745
CVE-2026-13745: is it exploited, and which versions of Google Cloud Gemini CLI are affected and fixed?
CVE-2026-13745 is an inclusion of code from an untrusted source vulnerability in Google Cloud Gemini CLI. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: Gemini CLI before 0.39.1 (CVE record by GoogleCloud). Fixed in 0.39.1 (CVE record by GoogleCloud). Severity: High (7.7, CVSS 4.0, from GoogleCloud).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:07 UTC.
What is CVE-2026-13745?
Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME
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.
From the CVE record by GoogleCloud, last updated September 23, 2026, 09:48 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Google Cloud | Gemini CLI | before 0.39.1 | 0.39.1 |
As the CVE record by GoogleCloud states it, last updated September 23, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-13745?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.7 | CVSS 4.0 | 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 | GoogleCloud |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-13745 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, September 10, 2026)
- EPSS
- 0.38% probability of exploitation activity in the next 30 days, percentile 33.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
- CWE-15 External Control of System or Configuration Setting
How do I fix it? (from the CVE record)
* Upgrade: Ensure you are using the latest version of gemini cli and follow the best practices guide https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md * Configure Trust: Determine if your CI workflow operates on trusted or untrusted data. If the data is fully trusted, set GEMINI_TRUST_WORKSPACE: 'true' in your workflow.
Where are the vendor advisories and 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/
Who found and reported it?
- Benjamin Faller, Redguard AG (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 29, 2026
- Published
- September 10, 2026, 08:33 UTC
- CVE record updated
- September 23, 2026, 09:48 UTC by GoogleCloud
- NVD
- Awaiting Analysis, last modified September 23, 2026, 10:17 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:07 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Gemini CLI?
- Jun 24, 2026CVE-2026-12537 Google Cloud Gemini CLI: improper input validation
Questions about CVE-2026-13745
Is CVE-2026-13745 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 0.38% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Google Cloud Gemini CLI are affected by CVE-2026-13745?
Gemini CLI before 0.39.1, per the CVE record by GoogleCloud. The tables above give every range the sources list.
Which version fixes CVE-2026-13745?
0.39.1, per the CVE record by GoogleCloud. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-13745?
High (7.7, CVSS 4.0, from GoogleCloud). The severity table above shows each score with its source.
Where is the official record of CVE-2026-13745?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.