Skip to main content
Mallory
CriticalVulnerability

CVE-2026-12537: Pre-sandbox OS Command Injection in Google Gemini CLI Container Launcher

Published Jun 24, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS10.0Critical · v4
EPSS0.21%7th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Google
IdentifiersCVE-2026-12537CWE-78 · Improper Neutralization of Special…

CVE-2026-12537 is an improper neutralization of OS command elements vulnerability in the Google Gemini CLI container launcher and the run-gemini-cli GitHub Action. In affected headless CI environments, attacker-controlled workspace configuration and environment-variable content can reach command execution before the container sandbox is established. The issue affects Gemini CLI releases before 0.39.1, including the affected preview release line before 0.40.0-preview.3, and run-gemini-cli releases before 0.1.22.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits unauthenticated, unprivileged pre-sandbox code execution on the CI runner host. An attacker may access pipeline secrets, alter build outputs, disrupt CI operations, and use the compromised runner as a pivot point to connected systems. The reported CVSS v4 base score is 10.0, with high confidentiality, integrity, and availability impacts.

Mitigation

If you can’t patch tonight, do this now.

Until upgrades are complete, do not execute Gemini CLI or run-gemini-cli against untrusted repositories, pull requests, issues, or workspace contents in headless CI. Do not permit untrusted contributors to add or modify Gemini workspace configuration or environment files. Avoid --yolo where attacker-controlled content can influence the model or command execution, apply strict shell-command allowlists, and isolate CI runners to reduce the consequences of host compromise.

Remediation

Patch, then assume compromise.

Upgrade Gemini CLI to version 0.39.1 or later, or 0.40.0-preview.3 or later on the preview release line. Upgrade google-github-actions/run-gemini-cli to version 0.1.22 or later. Update any workflow version pins, then audit headless workspace-trust settings and shell-command tool allowlists. Patched versions require explicit workspace trust in headless operation and enforce tool allowlists in --yolo mode.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GoogleGemini-Cliapplication
GoogleRun-Gemini-Cliapplication
FAQ

Frequently asked questions

Is CVE-2026-12537 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2026-12537 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-12537?
As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-12537.
Is there a patch for CVE-2026-12537?
Upgrade Gemini CLI to version 0.39.1 or later, or 0.40.0-preview.3 or later on the preview release line. Upgrade google-github-actions/run-gemini-cli to version 0.1.22 or later.
What products are affected by CVE-2026-12537?
Google Gemini-Cli and Google Run-Gemini-Cli.
How severe is CVE-2026-12537?
CVE-2026-12537 has a CVSS v4 score of 10.0 (Critical) and an EPSS score of 0.21% (7th percentile) as of Sep 25, 2026.
Activity feed

Recent activity

12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
the hacker newsNews · Aug 7, 2026Claude Code and Gemini CLI Flaws Let a GitHub Issue Reach CI Workflow SecretsAn OS command injection vulnerability in Gemini CLI's container launcher that can allow an unprivileged attacker to execute code on the host of a headless CI platform before the sandbox starts.Read more ↗cyber security newsNews · Jun 29, 2026Critical Gemini CLI Vulnerability Let Attackers Execute Arbitrary CodeA critical remote code execution vulnerability in Google Gemini CLI and its related GitHub Action caused by improper workspace trust handling in headless CI environments and allowlist bypass behavior in --yolo mode, enabling arbitrary command execution in CI/CD pipelines processing untrusted input.Read more ↗cvefeed high severityNews · Jun 24, 2026CVE-2026-12537 - Unauthenticated Remote Code Execution in Gemini CLI CI/CD WorkflowsA critical unauthenticated remote code execution vulnerability in Google Gemini CLI and the run-gemini-cli GitHub Action that allows pre-sandbox host-level code execution on headless CI platforms via a malicious .gemini/.env file.Read more ↗ghsa syntheticNews · Apr 24, 2026GHSA-wpqr-6v78-jr5gA remote code execution vulnerability in Gemini CLI workspace-trust and tool-allowlisting behavior. In headless CI environments, untrusted workspace configuration or environment variables could be processed automatically; additionally, --yolo could ignore a configured fine-grained allowlist, enabling prompt-injection-driven arbitrary shell-command execution.Read more ↗
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity8Community discussion across Reddit, Mastodon, and other social sources.