Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-13745
Published:September 10, 2026
Updated:October 13, 2026
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 Packages
https://github.com/google-gemini/gemini-cli.git (GITHUB):
Affected version(s) >=v0.1.6 <v0.39.1
Fix Suggestion:
Update to version v0.39.1
https://github.com/google-gemini/gemini-cli.git (GITHUB):
Affected version(s) =v0.40.0-preview.2 <v0.40.0-preview.3
Fix Suggestion:
Update to version v0.40.0-preview.3
@google/gemini-cli (NPM):
Affected version(s) =0.40.0-preview.2 <0.40.0-preview.3
Fix Suggestion:
Update to version 0.40.0-preview.3
@google/gemini-cli (NPM):
Affected version(s) >=0.1.0 <0.39.1
Fix Suggestion:
Update to version 0.39.1
Do you need more information?
Contact Us
CVSS v4
Base Score:
7.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
External Control of System or Configuration Setting
Inclusion of Functionality from Untrusted Control Sphere
EPSS
Base Score:
0.38