Exploiting a Parsing Flaw in Gemini CLI to Execute Any Command
Preface As an active user of generative AI in my work and personal life, I was excited to know of the launch of Gemini CLI. It meant I never had to leave the terminal to interact with AI agents. As someone who enjoys security research as a hobby, I also couldn’t pass up the chance to peek under the hood and see how the tool actually functions. Discovery While going through all the features available in Gemini CLI and checking the changelog of the latest release at that time, I came across a new feature # feat: Add Shell Command Execution to Custom Commands #4917. From the PR, the TLDR of this feature is described as follows: ...