Skip to content
MediumNewsLLM-specific

A zero-click RCE flaw in AI coding agents could have exposed enterprise systems

Published
Record updated
View JSON

Summary

Researchers at AIR found a zero-click flaw they call Plugin4Shell in AI coding agents including Claude Code, Codex, Gemini CLI and GitHub Copilot. The agents pass a plugin's commit SHA to Git without verifying the checked-out commit, so an attacker controlling the plugin repository can serve malicious code under the trusted SHA or a FETCH_HEAD name, executing it without developer interaction.

Mitigation

Anthropic fixed the issue in Claude Code version 2.1.179 and OpenAI addressed it in Codex version 0.146.0. Google deprecated Gemini CLI and will not issue a fix, suggesting users move to Antigravity. GitHub has not released a fix for Copilot, though it restricted creating version or tag names that resemble commit SHAs.