Gemini CLI GitHub Action RCE: CVE-2026-85259 Explained

A crafted GitHub issue, no login and no repo access needed, was enough to trigger command execution on a CI runner via Gemini CLI. Here's how CVE-2026-85259 (CVSS 10.0) worked and what to check.

Google disclosed a maximum-severity vulnerability in the Gemini CLI GitHub Action on December 1, 2026. Tracked as CVE-2026-85259, it let an attacker who could merely post text in a public GitHub issue trigger command execution on a CI runner, no login to the runner, no repository privileges, no pull request merge required. Anyone running automated Gemini issue-triage workflows in GitHub Actions needs to check their configuration this week.

What the advisory says

CVE-2026-85259 is also tracked as GHSA-g6vw-c6rx-j9ph. It covers legacy automated triage workflows for Gemini CLI and the google-github-actions/run-gemini-cli Action, and it carries a CVSS v4.0 score of 10.0, the maximum possible. Dan Lisichkin is credited as the reporter. The affected range is date-based, not version-numbered: workflows from before May 12, 2026 are in scope. That matters because a routine dependency version check won't reliably flag it.

The flaw lets an attacker supply crafted GitHub issue content that leads to arbitrary command execution or sensitive-file access on the workflow runner. The access path requires no runner login and no repository privileges, but the attacker still has to get text in front of the workflow, typically by opening a public issue. It doesn't bypass GitHub's own sign-in rules; it just means the sign-in rules were never the control that mattered here.

How the chain actually worked

The root problem is an old pattern dressed up in a new agent. A triage workflow reads issue text, hands it to Gemini CLI as context, and lets Gemini call tools, read files and run shell commands to help categorize or respond to the issue. The issue author controls the text being analyzed. They should not control the tools the agent calls or the runner's credentials, but on the vulnerable workflows they effectively did.

1 · Checkout step runs

The workflow's checkout step authenticates to the repository. On the affected workflows, that step had not disabled credential persistence, so the token landed in .git/config inside the workspace.

2 · Attacker opens an issue

Crafted issue text looks like a normal bug report but contains instructions aimed at the agent rather than the human triager.

3 · Gemini reads and acts

The triage step reads the issue, including the injected instructions, and can call file-read or shell tools against the same workspace where the git credential sits.

4 · Commands execute

Because the checkout credential is reachable and the agent's tool calls aren't scoped away from it, the injected instructions run as commands with that credential's reach.

Some example workflows made this worse directly. One widely referenced Gemini "issue-fixer" template passed a GitHub token to Gemini as an explicit variable, even on copies that had already disabled checkout credential persistence. Turning off persist-credentials doesn't help if the token is handed to the agent through another input anyway.

What Google actually fixed

The fix is narrow and specific, not a version bump you pull with a package manager update.

10.0
CVSS v4.0 score, the maximum possible rating
33
workflow files patched in gemini-cli with persist-credentials: false
6
workflow files updated in the run-gemini-cli Action's own checkout settings

Google's gemini-cli repository merged a patch adding persist-credentials: false across 33 workflow files on May 12, 2026, and the separate run-gemini-cli Action updated checkout settings in six workflow files a day earlier, on May 11. Older versions of the checkout Action wrote the git credential into local Git configuration inside the workspace; checkout v6 moves that credential file into the runner's temporary directory instead, somewhere a workspace-scoped file read is less likely to land on it.

That fixes the default templates. It does not fix every fork, every custom triage workflow copied from an older example, or any workflow that still passes a token to Gemini explicitly instead of relying on checkout alone.

Why a dependency scanner will miss this

As of this incident's disclosure, the advisory was still marked unreviewed in the GitHub Advisory Database and had no Dependabot alert attached, meaning a routine dependency scan would not have surfaced it. If your only control for third-party Action risk is "Dependabot would tell us," this is a concrete case where it wouldn't have. Someone has to read the workflow YAML.

No public exploit code or confirmed in-the-wild attacks have been reported against CVE-2026-85259 as of this writing, and that's worth saying plainly rather than implying otherwise. It's also not Gemini CLI's first CVSS-10 incident this year: an earlier flaw in Gemini CLI and run-gemini-cli, rooted in workspace trust and tool-allowlist handling, was separately scored at the maximum CVSS v4 value of 10.0 and disclosed publicly in August. Same category of mistake both times: an agent reading untrusted input in CI while holding more reach than that input should ever touch.

What to check in your own repositories

  • Search your workflows for gemini-cli or run-gemini-cli steps that trigger on issues or issue_comment events.
  • Confirm the checkout step sets persist-credentials: false, and separately check whether any step passes a GITHUB_TOKEN or API key to the agent as an explicit input regardless.
  • Pin the Action to a commit SHA rather than a floating tag, and compare your workflow against the May 2026 hardening pull requests referenced in GHSA-g6vw-c6rx-j9ph.
  • Rotate any secret that was reachable from a triage runner before the patch landed. A scoped rotation is cheaper than a guess.
The pattern to watch for: any agent that reads attacker-reachable text and also holds a credential in the same process or workspace. The fix has to separate the credential from the text, rather than only sanitizing the text.

This bug worked because the runner credential sat in the same workspace the agent's tools could read, which is the specific failure KnoxCall is built against: injecting third-party credentials at the network edge instead of handing them to the agent's execution context means a compromised tool call never has a real token to find. We make a product in this space, and we're saying this because it fits the actual shape of this bug, not because every CI secrets leak looks like this one.

Frequently asked questions

What is CVE-2026-85259?

CVE-2026-85259 is a CVSS v4.0 10.0 vulnerability in legacy automated issue-triage workflows for Google's Gemini CLI and the run-gemini-cli GitHub Action. A crafted GitHub issue could make the workflow execute commands or read sensitive files on the CI runner, with no login and no repository privileges needed.

Which versions of Gemini CLI are affected by CVE-2026-85259?

Google's advisory uses a date boundary rather than a version number: workflows using Gemini CLI or the run-gemini-cli Action from before May 12, 2026 are in scope. That means a dependency version check alone won't confirm you're patched; you need to review the workflow YAML itself.

How do I fix CVE-2026-85259 in my own repository?

Set persist-credentials: false on your checkout step, check for any step that still passes a GitHub token or API key to Gemini explicitly, and compare your workflow against the hardening pull requests referenced in GHSA-g6vw-c6rx-j9ph. Rotate secrets that were reachable from an affected runner before you patched.

Has CVE-2026-85259 been exploited in the wild?

As of Google's December 1, 2026 disclosure, no public exploit code or confirmed in-the-wild attacks had been reported against this specific CVE. That can change quickly once a CVE with a CVSS 10.0 score and a clear write-up is public, so treat the absence of reports as temporary, not as a reason to delay patching.

Sources

  1. Critical Gemini CLI Vulnerability Lets Hackers Run Malicious Commands Without Login
  2. CVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub Actions - StepSecurity
  3. CVE-2026-85259: Gemini CLI Workflow Injection, Patch Status - Brandefense
  4. Gemini CLI GitHub workflows allow command execution (CVE-2026-85259) - Zerohour
  5. Three AI Coding Agents, One GitHub Issue: CI/CD Secrets Exposed - Cloud Security Alliance
  6. Critical Gemini CLI Vulnerability Lets Attackers Execute Arbitrary Code

Keep AI agent tool calls off the same trust boundary as your secrets

Gemini CLI's CI agent could read runner credentials sitting in its own workspace; KnoxCall injects third-party credentials at the wire so agents only ever hold a token.

Start Free →

Or get new posts by email. Double opt-in, unsubscribe anytime.