{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-13745","id":"CVE-2026-13745","title":"Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME","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.","descriptionLong":"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.","published":"2026-09-10T08:33:09.309Z","updated":"2026-10-20T11:18:36.149613126Z","reserved":"2026-06-29T15:39:28.269Z","status":"Awaiting Analysis","rejected":false,"assigner":"GoogleCloud","metric":{"version":"4.0","score":7.7,"vector":"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","rating":"high","source":"GoogleCloud"},"metrics":[{"version":"4.0","score":7.7,"vector":"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","rating":"high","source":"GoogleCloud"},{"version":"4.0","score":7.7,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber","rating":"high","source":"f45cbf4e-4146-4068-b7e1-655ffc2c548c"},{"version":"4.0","score":null,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber","rating":"unrated","source":"OSV"}],"rating":"high","products":["Google Cloud Gemini CLI"],"affectedProducts":[{"vendor":"Google Cloud","product":"Gemini CLI","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThan":"0.39.1","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-829","CWE-15"],"aliases":[],"references":[{"url":"https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1","tags":["web"]},{"url":"https://www.redguard.ch/blog/2026/06/03/advisory-google-gemini-cli/","tags":["advisory"]},{"url":"https://www.pwned.info/articles/homing-in-on-arbitrary-code-execution-within-gemini-cli/","tags":["web"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00652,"epssPercentile":0.51969,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-13745","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13745","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-13745","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-13745","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}