CVE Index中文
L3 · ShartedGemini CLI · GitHub Actions · CI · prompt injectiongemini-cli-issue-triage

Gemini CLI legacy issue-triage workflows allow runner code execution from crafted issues

Google disclosed CVE-2026-85259 in legacy Gemini CLI and run-gemini-cli issue-triage workflows. Crafted public issues can cause runner command execution or sensitive-file reads. Update copied workflows as well as tooling, remove retained credentials and rotate exposed secrets; no exploitation is confirmed.

Disclosed
Dec 1, 2026
Public disclosure date
Severity
CVSS 10
1 CVE tracked here
Splash zone
Legacy Gemini issue-triage on GitHub Actions; untrusted issue text can reach runner tools and credentials.
node
In the wild
Not seen
CISA enrichment lists exploitation as none on December 2; no victim count is published.

The one-sentence version

Issue text meant to choose a label can influence an agent running on a credential-bearing CI machine, crossing from untrusted data into privileged tools.

What happened

Google disclosed CVE-2026-85259 on December 1 for automated triage workflows using Gemini CLI and the run-gemini-cli GitHub Action. Crafted GitHub issue inputs can let an unauthenticated remote attacker execute commands or read sensitive files on the runner. The same issue is tracked as GHSA-g6vw-c6rx-j9ph. Google’s CVSS 4.0 score is 10.0; the available record does not confirm attacks or identify victims, so this is rated L3 rather than a confirmed exploitation incident.

Exposure depends on the workflow, not merely installing Gemini. Google’s affected range is date-based, before May 12, 2026, for legacy automated triage configurations. A newer repository can still copy an old workflow; a repository using Gemini without this untrusted-input/tool/credential path is not automatically affected. No fixed npm version or complete supported-branch package range is supplied, so a normal dependency upgrade or version checker is insufficient.

The historical Gemini CLI triage workflow shows separate paths for opened/reopened issues and comment requests. Comments need an authorized author association, but that check does not cover the issue-opening path. Repository-name and existing area-label conditions also apply to this particular example. It writes issue content through environment variables into issue_context.md, then lets the agent read that file with read_file and a restricted echo shell tool. Passing values through environment variables avoids direct shell-expression interpolation at that preparation step; it does not make issue text trusted instructions. This is a workflow trust-boundary problem, not evidence that every invocation permits unrestricted shell access.

The Gemini analysis step clears GITHUB_TOKEN, yet checkout v5 previously retained Git authentication in .git/config in the same workspace. Readable credentials can remain available even when one environment variable is empty. The job also has Gemini API and cloud workload-identity inputs, and later label-writing steps use credentials. The May hardening PRs disable checkout persistence; they do not revoke credentials explicitly provided to the agent or replace all other tool, trigger and permission controls.

Google requires updating hardened workflows and tooling or disabling legacy triage, disabling checkout credential persistence, restricting tools and rotating secrets that were present on affected runners. Audit every trigger and separate untrusted analysis from narrowly authorized writes. Preserve prior run and issuer audit evidence when investigating exposure. CISA’s December 2 enrichment lists no exploitation, which must not be turned into a guarantee that deployments are safe. No attack IoCs or confirmed loss total are published by these sources.

What’s in the bowl

Gemini automated-triage code injection

Google assigns CVSS 4.0 10.0 to crafted-issue command execution or sensitive-file access in legacy Gemini CLI and run-gemini-cli workflows; also GHSA-g6vw-c6rx-j9ph.

Crime-scene timeline

  1. May 11, 2026

    run-gemini-cli checkout-hardening change merged

    PR #518 adjusts six workflow files. Four already disabled persistence using a quoted false value; those edits normalize YAML rather than introduce a new protection.

  2. May 12, 2026

    Gemini CLI checkout-hardening change merged

    PR #26897 adds persist-credentials: false across 33 workflows. These are configuration changes, not a published fixed npm version.

  3. Dec 1, 2026, 20:22 UTC

    Google publishes the vulnerability and remediation

    The CNA record describes unauthenticated code injection, a date-based affected range before May 12, and four remediation steps. The GHSA record follows later that day.

  4. Dec 2, 2026

    CISA enrichment records no exploitation

    Its dated SSVC assessment lists exploitation as none and the attack as automatable. This is not proof that every deployed workflow is safe.

  5. Dec 3, 2026

    StepSecurity analyzes the historical trigger and credential path

    The analysis explains why comment-author checks do not protect issue-opening triggers and why an empty GITHUB_TOKEN variable does not remove checkout credentials retained on disk.

Who said what

We list each claim and who made it. Primary sources (the vendor, the researcher, the registry) are marked. Where reports disagree, we grade by the worst credible case.

  • Google CNA CVE record and remediationPrimaryGoogleCloud record published December 1 at 20:22:16 UTC: date-based affected scope, CVSS 4.0 10.0, crafted issue inputs, tool restrictions, checkout persistence and secret rotation. CISA enrichment dated December 2 lists exploitation as none.
  • GitHub advisory alias recordPrimarySame CVE under an unreviewed GHSA published December 1. No affected package/version mapping or fixed package release is supplied; this is not another vulnerability.
  • Gemini CLI checkout-hardening PR #26897PrimaryOriginal metadata and diff: merged May 12, adds checkout persistence opt-out in 33 workflow files. The generic public PR predates the December security disclosure.
  • run-gemini-cli checkout-hardening PR #518PrimaryOriginal metadata and diff: merged May 11, changes six workflow files; four edits replace quoted false with boolean false. Neither PR alone is a complete agent-workflow remediation.
  • Historical Gemini automated issue-triage workflowPrimaryComplete pre-hardening configuration: separate issue/comment trigger conditions, checkout v5 without persistence opt-out, issue_context.md, read_file/restricted echo tool, empty GITHUB_TOKEN, Gemini API and workload identity inputs, and later label-writing credentials. Repository-name and existing-label conditions limit this specific example.
  • StepSecurity historical-workflow analysisPrimaryDecember 3 original analysis of the historical configurations, retained checkout authentication, workflow-specific exposure and layered remediation; no claim of observed victim exploitation.