PT-2026-51788 · Github+1 · Run-Gemini-Cli+1
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Google Gemini CLI versions prior to 0.39.1
run-gemini-cli GitHub Action versions prior to 0.1.22
Description
An OS command injection flaw exists in the container launcher used by Google Gemini CLI and the run-gemini-cli GitHub Action when operating on headless CI platforms. The issue stems from improper neutralization of input during the parsing and expansion of environment file contents, specifically within a maliciously crafted
.gemini/.env file. This allows an unprivileged attacker to achieve pre-sandbox host-level remote code execution on the CI runner, which can lead to secret theft, lateral movement, and full pipeline compromise. This occurs before sandboxing is applied, meaning the attacker can execute commands directly on the host system.Recommendations
Update Google Gemini CLI to version 0.39.1 or later.
Update run-gemini-cli GitHub Action to version 0.1.22 or later.
For workflows running on trusted inputs, set the environment variable
GEMINI TRUST WORKSPACE to true.
For workflows running on untrusted inputs, review hardening guidance to restrict folder trust and avoid automatic processing of configuration files.Fix
RCE
Information Disclosure
Command Injection
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gemini-Cli
Run-Gemini-Cli