Google has disclosed and patched a maximum-severity vulnerability in legacy automated workflows built around its Gemini CLI tool, one serious enough to earn a perfect 10.0 on the CVSS v4.0 scale. Tracked as CVE-2026-85259, the flaw affected Gemini CLI and the run-gemini-cli GitHub Action in versions predating May 12, 2026, and could let a remote attacker execute commands and read sensitive files — without needing any access to the runner or write privileges on the repository. The only requirement was the ability to submit text that would eventually reach an affected workflow, such as a GitHub issue.
What “Without Login” Actually Means
It’s worth clarifying the headline framing here: this isn’t a bypass of GitHub’s own authentication. Anyone can open a public issue on a repository without special access, and that’s exactly the point — the vulnerable component was the automation layer built around Gemini CLI, not the Gemini model itself or ordinary local command-line use. Google published the advisory on December 1.
How a GitHub Issue Became an Attack Vector
The vulnerable workflows used Gemini to automatically triage issues, review contributions, or draft fixes. Issue titles and descriptions reached the AI agent through environment variables such as ISSUE_TITLE and ISSUE_BODY. Command templates in these workflows — lines like !{echo $ISSUE_TITLE} and !{echo $ISSUE_BODY} — fed that text directly into the model’s prompt. A carefully crafted issue could then reach a vulnerable combination of agent reasoning and tool execution that had shell access, effectively turning ordinary-looking issue text into a path toward command execution.
GitHub’s advisory confirms that command execution and file reading were both achievable, though it stops short of publishing the exact payload or execution chain — standard practice for responsible disclosure, but it does mean the finer mechanics remain undisclosed publicly for now.
What Was Actually at Risk
Any commands that did execute would run with whatever permissions and access the workflow job itself held. In at least one documented workflow — an “issue-fixer” automation — the agent step was explicitly supplied with a GITHUB_TOKEN, plus provider API keys passed in as action inputs. If that token carried repository write permissions, an attacker could potentially have altered repository content, though successful command execution alone doesn’t confirm that any such changes actually occurred in practice.
Credential exposure wasn’t unlimited, though. APP_PRIVATE_KEY, tied to an earlier token-minting step in the pipeline, was never exposed as an agent-accessible environment variable — so maintainers shouldn’t assume every secret available to the broader workflow was reachable by the compromised step. That said, persisted checkout credentials elsewhere in a pipeline can still meaningfully raise the stakes of an otherwise contained compromise.
Google’s Fix
Google’s patch adds persist-credentials: false across 33 separate workflow files, which stops the checkout step from saving its credential to disk for later reuse — though this does not block access to a token that’s explicitly and intentionally supplied to the agent step itself. Maintainers running affected or similar workflows should:
- Search
.github/workflowsfor anyrun-gemini-clireferences, and identify which jobs process untrusted issue or pull-request text. - Update the CLI, the action, and any copied workflow templates to revisions from May 12, 2026 or later — and note that updating the package alone does not automatically update existing workflow files.
- Pin the GitHub Action to a verified full commit SHA rather than a mutable tag.
- Remove unnecessary
run_shell_commandaccess and any “–yolo”-style permissive settings, and narrow token scopes to the minimum needed. - Require maintainer approval before workflows process untrusted external input.
- Review historical workflow runs for unexpected commands, unfamiliar network connections, or unexplained repository changes, and rotate any credentials that may have been exposed.
No Known Exploitation — Yet
Security firm Ostorlab reported finding no public proof-of-concept code or evidence of active exploitation for this CVE as of December 2. That’s reassuring, but it isn’t proof that no credentials were ever exposed during the window the flaw existed, nor does it rule out quieter, undetected abuse. As AI coding agents get wired ever more deeply into CI/CD pipelines, this case is a pointed reminder that the text an agent reads — even something as mundane as a bug report — needs to be treated as untrusted input, not a passive instruction.
Leave a Reply
You must be logged in to post a comment.