← CVE Intelligence

CVE-2026-13745

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

Description (CNA)

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 (CNA)

Vendor / productVersions
Google Cloud / Gemini CLIaffected 0 before 0.39.1

CWE

CWE-829, CWE-15

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.