CriticalVulnerabilityLLM-specific
CVE-2026-12537: Google Gemini CLI OS command injection via crafted .gemini/.env file
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-12537
- Published
- Record updated
- Affected
- @google/gemini-cli < 0.39.1, fixed in 0.39.1, released April 23, 2026, 61 days before disclosure
- @google/gemini-cli = 0.40.0-preview.2, fixed in 0.40.0-preview.3, released April 23, 2026, 61 days before disclosure
- google-github-actions/run-gemini-cli < 0.1.22, fixed in 0.1.22
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%
Summary
CVE-2026-12537 affects Google Gemini CLI (versions prior to 0.39.1) and the run-gemini-cli GitHub Action (versions prior to 0.1.22) on headless CI platforms. An unprivileged attacker can use a maliciously crafted .gemini/.env file to achieve pre-sandbox host-level code execution, via an OS command injection flaw in the container launcher. NVD has not yet provided an assessment; the CNA GoogleCloud rates it CVSS 4.0 10.0 CRITICAL.
Mitigation
Fixed in Gemini CLI 0.39.1 and run-gemini-cli 0.1.22, the versions after which the flaw is no longer present. The source text does not describe further workarounds; the advisory is referenced at https://github.com/google-github-actions/run-gemini-cli/security/advisories/GHSA-wpqr-6v78-jr5g.
Related items
- MediumCVE-2026-111372: AI ChatBot for WooCommerce WoowBot plugin authorization bypass in RAG syncSame vendor · NVD/CVE Database
- HighCVE-2026-117560: ATXP Gemini CLI extension OS command injection in runAtxp() via MCP parametersSame vendor · NVD/CVE Database
- CriticalCVE-2026-90970: GitLab AI Gateway prompt template sandbox escape via crafted flow configurationSame vendor · NVD/CVE Database
- MediumCVE-2026-89278: GPTranslate WordPress plugin exposes plaintext API key to unauthenticated usersSame vendor · NVD/CVE Database
- CriticalCVE-2026-19407: Google Cloud Gemini Enterprise Agent Platform SDK for Python bucket squattingSame vendor · NVD/CVE Database