Vulnerability · Published Jun 24, 2026 · Assigned by GoogleCloud
CVE-2026-12537Unauthenticated Remote Code Execution in Gemini CLI CI/CD Workflows
Critical 10.0
In plain English
A critical-severity improper input validation in Gemini CLI from Google Cloud. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @google/gemini-cli | 0.39.1 | GHSA-wpqr-6v78-jr5g |
| npm | @google/gemini-cli | 0.40.0-preview.3 | GHSA-wpqr-6v78-jr5g |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Google Cloud | Gemini CLI | 0 – before 0.39.1 |
| Google Cloud | run-gemini-cli GitHub Action | 0 – before 0.1.22 |
Weakness: CWE-20 · 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