HOC Shorts |
Google published CVE-2026-85259 on December 1, 2026, rating it 10.0 (CVSS v4.0) as an OS command injection vulnerability (CWE-78) in automated GitHub Actions triage workflows using Gemini CLI and `run-gemini-cli`.
- Crafted Issue Trigger: Legacy workflows prior to May 12, 2026 could pass untrusted GitHub issue titles or bodies into shell-capable agent paths without maintainer approval gates, allowing arbitrary command execution and sensitive file access on the runner.
- No Confirmed Exploitation Yet: As of early December 2026, no public proof of concept or in-the-wild exploitation has been reported, and the flaw is not listed in CISA’s Known Exploited Vulnerabilities catalog.
- Immediate Action Required: Teams must update workflows to builds from May 12, 2026 or later, set `persist-credentials: false`, restrict shell tools, remove
`@main`floating references, and rotate exposed credentials.
What Happened?
Google disclosed CVE-2026-85259 on December 1, 2026, addressing a critical command injection weakness in legacy automated issue-triage workflows shipped with Gemini CLI (`@google/gemini-cli`) and the `run-gemini-cli` GitHub Action. According to Ostorlab’s analysis and CVE records, the vulnerability affects revisions prior to May 12, 2026—months after upstream fixes were merged in May 2026.
Because many teams copy workflow files directly into their repositories rather than relying solely on package upgrades, stale workflow definitions remain a practical risk even where CLI packages were updated later.
What Is CVE-2026-85259?
CVE-2026-85259 is a maximum-severity (CVSS 10.0) code and OS command injection vulnerability affecting automated issue-triage workflows shipped with Google Gemini CLI (@google/gemini-cli) and the run-gemini-cli GitHub Action before May 12, 2026.
Reported by security researcher Dan Lisichkin and patched upstream in May 2026, the flaw was formally published as a CVE on December 1, 2026. Because engineering teams routinely copy YAML workflow templates directly into repository .github/workflows/ folders, upgrading the CLI package alone does not remediate stale workflow configurations already committed to repositories.
How the Vulnerability Works & Who Is Affected
In vulnerable automated triage setups, untrusted external text—such as a GitHub issue title or body—reaches an agent prompt inside a workflow that has access to command execution tools and runs automatically without a maintainer approval gate.
- Public Repositories: Exposed when an unauthenticated or external user opens or crafts an issue or pull request that triggers an unhardened triage, review, or issue-fixer workflow from before May 12, 2026.
- Private Repositories: Exposed when lower-trusted members or external collaborators can submit issues or pull requests that trigger affected automation.
- Potential Impact: Attackers achieving command execution can inspect accessible runner files, read secrets exposed to the job environment (such as `GITHUB_TOKEN` or configured API keys), and abuse token permissions depending on job scope.
Practical Hardening & Remediation Steps
Even without confirmed active exploitation, security teams should treat exposed CI/CD automation and stale credentials seriously:
- Audit Every Copied Workflow: Search repositories for `google-github-actions/run-gemini-cli` and Gemini CLI triage templates, checking both the action reference and any copied `.github/workflows` files against the May 12, 2026 boundary.
- Pin to a Hardened Commit SHA: Replace floating `@main` references with a full commit SHA from May 12, 2026 or later (such as changes aligned with PR 518 and PR 26897).
- Disable Credential Persistence & Restrict Tools: Set `persist-credentials: false` on `actions/checkout` steps, remove `run_shell_command` and `–yolo` from untrusted triage jobs, and enforce narrow tool allowlists or maintainer approval gates.
- Rotate Secrets & Review Logs: Rotate
`GEMINI_API_KEY`, `APP_PRIVATE_KEY`, `GOOGLE_API_KEY`, and other runner-accessible secrets, and inspect past workflow logs for suspicious commands or unexpected token usage.
Frequently Asked Questions (FAQ)
- Which versions are affected by CVE-2026-85259?
Automated triage workflows and configurations for Google Gemini CLI and the run-gemini-cli GitHub Action dated prior to May 12, 2026 are affected.
- Does upgrading @google/gemini-cli automatically fix CVE-2026-85259?
No. Because the flaw resides in the GitHub Actions workflow definitions and command templates copied into individual repositories, maintainers must manually update and harden every copied .github/workflows/ file.
- Is CVE-2026-85259 being actively exploited in the wild?
As of December 2026, Google and threat intelligence trackers report no confirmed in-the-wild exploitation, though researchers demonstrated working proof-of-concept exploits in controlled lab testing prior to patching.