Summary
Automated GitHub issue triage workflows in Google Gemini CLI and the run-gemini-cli GitHub Action (versions prior to 2026-05-12) are vulnerable to OS command injection (CWE-78). An attacker can use crafted GitHub issue content to make the workflow execute arbitrary commands or read sensitive files on the runner.
Per the CVSS 4.0 vector (score 10, critical), the attack is network-based, low complexity, has no special preconditions and requires no authentication or user interaction. Opening an issue in a public repository using such a workflow is sufficient. Confidentiality, integrity and availability impact is high for both the vulnerable system and subsequent systems.
The attacker can obtain repository secrets (e.g. GEMINI_API_KEY, APP_PRIVATE_KEY) and GitHub credentials persisted during checkout, enabling further compromise of the repository and connected services. The vulnerability is not currently listed in the CISA KEV catalog.
Who is affected
Organizations using Gemini CLI or run-gemini-cli in GitHub Actions for automated issue or pull request triage, especially in public repositories accepting untrusted input.
What to do
- Update workflows to the latest hardened versions of google-github-actions/run-gemini-cli and @google/gemini-cli (releases from 2026-05-12 onward), or disable/remove legacy automated issue triage workflows processing untrusted public issue input.
- Set persist-credentials: false on actions/checkout steps in workflows that process untrusted input.
- Restrict tool allowlists (coreTools) and avoid enabling unrestricted shell execution (run_shell_command / --yolo) when triaging untrusted issues or pull requests.
- Rotate any repository secrets (GEMINI_API_KEY, APP_PRIVATE_KEY) that were present on affected workflow runners.
- Review .github/workflows in your repositories and past run logs for unusual commands or secret access; see the referenced fixes (PR #518 and #26897) for details.
Vendor solution
1. Update workflows to the latest hardened versions of google-github-actions/run-gemini-cli and @google/gemini-cli (or disable/remove legacy automated issue triage workflows running on untrusted public issue inputs).
2. Configure persist-credentials: false on actions/checkout steps in workflows that process untrusted inputs.
3. Restrict tool allowlists (coreTools) and avoid enabling unrestricted shell execution (run_shell_command / --yolo) when triaging untrusted issues or pull requests.
4. Rotate any repository secrets (GEMINI_API_KEY, APP_PRIVATE_KEY) that were present on affected workflow runners.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/U:Amber
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None (no login)
- User interaction
- Not required
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- github.com/google-github-actions/run-gemini-cli/pull/518 patch
- github.com/google-gemini/gemini-cli/pull/26897 patch
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.