Critical Gemini CLI flaw (CVE-2026-85259) lets remote attackers run commands via crafted GitHub issues
Compiled by RedTeamDaily · AI-assisted summaries · Human review pending
Published
What happened
CVE-2026-85259 affects legacy Gemini CLI workflows and the run-gemini-cli GitHub Action prior to May 12, 2026 (CVSS v4.0 10.0, published December 1). Issue title and body reach the agent via environment variables, and a crafted issue can drive a shell-enabled agent-and-tool path, enabling command execution and file reads. Impact is bounded by job permissions, including any explicitly supplied GITHUBTOKEN. Pin to a verified commit SHA, use hardened revisions from May 12 or later, remove runshellcommand and --yolo, narrow token scope, add persist-credentials: false (Google's patch covers 33 workflow files), and rotate potentially exposed credentials.
For security analysts · Written by AI from 1 source · Report an error
In depth
The flaw sits in the automation around Gemini CLI, not in the Gemini model or normal local CLI use. Vulnerable workflows used Gemini to sort issues, review contributions or prepare fixes, and received issue titles and descriptions through environment variables.
The GitHub advisory confirms command execution and file reading but 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 GITHUBTOKEN to the agent step. Articles note that command execution alone does not establish that repository changes occurred, and that not every repository secret necessarily reached the agent.
Google's patch added persist-credentials: false across 33 workflow files. This stops checkout from saving its credential but does not block access to an explicitly supplied GITHUBTOKEN, so token scope still matters.
Key points
- The attack needs no runner access or repository privileges, only the ability to submit text that reaches an affected workflow.
- Ostorlab reported no public proof of concept or known exploitation for this CVE as of December 2.
- Updating the package does not update workflow files, so the workflow copies must be changed too.
Q&A
- Is this vulnerability being exploited in the wild?
- Ostorlab reported no public proof of concept or known exploitation for this CVE as of December 2. The article adds that this absence does not prove exposed credentials stayed safe.
gemini clicve-2026-85259github actionsprompt injectioncommand executionci/cd securityrun-gemini-cligithub token
- Story priority
- Critical
- Highest CVSS
- 10.0
- Exploitation
- Not established here
- Publishers
- 1
Why these vulnerabilities are attached
- CVE-2026-85259 · primary subject
Imported association; relationship review not recorded
Relationship review not recorded.
Affected products and technical context
Check the product, release branch and deployment conditions in the advisory for your installation.
CVE-2026-85259 · CVSS 10.0
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.
Exploitation: Not established by our CVE data. This does not establish that attacks have not occurred.
Affected products: Not yet available in our structured data. Check affected version ranges.
Fixed releases · Consult the linked advisory for the current release information.
Choose the fix for your release branch. CVE record · NVD record
Sources and editorial review
Priority basis: Automatic priority from linked CVSS scores and CISA KEV status.
Human review pending.
How severity and exploitation labels work · All sources · Report an error
What to do
- Search .github/workflows for run-gemini-cli references and identify jobs that process untrusted issue or pull-request text.
- Update the Gemini CLI, the action and any copied templates to hardened revisions from May 12 or later, and pin the action to a verified full commit SHA.
- Remove unnecessary shell command access and --yolo settings, narrow token permissions, and require maintainer approval before processing outside input.
- Review past workflow runs for unexpected commands, unfamiliar network requests and unexplained repository changes, and rotate credentials potentially exposed during affected runs.
Written by AI from the sources, checked against them
Source timeline (UTC) · 2 updates
1 published report from 1 publisher. Independent confirmations are unverified.
Explore this report
Check my watchlist Requires sign-in · matches your saved products without AI.
Ask AI about this story
Optional follow-up answers generated from our coverage. Check the linked sources before acting.
Ask your own questionWho and what is in it
Companies
Products