CVE-2026-13745

high

Description

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.

References

https://www.redguard.ch/blog/2026/06/03/advisory-google-gemini-cli/

https://www.pwned.info/articles/homing-in-on-arbitrary-code-execution-within-gemini-cli/

https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-75326

Details

Source: Mitre, NVD

Published: 2026-09-10

Updated: 2026-09-23

Risk Information

CVSS v2

Base Score: 6.8

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Severity: Medium

CVSS v3

Base Score: 7.8

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Severity: High

CVSS v4

Base 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

Severity: High

EPSS

EPSS: 0.00375