Critical Gemini CLI Vulnerability Allows Remote Command Execution via GitHub Actions
A critical vulnerability (CVE-2026-85259) in Google Gemini CLI's GitHub Actions workflows allows remote attackers to execute commands and read files by crafting GitHub issue text.

A critical vulnerability affecting Google Gemini CLI's automated GitHub Actions workflows has been disclosed, enabling remote attackers to execute arbitrary commands and access sensitive files. The flaw, tracked as CVE-2026-85259, specifically impacts legacy workflows within the Gemini CLI and the run-gemini-cli GitHub Action that were in use prior to May 12, 2026. Google publicly announced the vulnerability on December 1, assigning it a CVSS v4.0 score of 10.0, indicating a critical severity.
The exploit requires no prior access to the target runner or repository privileges. The primary prerequisite for an attacker is the ability to submit text that is processed by an affected workflow. It is important to note that "without login" in this context does not imply bypassing GitHub's authentication mechanisms; rather, it refers to the vulnerability within the automation processes surrounding Gemini CLI, not the Gemini model itself or standard local CLI operations.
The vulnerable workflows were designed to leverage Gemini for tasks such as sorting issues, reviewing contributions, or preparing fixes. Issue titles and descriptions were fed into the Gemini model through environment variables like ISSUE_TITLE and ISSUE_BODY. The command templates used within these workflows, such as !{echo $ISSUE_TITLE} and !{echo $ISSUE_BODY}, passed their output directly into the model's prompt. This mechanism allowed a crafted issue to reach a vulnerable agent-and-tool execution path, granting shell access.
While the GitHub advisory confirms the potential for command execution and file reading, the precise payload and execution sequence have not been publicly detailed. Previous research into Gemini CLI prompt injection vulnerabilities highlighted the broader risks associated with AI agents processing external text while possessing privileged tools. Commands executed through this vulnerability would inherit the permissions and access levels available to the workflow job.
The documented issue-fixer workflow, for instance, explicitly provided a GITHUB_TOKEN to the agent step and passed provider keys as action inputs. If an attacker could leverage this token, which might have write permissions to the repository, they could potentially alter repository content. While command execution alone does not confirm such modifications, the potential for credential exposure is significant, depending on the process's access rights.
Maintainers are strongly advised to inspect their .github/workflows directories for references to run-gemini-cli. They should identify any jobs that process untrusted input from issues or pull requests. Updating the Gemini CLI and the associated GitHub Action to hardened revisions released on or after May 12, 2026, is crucial. Simply updating the package does not update workflow files; therefore, pinning the action to a verified full commit SHA is recommended.
Google's patch for the Gemini CLI included setting persist-credentials: false across 33 workflow files, which prevents the checkout action from saving its credentials. However, this does not block access to an explicitly supplied GITHUB_TOKEN. Further mitigation steps include removing unnecessary run_shell_command access, disabling --yolo settings, narrowing token permissions, and implementing a maintainer approval step before processing external input. Organizations should also review past workflow runs for any unexpected commands, unusual network requests, or unexplained repository changes, and rotate any credentials that may have been exposed.
As of December 2, Ostorlab reported no public proof-of-concept exploits or known exploitation instances for CVE-2026-85259. However, the absence of public exploitation does not guarantee that exposed credentials remained secure, and the full scope of potential downstream impacts is not yet established.