Google Discloses Critical Gemini CLI GitHub Workflow Flaw

· Original article ↗

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

CVE

People

Vendors

Products

Related Articles