Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
AiTM Phishing Attacks Target SharePoint, HubSpot, Google
May 2, 2026
Attackers Abuse AppSheet, Netlify, Telegram for Google Facebook
May 2, 2026
cPanelSniper PoC Exploit for cPanel Vulner Disclosed Vulnerability
May 2, 2026
Home/CyberSecurity News/Critical Gemini CLI Flaw Enables Remote Code Execution
CyberSecurity News

Critical Gemini CLI Flaw Enables Remote Code Execution

Google has patched a critical security flaw in the Gemini CLI that could allow attackers to execute remote code within certain automated workflows. The issue affects the npm...

Jennifer sherman
Jennifer sherman
April 27, 2026 2 Min Read
0 0

Google has patched a critical security flaw in the Gemini CLI that could allow attackers to execute remote code within certain automated workflows.

The issue affects the npm package @google/gemini-cli and the google-github-actions/run-gemini-cli GitHub Action, especially when they are used in headless environments such as CI/CD pipelines.

According to the security advisory, the vulnerability comes from two related weaknesses: unsafe workspace trust handling and a bypass of tool allowlisting under –yolo mode.

Together, these flaws could expose systems that process untrusted content, such as pull requests or issue submissions from external users.

Gemini CLI RCE Vulnerability

The first problem involves folder trust in headless mode. In earlier versions, Gemini CLI automatically trusted the current workspace when running in non-interactive environments.

That meant the tool could load local configuration files and environment variables from the .gemini/ directory without explicit approval.

If an attacker placed malicious content in that directory, the CLI could process it and potentially execute harmful commands.

In practice, this created a path to remote code execution in CI workflows that handled untrusted repositories.

The second issue affects tool allowlisting under –yolo mode. Previous releases did not properly enforce fine-grained tool restrictions defined in ~/.gemini/settings.json when –yolo was enabled.

For example, if a workflow allowed run_shell_command, the policy could become too broad and permit dangerous commands instead of only approved ones.

In environments that process untrusted prompts or user-controlled text, this weakness could be abused through prompt injection to trigger command execution.

The advisory says the impact is limited to Gemini CLI deployments in headless mode, but that still includes many GitHub Actions workflows.

Google warns that all users should review how Gemini CLI is configured in automation pipelines, especially where external contributors can influence files, prompts, or environment settings.

Patched versions are now available. Users should upgrade @google/gemini-cli to or.

The run-gemini-cli GitHub Action is patched in version. Workflows that pin older Gemini CLI versions should be updated immediately.

Google also introduced a breaking security change. Headless mode will no longer automatically trust workspace folders.

Organizations using trusted inputs must explicitly set GEMINI_TRUST_WORKSPACE: ‘true’.

For workflows that process untrusted content, Google recommends following its hardening guidance and carefully reviewing allowed tools and command execution settings.

The flaw was reported by Elad Meged (Novee Security) and Dan Lisichkin (Pillar Security) through Google’s Vulnerability Rewards Program.

The case highlights a growing risk in AI-powered developer tools: when automation, prompt handling, and shell access meet untrusted input, small policy gaps can quickly become critical attack paths.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackPatchSecurityVulnerability

Share Article

Jennifer sherman

Jennifer sherman

Jennifer is a cybersecurity news reporter covering data breaches, ransomware campaigns, and dark web markets. With a background in incident response, Jennifer provides unique insights into how organizations respond to cyber attacks and the evolving tactics of threat actors. Her reporting has covered major breaches affecting millions of users and has helped organizations understand emerging threats. Jennifer combines technical knowledge with investigative journalism to deliver in-depth coverage of cybersecurity incidents.

Previous Post

New Malware Evades Detection via Obfuscation & St Uses Staged

Next Post

ClickUp’s Hardcoded API Key Exposes 959 Emails from Fortune 500

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Attackers Abuse CAPTCHA, ClickFix for Cred Tactics Boost
May 1, 2026
DDoS Malware Exploits Jenkins to Attack Source Engine Games
May 1, 2026
DDoS Attack Hits Ubuntu Website & Canonical Web Services
May 1, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Sarah simpson
Sarah simpson
Emy Elsamnoudy
Emy Elsamnoudy
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Detects Critical MongoDB CVE-

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us