CVE Catalog

CVE-2026-13745

HighCVSS 7.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.37%

30th percentile - higher than 30% of all known CVEs

Summary

A vulnerability in 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.

Risk Assessment

An attacker can execute arbitrary code with the privileges of the user running Gemini CLI, potentially leading to account or system compromise.

Recommendation

Update Gemini CLI to version 0.39.1 or later. Do not run the CLI in untrusted directories containing .env files.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS