CVE-2026-13745
Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME
CVSS 4.0 7.7 HIGHCheck source for fixed versionsKEV status unknown
cve-program · CVE-2026-13745
PublishedA 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-13745 · CVE overview and exploitation status
cve-program · CVE-2026-13745
Related changes
Linked by CVE identifierNo related changes are available here.