CVE-2026-12537
High
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.
SeverityHigh
CVSS7.8
Exploit probability—
Product
Google Gemini-cli
PublishedJun 24, 2026
First seenJun 24, 2026
Weakness typeCWE-20Improper input validation
How to fix
Update
- google gemini-cli0.39.1 or later
- google run-gemini-cli0.1.22 or later
- @google/gemini-cli0.39.1, 0.40.0-preview.3 or later
- google-github-actions/run-gemini-cli0.1.22 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| google gemini-cli | v < 0.39.1, 0.40.0 | 0.39.1 |
| google run-gemini-cli | v < 0.1.22 | 0.1.22 |
| @google/gemini-clinpm | v < 0.39.1, 0.40.0-preview.2 ≤ v < 0.40.0-preview.3 | 0.39.1, 0.40.0-preview.3 |
| google-github-actions/run-gemini-cliGitHub Actions | v < 0.1.22 | 0.1.22 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.