CVE-2026-13745

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

No CVSS.

Configurations

No configuration.

History

23 Sep 2026, 10:17

Type Values Removed Values Added
CWE CWE-20
CWE-78
CWE-15
CWE-829
References
  • {'url': 'https://github.com/google-github-actions/run-gemini-cli/releases/tag/v0.1.22', 'source': 'f45cbf4e-4146-4068-b7e1-655ffc2c548c'}
  • {'url': 'https://github.com/google-github-actions/run-gemini-cli/security/advisories/GHSA-wpqr-6v78-jr5g', 'source': 'f45cbf4e-4146-4068-b7e1-655ffc2c548c'}
  • () https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1 -
  • () https://www.pwned.info/articles/homing-in-on-arbitrary-code-execution-within-gemini-cli/ -
  • () https://www.redguard.ch/blog/2026/06/03/advisory-google-gemini-cli/ -
Summary (en) 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. (en) 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.

Information

Published : 2026-09-10 09:17

Updated : 2026-09-23 10:17


NVD link : CVE-2026-13745

Mitre link : CVE-2026-13745

CVE.ORG link : CVE-2026-13745


JSON object : View

Products Affected

No product.

CWE
CWE-15

External Control of System or Configuration Setting

CWE-829

Inclusion of Functionality from Untrusted Control Sphere