CVE-2026-12537: Pre-sandbox OS Command Injection in Google Gemini CLI Container Launcher
- Vendor
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.
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.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
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.
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.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.