Skip to content
Security

Google Gemini CLI, CVE-2026-85259: a new CVE scored 10

·9 min read

The bottom line

If you have no automated GitHub Actions workflows using Google Gemini CLI or the run-gemini-cli Action to process issue or pull-request inputs, stop here. Teams that do must act immediately — the record scores this 10 out of 10 — by identifying those workflows and updating or disabling them.
Cover page of Google Gemini CLI, CVE-2026-85259: a new CVE scored 10Free analysis report · 10 pagesGoogle Gemini CLI, CVE-2026-85259: a new CVE scored 10The same note as a document you can keep or forward: what the sources say, who is affected, and what to do first.Download the analysis report →

At a glance

FactDetail
ProductGoogle Gemini CLI (CVE-2026-85259)
SeverityCritical: 10 (CVSS 4.0)
StatusA new CVE record, published by GoogleCloud on 1 December 2026. Not on CISA's list of exploited vulnerabilities when we read it on 1 December 2026, which means nothing public says yet that anyone is using it.
Fixed inAll versions before 12 May 2026 are affected; the record names no specific release tag. The record advises updating to the latest hardened versions of google-github-actions/run-gemini-cli and @google/gemini-cli.
Who looks firstTeams with GitHub Actions workflows that automatically process untrusted issue or pull-request inputs using google-github-actions/run-gemini-cli or @google/gemini-cli, on any version published before 12 May 2026.

Does this apply to you?

Answer in order. Stop at the first no.
QuestionIf noIf yes
Do you use google-github-actions/run-gemini-cli or @google/gemini-cli in any GitHub Actions workflow?Nothing to do for this CVE.Check whether that workflow triggers automatically on issue or pull-request events.
Does that workflow trigger automatically on public issue or pull-request events?Risk is significantly reduced; monitor for updates.Check the version of the action or CLI the workflow uses.
Is the workflow using a version published before 12 May 2026?You are outside the affected range per the record.Update immediately and rotate any exposed repository secrets.
Does the workflow have access to repository secrets such as GEMINI_API_KEY or APP_PRIVATE_KEY?Patch priority is still high; arbitrary command execution remains a risk.Rotate those secrets after updating, as the record's remediation advises.

What it is

An unauthenticated remote attacker submits a crafted GitHub issue whose text is processed by an automated triage workflow running the Google Gemini CLI or the run-gemini-cli Action, the record says. This lets them run arbitrary commands in the runner or read sensitive files.

Why it matters

CWE-78 is OS command injection. The exploit path is a public GitHub issue: anyone with internet access can open one, and the content reaches a workflow without being sanitised. The runner environment typically holds the repository secrets named in the record's remediation (GEMINI_API_KEY, APP_PRIVATE_KEY). Our reading is that public repositories are the clearest target, but any repository where an untrusted person can open an issue carries the same path. The record scores this 10 out of 10 under CVSS 4.0, the maximum, reflecting that no authentication or prior access is required.

Exposure by situation

These priorities are our judgement from what the sources say about who can use the flaw and how. They are not vendor ratings.

Where you stand, and how soon
Your situationPriorityTimeframe
Public repository with automated issue-triage workflow using the affected CLI on a pre-12 May 2026 versionHighImmediately
Workflow has GEMINI_API_KEY or APP_PRIVATE_KEY accessible in the runner and processes untrusted issue inputsHighImmediately; rotate secrets after patching
Private repository with the same workflow, accessible to external contributors or collaboratorsMediumThis week
Workflow updated past the 12 May 2026 boundary but repository secrets not yet rotatedMediumThis week
Gemini CLI installed locally by a developer only; not used in any automated workflowNoneNone for this CVE

Things people will get wrong

  • Rotating the API key is sufficient to close the exposure Rotation addresses past secret exposure but the command-injection path remains open until workflows are updated or disabled, as the record's remediation makes clear.
  • Only public repositories are at risk The record describes an unauthenticated attacker; any repository where an untrusted person can open an issue carries the same injection path, not only public ones.
  • Disabling the workflow is enough; no update is needed Disabling removes the immediate path, but the record advises updating to the latest hardened versions to remain protected if the workflow is re-enabled later.

