CVE-2026-12537 Details
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.
A vulnerability exists in Google Gemini CLI versions prior to 0.39.1 and the run-gemini-cli GitHub Action versions prior to 0.1.22. In headless CI environments, this vulnerability allows an unprivileged attacker to execute code on the host level by crafting a malicious .gemini/.env file. The issue arises from improper neutralization of OS commands in the container launcher, particularly when Gemini CLI is used in untrusted directories without explicit folder trust.
Users of Google Gemini CLI should update to version 0.39.1 or 0.40.0-preview.3. For the run-gemini-cli GitHub Action, the latest version will be automatically used unless a specific version is set in the workflow. If a version is specified, it is recommended to upgrade to 0.1.22 and audit the workflow settings that use Gemini CLI.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/google-github-actions/run-gemini-cli/security/advisories/GHSA-wpqr-6v78-jr5g | GoogleCloud | Vendor AdvisoryPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
| CWE-20 | Improper Input Validation | GoogleCloud |
Affected Products
| Product | Versions |
|---|---|
| google gemini-cli | < 0.39.1 0.40.0 preview2 |
CPE
Remediation
| |
| google run-gemini-cli | < 0.1.22 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 2, 2026 | Initial Analysis | [email protected] |
| Jun 24, 2026 | CVE Modified | CISA-ADP |
| Jun 24, 2026 | New CVE Received | GoogleCloud |