A 10.0 Gemini CLI flaw lets a GitHub issue run commands — check your copied workflows
CVE-2026-85259, published 1 December 2026, scores 10.0: crafted GitHub issue text could run commands in Gemini CLI triage workflows. The fix dates to May — but copied workflow files stay vulnerable.

Affects
- Gemini CLI
Tracked as
CVE-2026-85259Gemini CLI and run-gemini-cli GitHub Action · CVSS 10
Google has published a flaw in its Gemini CLI automation that carries the highest possible score: 10.0. An unauthenticated attacker could open a GitHub issue containing crafted text and make the repository’s own triage workflow run arbitrary commands or read sensitive files on the runner. The flaw itself was fixed in May. The problem is that the vulnerable workflows were designed to be copied — and copied workflow files do not update when the original is fixed.
How an issue becomes a shell
Gemini CLI is Google’s open-source AI agent for the terminal, and run-gemini-cli is its GitHub Action. The pair ships with example workflows that let Gemini sort incoming issues, review contributions and prepare fixes automatically. Those workflows feed issue titles and descriptions into the agent’s prompt, and command templates pass the issue text through the shell on the way in.
Where a workflow gave the agent shell tools, those tools ran with the job’s permissions and secrets. A checkout step that kept its credentials left a Git token sitting on the runner’s disk, and the documented issue-fixer workflow handed the agent a GitHub token and provider keys as inputs. So anyone able to open an issue on a public repository could put text in front of an agent that held credentials — no account on the target repository needed, no login at all. Google rates the flaw as OS command injection, and the record credits Dan Lisichkin with the report.
The flaw is in the automation wrapped around Gemini CLI, not in the Gemini model and not in ordinary local use of the command-line tool. A developer running Gemini CLI on their own machine was never exposed this way.
The fix, and why it may not have reached you
Google’s record draws the line by date rather than version number: Gemini CLI and the run-gemini-cli Action from before 12 May 2026 are affected; revisions from that date are fixed. The fix itself was a small change with a large effect — setting persist-credentials: false on the checkout steps, so the workflow token is no longer written into the runner’s Git configuration. It landed in the action’s repository and in the Gemini CLI repository on 11 and 12 May 2026.
That should have been the end of it. It is not, because the triage workflows were published as examples for other repositories to copy. A copied file in another repository does not change when the upstream package or action is updated. Every copy has to be checked on its own — and as of 2 December, no attacks using the flaw had been reported, and it does not appear in CISA’s list of flaws known to be exploited.
From fix to disclosure
11–12 May 2026
Fixes merged
Both repositories set persist-credentials to false on their checkout steps.
1 Dec 2026, 20:22 UTC
CVE published
Google’s CVE record for CVE-2026-85259 goes live, scoring the flaw 10.0 under CVSS 4.0.
Now
Copied workflows still exposed
Repositories running copied triage files from before May need to check and re-sync them.
What repository owners should do
Audit your triage workflows
Find the workflows
Search your repositories for run-gemini-cli references in .github/workflows, including any job that processes issue or pull request text.
Compare against upstream
Check whether each file matches the current hardened upstream version, and whether its checkout steps set persist-credentials to false.
Update the files, not just the package
Updating the CLI or the action alone leaves a copied workflow untouched. Re-sync the workflow file itself, and pin the action to a verified full commit SHA.
Tighten what the agent can do
Remove shell access and automatic approval where the workflow does not need them, narrow token permissions, and require maintainer approval before untrusted input is processed.
Rotate exposed secrets
Rotate repository secrets that were present on runners using the affected workflows.
The lesson reaches beyond Gemini. Any AI agent wired into automation with repository credentials turns untrusted input into a privileged instruction, and the boundary that matters is what the agent can read and run — not what the model was asked to do. If your repository runs any agent on incoming issues, audit the workflow the same way.
Sources
- CVE-2026-85259CVE.org
- Gemini CLI CVE-2026-85259: GitHub Triage Workflow FlawSOCRadar


