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—
ProductGoogle Gemini-cli
PublishedJun 24, 2026
First seenJun 24, 2026

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

ProductAffected versionsFixed in
google gemini-cliv < 0.39.1, 0.40.00.39.1
google run-gemini-cliv < 0.1.220.1.22
@google/gemini-clinpmv < 0.39.1, 0.40.0-preview.2 ≤ v < 0.40.0-preview.30.39.1, 0.40.0-preview.3
google-github-actions/run-gemini-cliGitHub Actionsv < 0.1.220.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.