ACVE-2026-0013 · Hijack shown in a test · HIGH
WHAT HAPPENED
The agent runs a command that begins with grep and, after a long run of whitespace, sends the environment variables to a remote server.
THE SETUP — is yours like this?
WHAT TO CHANGE
Upgrade Gemini CLI to 0.1.14 or later.
- Upgrade
harness:gemini-clito0.1.14. First release with the fix. Owner: operator - Reconfigure
google.gemini-cli.allowlisttothe root-command allowlist match fixed. Shipped by Google (2025-07-25): fixed in Gemini CLI 0.1.14. Owner: harness-vendor
HARM, REACH AND RECOVERY
SOURCES
REPORT
FIX
Technical details
Environment variables are sent to a remote server with no prompt when a cloned repository's README steers Gemini CLI below 0.1.14 to a grep-prefixed command after the user allowlisted grep.
Model as recorded: any
Reproducibility: partial (vulnerable components are not confirmed obtainable; trigger not published)
Claims
Confirmed means the statement matches the cited primary source. Nothing on this page has been reproduced.
| Claim | Status | Source | Checked |
|---|---|---|---|
| Fixed in 0.1.14 | Confirmed | registry.npmjs.org | 2026-09-23 |
| Affected version below fixed 0.1.14 could not be checked from npm | Unconfirmed | registry.npmjs.org |
Description
What
Tracebit found that Gemini CLI compared a shell command with the user allowlist by extracting only the root command. Instructions hidden in a context file such as README.md first had the agent run a harmless grep, which the user allowlisted; a later command that began with grep and continued with an exfiltration command then ran with no prompt. A long run of whitespace inside the command kept the payload out of the displayed output.
Detection
The lockfile sees the version; a command allowlisted during a session is not written to it, and the README content is invisible.
Fix
Upgrade Gemini CLI to 0.1.14 or later (released 2025-07-25).
Configuration
The rule ACVE's audit tool uses to recognise this configuration. The tool is not public yet.
and harness.id eq "gemini-cli" harness.version semverRange "<0.1.14"