Skip to content
OpenAdvisories
High · 7.7 CVE-2026-13745 EUVD-2026-75326GHSA-2255-3477-vp73

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

Published Sep 10, 2026 · Updated Sep 23, 2026 · Assigned by GoogleCloud

Description

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 products

VendorProductAffectedFixed
Google Cloud Gemini CLI < 0.39.1 0.39.1

References