{
  "id": "CVE-2026-13745",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-13745",
  "published_at": "2026-09-10T08:33:09.309Z",
  "title": "Arbitrary Code Execution in Gemini CLI via Untrusted Local .env Files Overriding GEMINI_CLI_HOME",
  "vendor": "Google Cloud",
  "product": "Gemini CLI",
  "cvss": {
    "score": 7.7,
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-829",
  "cvss_by_source": {
    "cna": 7.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Google Cloud",
        "product": "Gemini CLI",
        "ranges": [
          "\u003c 0.39.1"
        ],
        "fixed_in": [
          "0.39.1"
        ]
      }
    ],
    "solutions": [
      "*  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\n  *  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."
    ],
    "upgrade": [
      "Upgrade Gemini CLI to 0.39.1 or later."
    ],
    "references": [
      {
        "kind": "Release notes",
        "url": "https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
