→ Back to Home
GitHub Actions

Urgent Patch for Gemini GitHub Action: Critical RCE Vulnerability Demands Immediate Update

eWeek has reported an urgent need for developers to patch the `run-gemini-cli` GitHub Action to version `0.1.22` or later. This call to action stems from the discovery of a critical remote code execution (RCE) vulnerability, identified as CVE-2026-12537, affecting Google's Gemini CLI and its companion GitHub Action when deployed in headless CI environments. The core of the vulnerability lies in a workspace trust design flaw, where earlier versions of the Gemini CLI automatically trusted workspace folders. This allowed a maliciously crafted `.gemini/.env` file to execute arbitrary commands on the CI runner before the agent's sandbox could even initialize. Additionally, a secondary vulnerability involved a bypass in the `--yolo` approval mode, which failed to enforce fine-grained tool restrictions, thereby enabling arbitrary shell command execution. This vulnerability is rated with a maximum CVSS score of 10.0, signifying its extreme severity. For any organization utilizing the `run-gemini-cli` GitHub Action within their CI/CD pipelines, this represents an immediate and profound security threat. The potential for an unprivileged attacker to achieve remote code execution means that a simple malicious pull request or the introduction of untrusted content could lead to a complete compromise of the CI runner. This compromise could grant attackers access to sensitive secrets, authentication tokens, cloud credentials, and proprietary source code. The integrity and confidentiality of the entire software supply chain are directly at risk, making this patch a top priority for development and security teams to avert potential data breaches and sophisticated supply chain attacks. The incident starkly highlights the inherent risks associated with integrating external tools, particularly those leveraging AI models, into automated build processes without stringent security validation. The discovery of CVE-2026-12537 is not an isolated event but rather a significant data point within a broader, escalating trend of software supply chain attacks and the exploitation of CI/CD pipeline vulnerabilities. Recent high-profile incidents, such as the ChainDrop npm worm, have demonstrated how attackers are increasingly targeting automated build environments, even leveraging GitHub Actions OIDC permissions for self-propagation. GitHub itself has responded to this evolving threat landscape by outlining a comprehensive 2026 security roadmap for GitHub Actions. This roadmap focuses on hardening the platform through features like deterministic dependency locking, tightly scoped secrets, and native egress firewalls. While these platform-level initiatives are crucial for enhancing default security, the Gemini CLI vulnerability serves as a potent reminder that the security posture of individual actions and third-party integrations remains a critical concern. In practice, all practitioners currently using `google-github-actions/run-gemini-cli` are urged to update their workflows to version `0.1.22` or later without delay. Similarly, direct users of the Gemini CLI should upgrade to version `0.39.1` or newer. Organizations must conduct thorough audits of their CI/CD pipelines to identify and remediate any instances of the vulnerable action. It is also imperative to ensure that all external contributions, such as pull requests originating from forks, are processed within strictly isolated and untrusted environments with the least possible privileges. This incident further reinforces the necessity of implementing strict version pinning for all GitHub Actions, thereby avoiding mutable references like `@latest` or `@v1`, which can be silently updated with malicious code. Teams should also re-evaluate their OIDC configurations and secret management strategies, ensuring that credentials are narrowly scoped and not broadly accessible. Proactive security measures, including regular security audits of all third-party actions and continuous monitoring for anomalous activity within CI/CD logs, are no longer merely best practices but essential requirements for maintaining a resilient and secure software supply chain in today's increasingly complex and adversarial threat landscape.
#github actions#security#vulnerability#supply chain#rce#gemini
Read original source