CVE-2026-85259: Command Injection in Google Gemini CLI GitHub Actions Workflows
CVE-2026-85259 is a command-injection vulnerability affecting legacy automated GitHub Actions workflows associated with Google Gemini CLI and the run-gemini-cli GitHub Action predating May 12, 2026. Affected workflows incorporate attacker-controlled GitHub issue titles and bodies into agent prompts. Crafted issue text can reach an agent-and-tool execution path that permits arbitrary command execution or sensitive-file access with the workflow job's privileges. The vulnerability concerns workflow automation, not the Gemini model or ordinary local CLI use. The exact payload and execution sequence have not been publicly disclosed; issue-text expansion alone does not establish direct shell injection before model execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality and integrity of the affected workflow execution environment through arbitrary command execution and sensitive-file access. Accessible workflow tokens, model-provider API keys, persisted checkout credentials, and other available secrets may be exposed. Repository modification and downstream software supply-chain compromise are possible if accessible credentials grant sufficient write permissions. Access to external services depends on the scope of exposed credentials and the runner's connectivity. Exploitation does not imply access to every repository secret.
Mitigation
If you can’t patch tonight, do this now.
Inventory Gemini automation that processes untrusted issue or pull-request text. Remove unnecessary shell-tool access and --yolo auto-approval, narrow tool allowlists, minimize workflow-token permissions, and require maintainer approval or trusted-author checks before processing external input. Disable checkout credential persistence, while recognizing that this does not protect tokens explicitly supplied to the agent. Review historical workflow runs for unexpected commands, outbound connections, and unexplained repository changes. Rotate credentials potentially accessible during affected runs.
Remediation
Patch, then assume compromise.
Update Gemini CLI, the run-gemini-cli GitHub Action, and all copied workflow templates to verified hardened revisions from May 12, 2026, or later. Pin the action to a verified full commit SHA. Review existing repository workflows separately because updating the CLI or action does not automatically update previously copied templates. Apply the checkout hardening associated with the fixes by setting persist-credentials: false. A fixed semantic package version is not specified, and disabling credential persistence should not be assumed to address every aspect of the undisclosed execution path.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2026-85259 exploited in the wild?
- As of Dec 3, 2026, Mallory has no reports of CVE-2026-85259 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-85259?
- As of Dec 3, 2026, Mallory has found no public exploit for CVE-2026-85259.
- Is there a patch for CVE-2026-85259?
- Update Gemini CLI, the run-gemini-cli GitHub Action, and all copied workflow templates to verified hardened revisions from May 12, 2026, or later. Pin the action to a verified full commit SHA.
- How severe is CVE-2026-85259?
- CVE-2026-85259 has a CVSS v4 score of 10.0 (Critical) and an EPSS score of 0.50% (44th percentile) as of Dec 3, 2026.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.