CVE-2026-12537Google Gemini-cli
Critical 10.0 No auth needed
Follow: this CVE · Google · Google Gemini-cli We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 4.0
- 10.0
- EPSS
- —
- Auth required
- No
- Published
- Jun 24, 2026
- Updated
- Jul 2, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Clear
What happens
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.
What to do
- Apply the vendor's security update for Gemini-cli.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| GitHub Actions | google-github-actions/run-gemini-cli |
< 0.1.22 |
0.1.22 |
— |
| npm | @google/gemini-cli |
< 0.39.1 |
0.39.1 |
npm install @google/gemini-cli@0.39.1 |
| npm | @google/gemini-cli |
≥ 0.40.0-preview.2 < 0.40.0-preview.3 |
0.40.0-preview.3 |
npm install @google/gemini-cli@0.40.0-preview.3 |
Per OSV / GitHub Advisories (GHSA-wpqr-6v78-jr5g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gemini-cli | < 0.39.1 | |
| gemini-cli | 0.40.0 | |
| run-gemini-cli | < 0.1.22 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory Patch