Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Google Cloud / Gemini CLI | affected 0 before 0.39.1 |
CWE
CWE-829, CWE-15
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/
ADP enrichment
No English description supplied.
No references supplied.