CVE-2026-13745

published 10 Sep 2026 · updated 23 Sep 2026

Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME

7.7HighCVSS 7.7EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.39.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Google Cloud<0.39.10.39.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-13745 severity on Zeptric[![CVE-2026-13745](https://zeptric.io/badge/cve/CVE-2026-13745.svg)](https://zeptric.io/cve/CVE-2026-13745)