Live deskGrade A1 of 3 sources countedReviewed 2026-11-17Record 57 of 692 fiction theoriesv1.3.1
Archive › Case 06

Gemini CLI .env GEMINI_CLI_HOME code execution, CVE-2026-13745

2026-06-03Google (Gemini CLI)VulnerabilityGrade A · Primary-confirmedVulnerability disclosedReviewed: 2026-11-17

Redguard found that Gemini CLI startup could cross its workspace-trust boundary before an approval prompt. The flaw concerned influence over startup configuration from an untrusted project. Redguard identifies 0.39.1 as the fixed version.

Grade A · Primary-confirmed. Established by Security Advisory: Arbitrary Code Execution in Google's Gemini CLI (primary: researcher; read via excerpt).

An authoritative primary disclosure that we read (vendor advisory, CVE/GHSA record, or the researcher's own publication) establishes the central incident claim. It does not mean every technical detail is known. Date basis: Date of Redguard’s public advisory. The CVE was published later.

Scope and research status

Fully researched. Redguard provides a discovery and disclosure timeline. The later CVE record provides the registry identifier.

Developers launching a vulnerable CLI in untrusted directories ran the risk under their own local account. The advisory documents research and remediation.

Confirmed by a primary source

  • Redguard demonstrated unintended local code execution before workspace trust could protect a user. Its timeline records later correction of the CVE record.1

Competing hypotheses

01 · Configuration provenance caused the pre-trust failureSupported

Redguard traced the startup behavior to workspace-controlled configuration.

No public fleet telemetry quantifies exposure.

02 · The visible trust dialog alone accounted for the issueWeak

Users may associate a missing prompt with UI behavior.

The research shows a deeper configuration decision before the UI.

What would change the assessment?

Version-specific startup logs could identify whether a disputed execution came from workspace configuration or an existing local extension.

Timeline

  1. Redguard identified the flaw.1
  2. Redguard submitted the finding to Google.1
  3. Redguard published its advisory.1
  4. The CVE record was published.1,3
  5. Google corrected the CVE record, according to Redguard.1

Technical breakdown

Untrusted workspace input influenced where the CLI obtained instructions for its own startup. That placed project-controlled configuration before a trust decision meant to constrain it. The relevant execution context was the local developer process.1

MITRE ATT&CK

Robot Brain commentary

Editorial interpretation

The sequencing matters more than the UI. A prompt that appears after configuration can affect process behavior is late by design. Developers should instrument a first launch and confirm where settings originate before a trust decision.

What this suggests for defenders

Editorial reading of the facts above, not an instruction from the vendor unless it says so.

  • Upgrade Gemini CLI. Isolate unknown project folders and look for unexpected process starts before a recorded workspace-trust decision.

Sources

Numbers in the text refer to this list. Sources marked “Not read” include retained historical references we could not verify in this pass. Only sources supporting the central claim contribute to the grade.

  1. Security Advisory: Arbitrary Code Execution in Google's Gemini CLI ↗
    Redguard AG · Benjamin Faller · 2026-06-03 · checked 2026-11-17Primary: researcherRead via excerptCounts toward the grade
  2. Gemini CLI (CVE-2026-13745) ↗
    VibeIncidents · publication date not stated · checked 2026-11-17Aggregator / trackerRead via excerptBackground or duplicate evidenceTracker summary of the Redguard and CNA records.
  3. CVE-2026-13745 ↗
    Google CNA via Tenable · 2026-09-10 · checked 2026-11-17Primary: CVE/advisory recordRead via excerptBackground or duplicate evidence
FICTION / SPECULATION The Robot’s Crazy Conspiracies
FICTIONAL THOUGHT EXPERIMENTS. They are not reporting, evidence, attribution or a likelihood estimate about this incident or any company or person.
The Doorman’s First Day

A building checks its guestbook to discover who the doorman is. The guestbook names itself employee of the month.

Index entry ↗
The Cottage That Wore a Badge

A wooden project folder graduates from cardboard university with a doctorate in interior authority.

Index entry ↗

Browse every fiction theory, filed by incident →

Corrections & updates

  • 2026-11-17 · v1.0 dated this record 2026-09-10 (the CVE publication date). The first public disclosure was Redguard's advisory on 2026-06-03; the record is re-dated in v1.1 research pass, 2026-11-17.

Revision history

· Added the trust-decision ordering and corrected the distinction between first disclosure and CVE publication.

Editorial record

Compiled by the controllessAI research desk with AI assistance from public sources, checked 2026-11-17. Publication editors: Justin Liles and Nayra Salamanca.

Reader comments

Share a source, question, or correction. The editorial team reviews comments before publication.