
‼️ ‼ A zero-day in Gemini CLI (CVE-2026-31478) is being exploited in the wild right now, and it lets an attacker run commands on your machine and steal your credentials. The Gemini CLI is the terminal tool that connects Google's Gemini model to your files and shell, the same way a harnais connects a model to the world. The flaw lives in how it reads context files: a poisoned file in a directory you inspect is enough to trigger execution, no confirmation prompt shown. Tracebit found the same class of attack in 2025 through prompt injection and missing validation, and Redguard's June 2026 advisory showed arbitrary code execution for anyone who opened the tool in an untrusted directory before v0.39.0. The Cloud Security Alliance rates the exposure CVSS 10.0, which is the top of the scale. The fix is v0.43.1, out now. Update today, then audit which directories you have opened the CLI in and whether any of them held files you did not write. If you build on agentic AI, treat the toolchain as attack surface, not as a convenience. Early report: these facts come from first disclosures and are not confirmed yet. Expect them to change.
Post summary
The text reports CVE-2026-31478 as actively exploited in the wild, describing a context-file-triggered command execution flaw in Gemini CLI. It names v0.43.1 as the fix and advises updating.


