CriticalPHP2Shell: is your PHP patched?

critical vulnerability

Gemini CLI: Remote Code Execution via workspace trust and tool allowlisting bypasses

Published Apr 24, 2026 · updated Sep 24, 2026

What to do

  1. Upgrade to a fixed version: @google/gemini-cli 0.39.1, @google/gemini-cli 0.40.0-preview.3, google-github-actions/run-gemini-cli 0.1.22.
  2. Redeploy and restart long-running processes so they load the fixed code.

Affected packages

@google/gemini-cli

< 0.39.1
0.39.1

Check your project: npm ls @google/gemini-cli --all

Is @google/gemini-cli@0.39.1 safe to install? See the upgrade verdict →

@google/gemini-cli

= 0.40.0-preview.2
0.40.0-preview.3

Check your project: npm ls @google/gemini-cli --all

Is @google/gemini-cli@0.40.0-preview.3 safe to install? See the upgrade verdict →

google-github-actions/run-gemini-cli

< 0.1.22
0.1.22

Check your project: grep -rn "google-github-actions/run-gemini-cli" .github/workflows

Sources

← All critical vulnerabilities