# CVE-2026-13745: Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME

- Severity: High 7.7 (CVSS:4.0, scored by GoogleCloud) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-02)
- Published: 2026-09-10T08:33:09.309Z
- Modified: 2026-09-23T10:17:06.027Z
- Weaknesses: CWE-15, CWE-829
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Google Cloud Gemini CLI: before 0.39.1

## References

- <https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1>
- <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/>

## Sources

- CVE List: [CVE-2026-13745](https://www.cve.org/CVERecord?id=CVE-2026-13745), CVE Terms of Use, modified 2026-09-23
- NVD: [CVE-2026-13745](https://nvd.nist.gov/vuln/detail/CVE-2026-13745), Public domain, modified 2026-09-23

---

Page: https://cve.day/CVE-2026-13745 · Whole record: https://cve.day/CVE-2026-13745.json · Rebuilt by cve.day 2026-11-25T22:59:37.816Z