How we would triage it

This is our judgement.

Step 1: Find affected workflows in your repositories

  • Search your GitHub Actions workflow files for references to google-github-actions/run-gemini-cli or @google/gemini-cli.
  • Note whether each workflow triggers on issue_comment, issues, or pull_request_target events, as these receive untrusted external input.
  • Record which of those workflows have access to repository secrets.

Step 2: Disable or restrict automated triage workflows immediately

  • Disable any workflow that processes untrusted issue or pull-request inputs using the affected tools until it can be updated.
  • The record's remediation advises configuring persist-credentials: false on actions/checkout steps in workflows that handle untrusted inputs.
  • The record also advises removing unrestricted shell execution (run_shell_command and --yolo) from automated workflows.

Step 3: Update to hardened versions and rotate exposed secrets

  • Update google-github-actions/run-gemini-cli and @google/gemini-cli to the latest versions, as the record's remediation advises.
  • Rotate any repository secrets (GEMINI_API_KEY, APP_PRIVATE_KEY) that were present on affected workflow runs, as the record's remediation advises.
  • Restrict tool allowlists (coreTools) in workflow configurations, per the record's remediation.

Step 4: Verify the update is in place

  • Confirm that updated workflows reference versions published on or after 12 May 2026, as the record's affected range ends before that date.
  • Review GitHub Actions run logs for unexpected command output or file-read activity in issue-triage runs prior to the update.
  • Confirm that rotated secrets are no longer referenced in any active workflow run environment.

To close it, read the version from the product itself, not from an old inventory, and save the output with the date. If you cannot update today, write down who owns it, the new date, and what limits exposure until then.

Send this to your IT provider

Copy it, change the names and dates, and send it. It is a draft for you to check, not a template tested with any provider.

We are reviewing our exposure to CVE-2026-85259, a code injection vulnerability in Google Gemini CLI and the run-gemini-cli GitHub Action affecting all versions before 12 May 2026. The record scores this 10 out of 10 and describes an unauthenticated attacker exploiting automated GitHub Actions workflows that process public issue inputs. Please confirm whether we run any such workflows, which version of the action or CLI they use, whether those workflows have access to repository secrets, and whether updates and secret rotation have been completed. We ask for written confirmation by 8 December 2026.

The weakness behind it

The record classes this as CWE-78.

Likely ATT&CK mapping

MITRE ATT&CK is a public catalogue of the steps attackers take, from getting in to causing damage. No source has mapped this flaw to it yet, so the steps below are our prediction from what the record says the flaw allows. They are not MITRE's, the vendor's or CISA's, and an attacker may do other things.

Steps an attacker would likely take with this flaw
The step, in plain wordsStage of an attackWhy we think so
Exploit Public-Facing Application (T1190): Breaking in through a service that faces the internet, such as a web server, VPN or login page.Initial Access: getting inGitHub issues are a public-facing input channel; the record says a remote unauthenticated attacker submits crafted issue text that reaches an automated workflow, which would likely follow the pattern of exploiting a public-facing application.
Command and Scripting Interpreter (T1059): Running commands or scripts on a machine, such as a shell or PowerShell.Execution: running the attacker's codeCWE-78 is OS command injection; successful exploitation would likely result in arbitrary command execution within the GitHub Actions runner, consistent with command and scripting interpreter abuse.
Unsecured Credentials: Credentials In Files (T1552.001): Finding passwords or keys left in files.Credential Access: stealing loginsThe record names repository secrets (GEMINI_API_KEY, APP_PRIVATE_KEY) accessible to affected workflows and explicitly includes reading sensitive files, pointing toward credentials stored in files.

How to use this: ask your IT provider which control or log would show each step, for example whether sign-in attempts from the internet are recorded. If nobody can answer, that is the gap to close first.

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. Technique names are MITRE's.

