Wednesday, November 11, 2026

Critical Google Gemini CLI Flaw Lets Attackers Execute Code on Headless CI Platforms

A critical vulnerability has been identified in Google’s Gemini CLI and the associated run-gemini-cli GitHub Action. This flaw exposes headless continuous integration (CI) platforms to potential host-level code execution when processing untrusted workspaces.

It is tracked as CVE-2026-12537, with the advisory identifying it as GHSA-wpqr-6v78-jr5g. Rated at the maximum severity under CVSS v4, the issue arises from improper handling of operating system commands in the container launcher and unsafe assumptions about workspace configuration and tool execution in non-interactive environments, such as GitHub Actions.

Critical Google Gemini CLI Flaw

According to Google’s security advisory, earlier versions of @google/gemini-cli automatically trusted workspace folders in headless mode. This meant that configuration and environment variables from the local .gemini directory were loaded without the user’s explicit consent.

In CI workflows reviewing user-submitted pull requests or other untrusted repository content, this behavior allowed a malicious .gemini/.env file to be interpreted as legitimate configuration, enabling remote code execution on the underlying host before any sandbox protections could be applied.

The description of CVE-2026-12537 on the National Vulnerability Database (NVD) confirms that an unprivileged attacker could achieve pre-sandbox host-level code execution on headless CI platforms by exploiting OS command injection in the Gemini CLI container launcher in versions before 0.39.1 and in run-gemini-cli versions before 0.1.22.

The vulnerability is further exacerbated by Gemini CLI’s previous handling of tool allowlisting under the –yolo mode, which overlooked the fine-grained tool restrictions defined in ~/.gemini/settings.json.

When workflows allowed run_shell_command while processing untrusted inputs, attackers could exploit prompt-level manipulation and a misconfigured allowlist to execute arbitrary commands, effectively turning AI-assisted CI pipelines into a vector for supply-chain attacks.

The issue relates to several Common Weakness Enumeration (CWE) categories, including Improper Input Validation (CWE-20), Command Injection (CWE-77), OS Command Injection (CWE-78), and Exposure of Sensitive Information (CWE-200). These reflect both the unsafe parsing of environment data and the potential for lateral movement and data exfiltration from compromised CI hosts.

Google has released hardening updates to align headless behavior with interactive mode, now requiring explicit folder trust before configuration files, such as .env, are processed.

Patched releases include @google/gemini-cli 0.39.1 and 0.40.0-preview.3, as well as google-github-actions/run-gemini-cli 0.1.22, with all previous Action workflows being implicitly affected.

For trusted inputs, Google recommends setting GEMINI_TRUST_WORKSPACE: ‘true’ in workflows. Users dealing with untrusted content are urged to adhere to the hardening guidance in the run-gemini-cli repository and to configure strict tool allowlists that remain enforced even in –yolo mode.

Security researchers from Novee Security and Pillar Security, who are acknowledged under Google’s Vulnerability Rewards Program, advise that CI/CD environments using the Gemini CLI should treat this as a CI supply-chain risk and immediately audit their pipelines for unsafe trust assumptions and outdated Gemini CLI versions.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Criminal IP Launches New TI Feed App on Splunkbase for Automated Threat Detection

Torrance, USA, November 11th, 2026, CyberNewswire Criminal IP, the AI-powered...

BluePhishing Attack Abuses Microsoft Entra OAuth Consent to Create Hidden AI Agent Identities

"BluePhishing," a technique that extends OAuth consent phishing to...

Windows Active Directory RCE and DoS Vulnerabilities Put Windows Systems at Risk

Microsoft disclosed two Windows Active Directory vulnerabilities on November...

Researchers Uncover 45 AI Hacking Frameworks, With Hundreds of Attack Consoles Exposed on the Internet

Researchers have mapped about 45 open-source frameworks that wire...

Ivanti Patches Critical SQL Injection Flaw Allowing Remote Code Execution Without Login

Ivanti has released November 2026 security updates for Endpoint...

Related Articles

Recent News