Skip to main content
Mallory
Back to stories
build-pipeline-compromisewidely-deployed-product-advisoryinternet-facing-service-vulnerabilitypatch-regression

Google Patches CVSS 10.0 RCE in Gemini CLI Headless Mode

Updated 11d agoFirst seen May 1, 20263 sources

Google has patched a maximum-severity remote code execution flaw in Gemini CLI that affected headless deployments, especially GitHub Actions and other CI/CD workflows. The vulnerability stemmed from overly permissive workspace trust handling that automatically treated active folders as trusted and could load attacker-controlled configuration files and environment variables from local .gemini directories. The issue was independently discovered by Elad Meged of Novee and Dan Lisichkin of Pillar Security, and researchers warned that successful exploitation could expose secrets, credentials, source code, and connected downstream systems.

Google said the issue is addressed in Gemini CLI versions 0.39.1 and 0.40.0-preview.3, but warned that applying the fix may require additional workflow changes to avoid breaking automation. The run-gemini-cli GitHub Action defaults to the latest release, which can disrupt pipelines that depended on the previous implicit trust behavior, while workflows using --yolo mode may fail silently unless tool allowlists are updated to align with the new policy engine. Google is urging organizations to review CI/CD jobs and move to explicit trust settings and compatible allowlists before resuming automated use.

Share:
Google Patches CVSS 10.0 RCE in Gemini CLI Headless Mode
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

4 events from the earliest known activity through the most recent confirmed update.

4 EVENTS
Apr 16, 20261mo ago

Pillar Security privately reports Gemini CLI issue to Google

Pillar Security reported the vulnerability to Google in the google/draco repository, beginning the coordinated disclosure process. The report described how Gemini CLI running in automated '--yolo' workflows could be abused via prompt injection to access local GitHub credentials and enable repository compromise.

Google Fixes CVSS 10 Gemini CLI Vulnerability Enabling GitHub Issue-Based RCE
Apr 30, 202618d ago

Researchers independently discover Gemini CLI headless-mode RCE flaw

Elad Meged of Novee and Dan Lisichkin of Pillar Security independently identified a maximum-severity remote code execution vulnerability in Gemini CLI. The issue involved headless mode automatically trusting workspace folders and loading attacker-controlled configuration and environment data from local .gemini directories.

Google releases fixes in Gemini CLI 0.39.1 and 0.40.0-preview.3

Google addressed the vulnerability in Gemini CLI versions 0.39.1 and 0.40.0-preview.3. The fix changed trust handling and policy behavior for headless mode, especially affecting CI/CD and GitHub Actions use cases.

May 1, 202617d ago

Google warns patched Gemini CLI may still require workflow changes

Google said organizations using Gemini CLI via GitHub Actions or in headless CI/CD environments may need to take additional steps after patching to avoid breaking automated pipelines. It specifically warned that run-gemini-cli defaults to the latest release and that workflows using --yolo mode may fail unless tool allowlists are updated for the new policy engine behavior.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

8 LINKEDOpen in app
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.