Mark RadarMARK RADAR
EN

Google Patches Critical Gemini CLI Flaw to Prevent Remote Code Execution

2 reports · First detected 2026-04-28 · Last active 2026-04-28

Gemini CLI is Google’s tool for bringing Gemini models into command-line environments and automated development workflows, and it is often used to run code checks through GitHub Actions. A vulnerability that allows untrusted repository content to execute code on a host could expose credentials and tamper with build artifacts, potentially escalating into a software supply-chain risk.

Google disclosed the vulnerability on April 24, 2026, with a maximum CVSS 3.1 score of 10.0. Gemini CLI versions before 0.39.1 automatically trusted the working directory in headless CI environments, allowing attackers to execute code on the host through a malicious .gemini/.env file or prompt injection. Google urged users to upgrade immediately to version 0.39.1 or later.

All Coverage

2 original reports

The Backstory

The history behind this event
Google Gemini Voice Assistant Flaw Lets Attackers Hijack AI Through Messages2026-06-05 · 1 reports · similarity 0.82

Google’s Gemini voice assistant can read message notifications from third-party communications apps and use their contents to help users operate their devices. Cybersecurity company SafeBreach found that this convenience feature could be exploited through a “Fake Context Alignment” attack, causing malicious content in a notification to be mistaken for a trusted instruction and creating a risk that the AI assistant could be hijacked remotely.

SafeBreach’s latest disclosure said attackers could send notifications containing hidden malicious instructions through third-party communications apps, prompting Gemini to take actions without user authorization. No monetary amount was involved, and related reports did not provide an exact disclosure date. Google has improved its content classifier to better distinguish malicious messages from legitimate notifications and reduce the risk of attack.

Mark Radar|MARK RADAR
All times are in Taipei time (GMT+8)