Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

A StepSecurity graphic on a purple background labeled Threat Intel and CVE-2026-85259, headlined Gemini CLI Triage Flaw Lets Issue Authors Run Code, with the line untrusted GitHub issue input can reach commands and credentials on the runner, beside a diagram of a GitHub issue box feeding a terminal running triage issue_context.md, labeled runner and credentials.
Image: StepSecurity (fair use). Cover graphic from "CVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub Actions," December 3, 2026.

Tools

A Maximum-Severity Flaw in Google's Legacy Gemini CLI Issue-Triage Workflows Let Anyone Who Opened a GitHub Issue Run Code on the Runner, and Updating the Package Will Not Fix Copied Workflows

CVE-2026-85259 scores 10.0 under CVSS 4.0 and sits in the automation around the agent, not an npm version range, so dependency scanners miss it. StepSecurity says the pre-patch workflow left checkout credentials in .git/config where the Gemini step could read them. No exploitation has been reported.

James Whitford, ToolsAustin5 min read

AUSTIN - The vulnerable part was not the AI agent. It was the job wrapped around it.

Google on December 1 disclosed CVE-2026-85259, a code-injection flaw in legacy automated triage workflows for Gemini CLI and the run-gemini-cli GitHub Action, rated 10.0, the maximum, under the Common Vulnerability Scoring System version 4.0. The advisory says the flaw "allows an unauthenticated remote attacker to execute arbitrary commands or read sensitive files using crafted GitHub issue inputs." It covers versions before May 12, 2026, and credits Dan Lisichkin with the report.

In an analysis published Thursday, the CI/CD security firm StepSecurity explained why the fix is harder to apply than a typical package update. "Upgrading a CLI dependency does not rewrite a vulnerable workflow copied into a repository," wrote researcher Venkata Gopi Yamparala.

A screenshot of the GitHub Advisory Database entry for CVE-2026-85259, marked Critical severity and Unreviewed, with no package listed, affected and patched versions shown as Unknown, a description of a code injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli prior to 2026-05-12, references to two pull requests, and a CVSS v4 score of 10.0 out of 10.
Image: GitHub (fair use).Screenshot of the GitHub Advisory Database entry GHSA-g6vw-c6rx-j9ph, captured December 3, 2026.

Why scanners will not catch it

The GitHub advisory, GHSA-g6vw-c6rx-j9ph, lists no package and no affected or patched version range, and remains unreviewed, so it generates no Dependabot alerts. A repository created after May 12 can still carry an older copied workflow, StepSecurity noted, while a repository that uses Gemini is not automatically exposed; triggers, tool permissions, credential handling and workflow revisions decide that.

The pre-patch triage workflow in the Gemini CLI repository shows the path. Opening or reopening an issue could start the job. It checked out repository code onto an Ubuntu runner, wrote the issue title and body to a file called issue_context.md, had Gemini read it and choose a label, then used a GitHub credential in a later step to apply that label. A maintainer check guarded comment-triggered runs but not the separate issue-opening trigger.

The analysis step blanked its own token variable. That was not enough. "Setting GITHUB_TOKEN to an empty string does not remove credentials saved elsewhere on the machine," StepSecurity wrote. The earlier checkout step, pinned to actions/checkout v5, had not disabled credential persistence, so it wrote Git authentication into .git/config inside the workspace, the same directory the Gemini step could read with its read_file tool. The historical job also had id-token: write, Google Cloud Workload Identity inputs and a Gemini API key in scope.

A screenshot of merged pull request 26897 in the google-gemini/gemini-cli repository, titled chore: update checkout action configuration in workflows, explaining that the persist-credentials parameter has been set to false in all instances where actions/checkout is used and that 33 workflow files were updated.
Image: GitHub (fair use).Screenshot of google-gemini/gemini-cli pull request 26897, merged May 12, 2026, captured December 3, 2026.

The advisory references two hardening changes: pull request 26897 in gemini-cli, which added persist-credentials: false across 33 workflow files and merged May 12, and pull request 518 in run-gemini-cli, which updated checkout settings in six files and merged May 11. Both change workflow configuration only, and StepSecurity cautioned that a token passed directly to the agent, as in a historical issue-fixer workflow, is a separate path that turning off checkout persistence does not close.

As of December 2, CISA's enrichment of the CVE record listed exploitation as "none" and the attack as automatable, according to StepSecurity.

What security teams should do

  • Find the workflows. From a local checkout, search .github, .gemini and package files for google-github-actions/run-gemini-cli and @google/gemini-cli, then check other branches, shared workflow repositories and runner images, which a local search does not cover.
  • Disable legacy public-issue triage until each matching workflow is reviewed, and update the workflow, the action and the CLI together, pinning the action to a full commit SHA.
  • Add persist-credentials: false to every checkout step, strip shell access, broad file reads and --yolo auto-approval from triage jobs, and move label-writing into a separate, narrowly scoped job that consumes a validated result.
  • Rotate secrets that were present on runners that executed the affected configuration, including Gemini API keys and GitHub App private keys, and review what those credentials did. As StepSecurity put it, "a workflow update cannot invalidate a key that has already been copied."
  • Preserve workflow logs and audit records for past runs triggered by issues from outside contributors before they age out.
  • Keep perspective: "A match identifies automation to review. It does not establish that the repository was exploited or that credentials were stolen."

About the Author

James Whitford

James Whitford covers SOC tooling, SIEM, SOAR, and detection platforms for SOCtember from Austin.

Related stories

Tools desk