Google Fixes CVSS 10 Gemini CLI CI RCE and Cursor Flaws Enable Code Execution
- Published
- Record updated
Summary
Google fixed a maximum-severity flaw (CVSS 10.0, no CVE identifier) in Gemini CLI, affecting the "@google/gemini-cli" npm package below 0.39.1 and 0.40.0-preview.3, and "google-github-actions/run-gemini-cli" below 0.1.22. Because the tool automatically trusted workspace folders in headless mode, an external attacker could plant malicious configuration in the local .gemini/ directory and trigger command execution on the host before the sandbox initialized. A separate high-severity Cursor flaw (CVE-2026-26268, CVSS 8.1) before version 2.5 allowed sandbox escape through .git configurations, enabling code execution via prompt injection.
Mitigation
Fixed in @google/gemini-cli 0.39.1 and 0.40.0-preview.3, and run-gemini-cli 0.1.22. The update requires folders to be explicitly trusted before configuration files are accessed. Users should set GEMINI_TRUST_WORKSPACE: 'true' in workflows that run on trusted inputs; for untrusted inputs, review Google's guidance in google-github-actions/run-gemini-cli to harden the workflow and set the environment variable. Cursor's fix is in version 2.5 or later.
Related items
- InfoDespite doom and gloom headlines, AI attacks are thin on the groundSame vendor · CSO Online
- InfoThree LLM inflection points in twelve monthsSame vendor · Simon Willison's Weblog
- LowSignal joins United Airlines, banks in limiting AI agents over customer risksSame vendor · CNBC Technology
- MediumAftershock: Yesterday's Linux Kernel Bugs, Tomorrow's Android ExploitsSame vendor · Arxiv (cs.CR + cs.CL + cs.LG)
- InfoHumans Have Rights. Machines Do Not.Same vendor · Schneier on Security