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.
History

Wed, 23 Sep 2026 11:45:00 +0000

Type Values Removed Values Added
Description 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. 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.
Title Arbitrary Code Execution in Gemini CLI via Symlinked Environment Variables Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME
Weaknesses CWE-20
CWE-78
CWE-15
CWE-829
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L/U:Amber'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/U:Amber'}


Fri, 11 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Google Cloud
Google Cloud gemini Cli
Google Cloud run-gemini-cli Github Action
Vendors & Products Google Cloud
Google Cloud gemini Cli
Google Cloud run-gemini-cli Github Action

Thu, 10 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 10 Sep 2026 08:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Arbitrary Code Execution in Gemini CLI via Symlinked Environment Variables
Weaknesses CWE-20
CWE-78
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L/U:Amber'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GoogleCloud

Published: 2026-09-10T08:33:09.309Z

Updated: 2026-09-23T09:48:39.517Z

Reserved: 2026-06-29T15:39:28.269Z

Link: CVE-2026-13745

cve-icon Vulnrichment

Updated: 2026-09-10T15:03:31.475Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-10T09:17:00.703

Modified: 2026-09-23T10:17:06.027

Link: CVE-2026-13745

cve-icon Redhat

No data.