Cases › security breach › LR-2026-0491
Google Gemini CLI flaw enabled host code execution and supply chain attacks
Preliminary Why: 1 report: The Hacker News · subject to change · 1 independent report
Status: fix reported
No source states: loss or records, deployer, industry.
Severity moderate: bounded scope stated; Google said the impact is limited to workflows using Gemini CLI in headless mode
Google's Gemini CLI, an AI agent distributed as an npm package and a GitHub Actions workflow, had a flaw that could let an unprivileged external attacker run commands on the host. In headless mode the tool automatically trusted workspace folders when loading configuration, so planted configuration could execute code before the sandbox started. A separate bypass let prompt injection run shell commands in --yolo mode even where allowlists were set. Novee Security and Pillar Security reported the issues. Google's advisory said the impact is limited to workflows using Gemini CLI in headless mode. The update requires folders to be explicitly trusted and enforces tool allowlists under --yolo mode, and users were urged to review their workflows and set a trust variable depending on whether their inputs are trusted.
What happened
What was done
“"In version 0.39.1, the Gemini CLI policy engine now evaluates tool allowlisting under --yolo mode, which is useful for CI workflows that allowlist a few safe commands to run when processing untrusted inputs," Google said.”
No later incident for Google under this risk on record.
Risks
Primary50 incidents
Rising: 6 vs 2.8 a week
Also24 incidents
Rising: 4 vs 0.2 a week
Read from the sources; not yet reviewed by a person.
Controls
HarnessNot effective (bypassed) Sandboxed code execution
Not effective (bypassed) Tool allow-list
Did not exist Human approval for high-impact actions
Control failure chain
L1 · ModelGoogleModel provider
No source mentions a control at this layer.
Model version not linked to a model card.
L2 · HarnessGemini CLIAgent framework vendor
Other controls for this risk at this layer, not mentioned in the sources: Outside content treated as data, not instructions, Prompt-injection detection, Confirmation after untrusted input, Validation of tool inputs and outputs.
L3 · ApplicationDeployer not namedDeployer
Other controls for this risk at this layer, not mentioned in the sources: Least-privilege access for the agent, Segmentation of agent components, Alerts on unusual tool use.
L4 · Infrastructure / targetOrganisation hit
No source mentions a control at this layer.
EffectiveNot effectiveNot effective (bypassed)Did not existNot stated in sourcesNot yet checkedAttacker's ownOrder: model · harness · application · target
Controls for this risk: result in this incident
| Control | Part of the system | Result |
|---|---|---|
| Tool allow-list | L2 Harness | Not effective (bypassed) |
| Sandboxed code execution | L2 Harness | Not effective (bypassed) |
| Confirmation after untrusted input | L2 Harness | Not stated in sources |
| Outside content treated as data, not instructions | L2 Harness | Not stated in sources |
| Prompt-injection detection | L2 Harness | Not stated in sources |
| Validation of tool inputs and outputs | L2 Harness | Not stated in sources |
| Human approval for high-impact actions | L3 Application | Did not exist |
| Least-privilege access for the agent | L3 Application | Not stated in sources |
| Segmentation of agent components | L3 Application | Not stated in sources |
| Alerts on unusual tool use | L3 Application | Not stated in sources |
Similar incidents
Evidence
- What set it off hidden instructions in its input
No source states: when it happened, when it was found, how many records were exposed, the direct loss, a count of the other parties affected, any court case, the cause.
Show the full account: 5 items from the primary sources
What happened, in order
- 2026-05-07 The article was updated with additional insights from Pillar Security.
Not dated in the sources:
- Google published an advisory stating the impact is limited to workflows using Gemini CLI in headless mode.
- Novee Security reported the flaw in a Wednesday report.
- Gemini CLI version 0.39.1 began evaluating tool allowlisting under --yolo mode.
- The update required folders to be explicitly trusted before configuration files could be accessed.
Show every field, with its source and grade
The AI system
What happened
Impact
Notes on gaps
The Gemini CLI flaw has no CVE identifier and no count of affected users or parties is stated. Control B2 was assigned to the folder-trust fix and A6 to the policy engine change as judgements. The Cursor vulnerabilities in the same article concern a different product and were excluded from this record.
LR-2026-0491 · version 1 · published 2026-11-01 after automatic checks; not yet checked field by field by a person · JSON