Google Discloses Critical Gemini CLI GitHub Workflow Flaw

Summary
CVE-2026-85259 affects Gemini CLI and run-gemini-cli workflows before May 12, 2026, allowing crafted GitHub issues to trigger command execution or file access on Actions runners. No exploitation is reported; the article outlines fixes and mitigations.
Key points
- Google rates CVE-2026-85259, an OS command injection flaw (CWE-78), 10.0 under CVSS 4.0.
- Crafted issue content in affected workflows could lead to command execution or sensitive-file access on GitHub Actions runners; the article says an attacker need not be authenticated.
- Google's record confirms the outcomes but does not specify the exact payload or execution path. Independent analysis says issue-text expansion alone does not establish direct shell injection before the model runs.
- Gemini CLI and run-gemini-cli revisions before May 12, 2026 are affected; referenced fixes are from that date. Workflow files copied into repositories must be checked separately.
- The workflows may provide the agent with a GITHUB_TOKEN and model-provider keys; persisted checkout credentials can leave a Git token on the runner, with potential impact depending on token scopes.
- No attacks have been reported, and the article identifies no public proof of concept or CISA Known Exploited Vulnerabilities listing.
- Recommended steps include updating or pinning the action, disabling persisted checkout credentials, limiting tools and token permissions, gating issue-triggered runs, rotating exposed secrets, and reviewing past runs.
Article Details
- Vulnerability Types
- OS command injection
- Remote code execution
- Severity
- Critical; CVSS 10.0 (CVSS 4.0)
- Affected Versions
- Gemini CLI versions before May 12, 2026
- run-gemini-cli GitHub Action revisions before May 12, 2026
- Exploitation Status
- not_reported
- Exploit Availability
- none_reported
- Patch Status
- available
- Workarounds
- Set persist-credentials: false on actions/checkout steps in workflows that process issue or fork pull request text.
- Remove shell tools and auto-approve mode from triage jobs, narrow tool allowlists, and scope GITHUB_TOKEN to read-only permissions where possible.
- Gate issue-triggered agent runs behind a maintainer label, an author_association check, or a manually started workflow.
- Rotate secrets exposed to affected runners and review past runs for shell syntax and unfamiliar outbound connections.
MITRE ATT&CK
T1059 · Command and Scripting InterpreterThe vulnerable workflows could let an unauthenticated attacker cause commands to run through shell tools on a GitHub Actions runner.T1552.001 · Credentials In FilesA checkout step that persisted credentials left a Git token on disk, which the article says could be exposed to the agent.
CVE
CVE-2026-12537Google Cloud · Gemini CLI; Google Cloud · run-gemini-cli GitHub ActionIn April 2026, Google fixed CVE-2026-12537 (CVSS 10.0), a remote code execution (RCE) flaw involving workspace trust and tool allowlisting bypasses, in Gemini CLI 0.39.1 and run-gemini-cli 0.1.22.CVE-2026-85259Google · Gemini CLI; Google · run-gemini-cli GitHub ActionOn December 1, 2026, Google published CVE-2026-85259, a flaw in the automated triage workflows of Gemini CLI, its open-source AI agent for the terminal.
People
Vendors
Products
Gemini CLIOn December 1, 2026, Google published CVE-2026-85259, a flaw in the automated triage workflows of Gemini CLI, its open-source AI agent for the terminal.GitHub Actionsunauthenticated attacker use crafted GitHub issue content to run commands or read sensitive files on GitHub Actions runners using Gemini CLI or run-gemini-cli versions before May 12, 2026.run-gemini-cliissue content to run commands or read sensitive files on GitHub Actions runners using Gemini CLI or run-gemini-cli versions before May 12, 2026.
