Quick answers
- Is CVE-2026-13745 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-13745 being exploited in the wild.
- How severe is CVE-2026-13745?
- Informational severity, published 10 September 2026.
- Which products and versions are affected?
- Google Gemini CLI prior to 0.39.1.
- Is there a fix for CVE-2026-13745?
- A patch was published on 2026-04-24: Fix released in version 0.39.1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-13745 attacked?
- It is attacked with local access.
- Am I affected by CVE-2026-13745?
- Check whether you run Google Gemini CLI at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability is a directory traversal / configuration hijacking flaw in how Gemini CLI processes environment variables and configuration files. The root cause is that the GEMINI_CLI_HOME environment variable (read from untrusted .env files in the current working directory) is used to redirect the location of the "trusted" user configuration directory. By placing a malicious .env file and corresponding .gemini/settings.json in an untrusted directory, an attacker can disable the folder trust prompt (via security.folderTrust.enabled = false) and inject malicious MCP server commands that execute with the user's privileges. The attack requires only that a victim launch Gemini CLI from an attacker-controlled or attacker-prepared directory; no user interaction beyond running the tool is needed. The vulnerability was patched in version 0.39.1.
Affected products
- Google Gemini CLI prior to 0.39.1
Timeline
- 2026-06-04: disclosed: Vulnerability disclosed on pwned.info
- 2026-04-24: patched: Fix released in version 0.39.1
- 2026-09-10: advisory: CVE-2026-13745 published on NVD