CVE-2026-13745
Published:September 10, 2026
Updated:September 22, 2026
A vulnerability in the Gemini CLI and associated GitHub Action allowed an unprivileged attacker to achieve an arbitrary code execution in Gemini CLI via untrusted local .env files overriding GEMINI_CLI_HOME.
Affected Packages
https://github.com/google-gemini/gemini-cli.git (GITHUB):
Affected version(s) >=v0.1.6 <v0.39.1Fix Suggestion:
Update to version v0.39.1https://github.com/google-gemini/gemini-cli.git (GITHUB):
Affected version(s) =v0.40.0-preview.2 <v0.40.0-preview.3Fix 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.3Fix Suggestion:
Update to version 0.40.0-preview.3@google/gemini-cli (NPM):
Affected version(s) >=0.1.0 <0.39.1Fix Suggestion:
Update to version 0.39.1Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
LOW
CVSS v3
Base Score:
9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.30