CVE-2026-13745
published high CVSS 4.0 · 7.7Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Google Cloud | — | Gemini CLI0 to < 0.39.1 · Other versions: unaffected | Affected | Not stated | GoogleCloud |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- GoogleCloud · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Google Cloud | Gemini CLI | 0 to < 0.39.1 (affected · custom)Default: unaffected | GoogleCloud · cna |
Weaknesses
2- CWE-829 CWE-829 Inclusion of functionality from untrusted control sphere
- CWE-15 CWE-15 External Control of System or Configuration Setting
References
3Provider assertions
2GoogleCloud · cna
Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 210ad180df5bbbcb77c69f7a8df5e00debc8a66ef1d4378b3893a7669f679ced
- Ingested
- 23 Sep 2026, 10:00:58 UTC
- Source record
- Official CVE record