Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

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.
Back to all
CVE

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.

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 GEMINICLIHOME to load malicious configuration files and bypass folder trust prompts.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.7
-
4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber
C
H
U
0
-
C
H
U
10
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Related Resources

No items found.

References

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/

Severity

10

CVSS Score
0
10

Basic Information

Base CVSS
10
EPSS Probability
0.00652%
EPSS Percentile
0.51283%
Introduced Version
0,0.35.0-nightly.20260313.bb060d7a9,0.40.0-preview.2,0.41.0-nightly.20260423.gd1c91f526,0.33.0-preview.2,0.34.0-nightly.20260305.348103298,0.30.0-nightly.20260226.f9f916e1d
Fix Available
4d73f3413949ae5c638804c5eac27a9bcd0567ca,0.39.1,0.40.0-preview.3,0.41.0-nightly.20260427.g42587de73

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading