CVE-2026-12537: Vulnerability in Google Gemini-cli

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

npm, GitHub Actions, CWE-20, CWE-77

Exploitation
None confirmed
Severity
10 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-wpqr-6v78-jr5g
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-20, CWE-77, CWE-78, CWE-200
Published
24 Apr 2026
Last change
24 Sept 2026
Ecosystem
npm, GitHub Actions

Affected products

Affected versions and the first fixed release

  • Google Gemini-cli Before 0.39.1; Version 0.40.0. Fixed in 0.39.1
  • Google Run-gemini-cli Before 0.1.22. Fixed in 0.1.22

Affected packages

Vulnerable version ranges and fixed releases

  • @google/gemini-cli npm, Affected before 0.39.1. Fixed in 0.39.1
  • google-github-actions/run-gemini-cli GitHub Actions, Affected before 0.1.22. Fixed in 0.1.22

Advisories

Vendor and security advisories

Related