{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-13745 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-13745 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-13745 is a high-severity code injection vulnerability in Google Cloud Gemini CLI, published on 10 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-13745 and fix it if it is affected.\n\nWhat it is: CVE-2026-13745 is a high-severity code injection vulnerability in Google Cloud Gemini CLI, published on 10 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-13745 in the wild and no public exploit code.\n\nAffected product: Google Cloud Gemini CLI. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-13745/ (Markdown: https://insights.sbomify.com/CVE-2026-13745/index.md)","id":"CVE-2026-13745","markdown":"https://insights.sbomify.com/CVE-2026-13745/index.md","name":"CVE-2026-13745","record":{"aliases":["GHSA-2255-3477-vp73"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Gemini CLI","requires_auth":"none","summary":"Attackers can execute arbitrary code by tricking users into running Gemini CLI in untrusted directories with malicious .env files.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GoogleCloud","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"},{"id":"CWE-15","name":"External Control of System or Configuration Setting"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME","id":"CVE-2026-13745","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":3,"next":{"headline":"Snowflake CLI SQL Injection Through Improper Neutralization of Local CLI Parameters","id":"CVE-2026-13746"},"packages":[],"prev":{"headline":"Snowflake CLI SQL Injection Through Improper Neutralization of User-Controlled Input","id":"CVE-2026-13744"},"products":["Gemini CLI"],"published":"2026-09-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-23","vendors":["Google Cloud"]},"summary":"Attackers can execute arbitrary code by tricking users into running Gemini CLI in untrusted directories with malicious .env files.","url":"https://insights.sbomify.com/CVE-2026-13745/"}