Gemini CLI Triage Flaw Enables Code Injection via GitHub Issue Content
Written by AI from the linked story. Not reviewed by an editor. How this works
A critical code-injection vulnerability (CVE-2026-85259) in legacy Gemini CLI triage workflows allowed any GitHub issue author to execute arbitrary commands on the workflow runner by crafting malicious issue content. The root cause lies in insufficient input sanitization combined with overly permissive workflow configurations that granted unrestricted shell access to untrusted external input. This matters because CI/CD pipeline compromises can expose secrets, tokens, and sensitive build artifacts, effectively turning a public-facing issue tracker into an attack vector against internal infrastructure. Google's own remediation guidance — disabling checkout credential persistence and restricting agent tool access — highlights how misconfigured workflow permissions amplified an already critical injection flaw.
Tactical Insight
Immediate actions
- Upgrade all Gemini CLI triage workflows and the run-gemini-cli GitHub Action to versions released after May 12, 2026.
- Disable checkout credential persistence in GitHub Actions workflows to prevent token theft if code injection occurs.
Configuration hardening
- Restrict GitHub Actions workflow permissions to the minimum required scope using the `permissions` key in workflow YAML files.
- Sanitize and validate all external inputs (issue titles, bodies, comments) before passing them to shell commands or agent tools.
- Replace unrestricted shell execution in workflows with parameterized commands or approved action abstractions that do not interpret user-supplied strings.
Detection measures
- Enable audit logging for all GitHub Actions workflow runs and alert on unexpected outbound network connections or file access patterns from runners.
- Scan all CI/CD workflow definitions regularly with static analysis tools (e.g., actionlint, Semgrep) to detect unsanitized input usage before deployment.