.gemini config code execution | Severity: see NVD| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-12537 |
| Date (index) | 2026-06-24 |
| Affected product (index) | Google Gemini CLI / run-gemini-cli GitHub Action |
| GHSA ID | GHSA-wpqr-6v78-jr5g |
| OWASP MCP Top 10 (2025) | MCP09 — Shadow MCP Servers |
| Published / disclosed | 2026-06-24 |
| Ecosystem | Application (vendor product) |
| Component | Google Gemini CLI / run-gemini-cli GitHub Action |
| EPSS score | 0.003140000 (FIRST EPSS, 2026-06-30) |
| CVSS score | 10 CRITICAL CVSS v4.0 (NVD) |
| CWE | CWE-20 |
| Affected versions | Gemini CLI < 0.39.1; run-gemini-cli < 0.1.22 |
| Fixed versions | Gemini CLI 0.39.1+; run-gemini-cli 0.1.22+ |
| Fix status | Patched |
| Exploit status | Public CVE record; do not mirror weaponized payloads |
| Notes | Added during the 2026-07-01 missing-CVE recheck against NVD/GHSA/OX/VIPER-MCP sources. |
Improper neutralization in the Gemini CLI container launcher (headless/CI) allows pre-sandbox host-level code execution via a malicious .gemini/.env file. Relevant to MCP-shaped deployments where workspace config is auto-trusted in non-interactive mode.
Exposure depends on how the affected MCP server, client, plugin, extension, SDK transport, or adjacent AI workflow is deployed. Prioritize network-reachable MCP transports, desktop apps with MCP extensions enabled, CI or agent environments, and systems with access to browsers, repositories, credentials, cloud resources, databases, or local files.
Primary mapped weakness: MCP09 — Shadow MCP Servers. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.
MCP components bridge model output to privileged tools. Vulnerabilities in authorization, path validation, OAuth handling, command execution, SSRF validation, transport trust, or configuration loading can turn prompt/tool input into host compromise, credential disclosure, unauthorized browser/cloud/database access, or persistent malicious tool execution.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.
Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.
If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.
Track NVD references for CVE-2026-12537 and apply the upstream patched release or commit recommended by the vendor/CNA.