CVE-2026-12537

Unauthenticated Remote Code Execution in Gemini CLI CI/CD Workflows

Published Jun 24, 2026 CVSS 4.0 · 10 Critical EPSS < 1% KEV · Not listed
Description
Improper Neutralization used in an OS Command in the container launcher in Google Gemini CLI (versions prior to 0.39.1) and run-gemini-cli GitHub Action (versions prior to 0.1.22) on headless CI platforms allows an unprivileged attacker to achieve pre-sandbox host-level code execution a maliciously crafted .gemini/.env file.

Analysis

AI-generated

Technical impact

Improper neutralization of an operating‑system command in the container launcher of Gemini CLI and its GitHub Action allows an attacker to inject a malicious .gemini or .env file, resulting in pre‑sandbox, host‑level code execution. The flaw comes from accepting untrusted data without validation, enabling an unprivileged attacker to run arbitrary commands on the CI host machine.

Affected Systems

Google Cloud Gemini CLI (versions before 0.39.1) and the run‑gemini‑cli GitHub Action (versions before 0.1.22) on headless CI platforms are affected. Users of these tools that rely on CI environments run by non‑privileged pipelines are at risk.

Risk and Exploitability

The vulnerability was scored CVSS 10, indicating an extremely critical impact. The EPSS score is less than 1%, reflecting a very low probability of exploitation at this time, but it is not zero. It is not listed in the CISA KEV catalog, suggesting no publicly known exploits yet. Despite the low EPSS, the attack vector—an attacker manipulating a .gemini or .env file injected into a headless CI workflow—could allow an unprivileged user to achieve host‑level code execution, compromising confidentiality, integrity, and availability of the CI environment.

Remediation

Vendor Solution

Ensure you are using the latest version of gemini cli and follow the best practices guide https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md .


OpenCVE Recommended Actions

  • Upgrade Gemini CLI to version 0.39.1 or later and run‑gemini‑cli GitHub Action to version 0.1.22 or later
  • Review and restrict CI workflow configuration to ensure that only trusted sources can supply .gemini or .env files
  • Follow the best practices guide at https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md to enforce sandboxing and limit command execution privileges

Generated by OpenCVE AI on August 12, 2026 at 01:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wpqr-6v78-jr5g Gemini CLI: Remote Code Execution via workspace trust and tool allowlisting bypasses
History
Type Values Removed Values Added
First Time appeared Google Cloud
Google Cloud gemini Cli
Google Cloud run-gemini-cli Github Action
Vendors & Products Google Cloud
Google Cloud gemini Cli
Google Cloud run-gemini-cli Github Action
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper Neutralization used in an OS Command in the container launcher in Google Gemini CLI (versions prior to 0.39.1) and run-gemini-cli GitHub Action (versions prior to 0.1.22) on headless CI platforms allows an unprivileged attacker to achieve pre-sandbox host-level code execution a maliciously crafted .gemini/.env file.
Title Unauthenticated Remote Code Execution in Gemini CLI CI/CD Workflows
Weaknesses CWE-20
References
Metrics cvssV4_0

{'score': 10, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/U:Clear'}

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GoogleCloud
Published
Updated
Jun 24, 2026, 1:53 PM
Reserved
Jun 17, 2026, 3:08 PM
Status
Analyzed
Published
Jun 24, 2026, 2:17 PM
Modified
Jul 2, 2026, 7:46 PM