Vulnerability · Published Jun 24, 2026 · Assigned by GoogleCloud

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

Critical 10.0

In plain English

A critical-severity improper input validation in Gemini CLI from Google Cloud. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)10.0Critical
Exploit odds (30 days)0.2%top 88.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@google/gemini-cli0.39.1GHSA-wpqr-6v78-jr5g
npm@google/gemini-cli0.40.0-preview.3GHSA-wpqr-6v78-jr5g

Affected products (as reported)

VendorProductVersions
Google Cloud Gemini CLI 0 – before 0.39.1
Google Cloud run-gemini-cli GitHub Action 0 – before 0.1.22

Weakness: CWE-20 · 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

References