[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fvXEaVOmD4NO6731frWzMAkeBIQvKVT13Cb9u_gwvPqk":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"6764fd81-a34f-47a6-8b43-9b4eec30d5a0","gemini-cli-triage-flaw-enables-code-injection-via-github-issue-content","57c864e5-811c-49ed-9101-8b9e6227de90","Gemini CLI Triage Flaw Enables Code Injection via GitHub Issue Content","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\u002FCD 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.","**Immediate actions:**\n- Upgrade all Gemini CLI triage workflows and the run-gemini-cli GitHub Action to versions released after May 12, 2026.\n- Disable checkout credential persistence in GitHub Actions workflows to prevent token theft if code injection occurs.\n\n**Configuration hardening:**\n- Restrict GitHub Actions workflow permissions to the minimum required scope using the `permissions` key in workflow YAML files.\n- Sanitize and validate all external inputs (issue titles, bodies, comments) before passing them to shell commands or agent tools.\n- Replace unrestricted shell execution in workflows with parameterized commands or approved action abstractions that do not interpret user-supplied strings.\n\n**Detection measures:**\n- Enable audit logging for all GitHub Actions workflow runs and alert on unexpected outbound network connections or file access patterns from runners.\n- Scan all CI\u002FCD workflow definitions regularly with static analysis tools (e.g., actionlint, Semgrep) to detect unsanitized input usage before deployment.",[12,13,14,15,16],"OWASP A03:2021 Injection","CIS Control 16: Application Software Security (v8)","NIST SP 800-53 SI-10: Information Input Validation","NIST SP 800-53 AC-6: Least Privilege","NIS2 Article 21(2)(e)",{"NIS2 Article 21(2)(e)":18,"OWASP A03:2021 Injection":19,"NIST SP 800-53 AC-6: Least Privilege":20,"CIS Control 16: Application Software Security (v8)":21,"NIST SP 800-53 SI-10: Information Input Validation":22},"This point requires security in acquisition, development, and maintenance including vulnerability handling, covering the obligation to identify and remediate injection flaws in internally used development pipeline tooling such as these GitHub Actions workflows.","This control addresses the failure to validate and sanitize untrusted data before passing it to an interpreter, which is precisely how crafted GitHub issue content was turned into arbitrary command execution in this workflow.","AC-6 mandates that processes operate with only the permissions necessary for their function; restricting workflow runner permissions and agent tool access — as Google advises — directly reflects this principle and would have limited the blast radius.","CIS Control 16 requires that software — including CI\u002FCD pipeline definitions — be developed and maintained with secure coding practices such as input validation, which would have prevented the injection of malicious issue content.","SI-10 requires that systems check the validity of information inputs, which if applied to the triage workflow would have rejected or neutralized the crafted issue content before it reached the shell.","published","2026-12-03T15:20:58.284978+00:00","2026-12-03T15:20:58.248+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.stepsecurity.io\u002Fblog\u002Fcve-2026-85259-gemini-cli-triage-flaw-lets-issue-authors-run-code-in-github-actions","cve-2026-85259-gemini-cli-triage-flaw-lets-issue-authors-run-code-in-github-acti-434b88","CVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub Actions",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"05757c8d-6b93-4194-b35d-7359e7d33b0e","Vulnerability Management","vulnerability-management","Missing scans, no risk prioritization","#fb923c",{"id":38,"name":39,"slug":40,"description":41,"color":42},"859cf0ad-a7e9-42bb-a75d-bac6511fa5d5","Configuration Management","configuration-management","Misconfigs, default credentials, exposed services","#eab308",[],[45,49,53],{"slug":46,"name":47,"problem":48},"identity-threat-detection","Identity threat detection and response (ITDR)","Attackers who log in with real, stolen credentials get noticed.",{"slug":50,"name":51,"problem":52},"secrets-management","Secrets management","API keys, tokens and passwords stop leaking from code, chat and configuration files.",{"slug":54,"name":55,"problem":56},"endpoint-detection-response","Endpoint detection and response (EDR and XDR)","Malware and hands-on-keyboard attackers on laptops and servers get spotted and stopped."]