PoC Monitor
← All CVEs
CVE-2026-13745published 10 Sep 2026 08:33 UTCData: JSON · API

Google Cloud Gemini CLI

Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.7high · scored by CNA · CWE-829
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Google Cloud Gemini CLI
  • < 0.39.1

Fixed in 0.39.1

Mitigation

* Upgrade: Ensure you are using the latest version of gemini cli and follow the best practices guide https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md * Configure Trust: Determine if your CI workflow operates on trusted or untrusted data. If the data is fully trusted, set GEMINI_TRUST_WORKSPACE: 'true' in your workflow.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published10 Sep 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.