Skip to content
Google Patches Critical Gemini CLI Flaw Allowing Remote Code Execution

Google Patches Critical Gemini CLI Flaw Allowing Remote Code Execution

Beyondmachines • December 3, 2026

Google has fixed a critical security vulnerability in the automated triage workflows of its Gemini CLI and the associated GitHub Action. The flaw resides in the automation surrounding the CLI, not the Gemini model itself. It affects legacy workflows used for sorting issues, reviewing contributions, and preparing automated fixes within GitHub repositories.

The flaw is tracked as CVE-2026-85259 (CVSS score 10.0) . It is a code injection vulnerability in the automated triage workflows of Google Gemini CLI and the run-gemini-cli GitHub Action. Unauthenticated remote attackers can exploit this by submitting crafted text in GitHub issues or pull requests that the automated agent then processes. Successful exploitation allows an attacker to run arbitrary commands on the GitHub Actions runner and read sensitive files.

The vulnerability exists because legacy workflow templates passed untrusted input, such as issue titles and bodies, into environment variables that reached a shell-capable agent. Ordinary shell expansion does not automatically reparse these variables, the specific agent-and-tool execution path allowed the crafted input to trigger command execution. These commands run with the permissions of the workflow job, potentially exposing the GITHUB_TOKEN and other repository secrets.

The impact of an attack depends on the specific permissions granted to the GitHub Actions runner: If the workflow has write access or persists credentials, an attacker could modify repository content or steal long-lived tokens. Google's investigation confirmed that command execution and file reading are possible, but there are currently no reports of public proof-of-concept exploits or active exploitation in the wild.

Google Gemini CLI versions released before 2026-05-12

run-gemini-cli GitHub Action commits before 2026-05-12

Workflow templates using !{echo $ISSUE_TITLE} or !{echo $ISSUE_BODY} interpolation

Google Gemini CLI version 0.71.1 and later

run-gemini-cli GitHub Action commits from 2026-05-12 and later

Administrators should update the Gemini CLI and pin the run-gemini-cli action to a specific, hardened commit SHA. It is also necessary to manually update workflow files to include the persist-credentials: false setting for all checkout steps. Organizations should rotate any secrets, such as GEMINI_API_KEY or APP_PRIVATE_KEY , that were accessible to runners executing the vulnerable workflows.

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

CVSS 10.0 Gemini CLI Flaw Lets Remote Attackers Run Commands via GitHub Issues Google published CVE-2026-85259 on 1 December 2026, a flaw in the legacy automated triage workflows of Gemini CLI and the run-gemini-cli GitHub Action, rated 10.0 under CVSS 4.0. According to the GitHub advisory as reported by Cybersecuritynews and MLQ.ai, an unauthenticated remote attacker could use crafted GitHub issue text to execute arbitrary commands or read sensitive files. Affected versions are those before 12 May 2026, and the articles say the exposed component is the workflow automation around Gemini CLI rather than the Gemini model or normal local CLI use. Workflows used Gemini to sort issues and review contributions, with issue titles and bodies passed to the agent through environment variables; Cybersecuritynews notes that the advisory does not publish the exact payload or execution sequence. Commands run with the permissions available to the workflow job, and the documented issue-fixer workflow supplied GITHUB_TOKEN to the agent step, so repository write impact is possible but Cybersecuritynews states command execution alone does not establish that any changes occurred. Ostorlab's background post says public repositories running the legacy workflows are the main exposure, that forks can reach maintainers through pull requests, and that the CLI has 516,442 weekly npm downloads. MLQ.ai reports that fixes were merged on 11 and 12 May 2026 without a security description at the time, and that the fix adds persist-credentials: false across 33 workflow files. Ostorlab reports no public proof of concept and no exploitation, and states the CVE is not in CISA KEV as of 2026-12-02. Remediation is to update the action and CLI to builds from 12 May 2026 or later, pin to a verified commit SHA, restrict shell tools, and rotate GEMINI_API_KEY and APP_PRIVATE_KEY. 5 sources 75

Extracted Entities

Attack Types (1)

Companies (1)

CWE Weaknesses (1)

Platforms (1)

Tools (1)