The sources, in their words

The CVE record:

A Code Injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli GitHub Action versions prior to 2026-05-12 on GitHub Actions allows an unauthenticated remote attacker to execute arbitrary commands or read sensitive files using crafted GitHub issue inputs.

Versions of Google Gemini CLI the record lists as affected:

  • all versions before 2026-05-12

The record gives no version ranges. Use the vendor's advisory for the affected versions.

What the record says to do about it, in the vendor's words:

1. Update workflows to the latest hardened versions of google-github-actions/run-gemini-cli and @google/gemini-cli (or disable/remove legacy automated issue triage workflows running on untrusted public issue inputs). 2. Configure persist-credentials: false on actions/checkout steps in workflows that process untrusted inputs. 3. Restrict tool allowlists (coreTools) and avoid enabling unrestricted shell execution (run_shell_command / --yolo) when triaging untrusted issues or pull requests. 4. Rotate any repository secrets (GEMINI_API_KEY, APP_PRIVATE_KEY) that were present on affected workflow r

Check your own project

If you build software, you can compare what a project declares with this CVE from a terminal. The tool reads requirements files, package.json, Maven, Gradle, Cargo, CMake and Dockerfile files, runs nothing, and only the CVE id leaves your machine. Naming the CVEs needs no key.

lattice-scan project . --cve CVE-2026-85259

Each row says in-range, outside-range, undetermined or lead, with the file and line. That is evidence about what a manifest declares, not about what runs, and a person decides. The verdicts, the CSV columns and a pipeline recipe are in the guide.

Check the servers you run

The same id can be checked against a host. Run this on the machine itself, not on the laptop that deploys to it: it reads installed packages (dpkg, rpm or apk), snaps, the hardware (maker, model, firmware), the running container images with their operating system and packages, and the kernel version, compares them on the spot, and only the CVE ids leave the machine; the inventory stays on it, in ~/.lattice-scan. Naming the CVEs needs no key. Do it on each server after a deployment, and again when a new entry lands.

lattice-scan --cve CVE-2026-85259

A match is a candidate for a person to confirm, not a finding. A distribution can fix a CVE under an unchanged version number, so a match is a candidate; on Debian-family hosts the report also shows whether the package's own changelog names the CVE. By default it opens the images your containers are running and reads their operating system and package list; a deep scan (--deep, a few minutes) opens every local image and the Python, Node, Java and Ruby packages inside them; for what an image declares, use the project check on its Dockerfile.

Guide: namiq.io/lattice/guides/choose-your-channel. MCP server (io.namiq/lattice in the MCP registry): namiq.io/lattice. Package: pypi.org/project/lattice-scan, or namiq.io/apt.

What we do not know yet

  • No specific release tag or version number corresponding to the 12 May 2026 fix boundary is named in the record.
  • The record does not state whether private repositories with restricted contributor access are equally exploitable.
  • No vendor advisory page could be read; whether additional mitigations or further affected products are described there is not known.
  • The record does not say whether repositories that have already run affected workflows should be treated as compromised or only as potentially exposed.
  • Exploitation is not recorded. That is not the same as none.
  • This is a new record: scores, versions and wording can change in the first days, and they are as at 1 December 2026. We have not read the vendor's advisory page and we have not tested it.
  • The sections headed "The bottom line", "Does this apply to you?", "What it is", "Why it matters", "Exposure by situation", "Things people will get wrong", "Likely ATT&CK mapping", "How we would triage it" and "Send this to your IT provider" are our interpretation of the sources, not a statement by CISA or the vendor.

Does this touch your business?

A new vulnerability is a question about what you run, who can reach it and what it would cost you. If you want a person to answer it for your own systems, start with your IT setup.

Also worth reading

Start with one piece of work.

Give us one piece of work and read access to one system. We map it and come back with what we found, what we would build and what it would take — before any commitment. You decide using our output, not our pitch.

Talk to us