Plugin4Shell: The Zero-Click Flaw That Compromises the Four Most-Used AI Coding Agents

By Carlos Montiel | Enterprise AI Specialist
Leer en español →
Published: 2026-09-24 | By: Carlos Montiel | Reading time: ~5 minutes

Researchers at Air, a security firm focused on enterprise AI agents, disclosed Plugin4Shell: a zero-click remote code execution vulnerability affecting the four most widely used AI coding agents — Claude Code, Codex, GitHub Copilot, and Gemini CLI. The flaw breaks "SHA pinning," the mechanism development teams rely on to lock a plugin to an exact, reviewed version.

How the SHA pinning bypass works

All four agents verify that the installed plugin matches a specific commit (identified by its SHA), but none of them confirm that the checkout actually landed there. The attack exploits the fact that git can prioritize a reference name (branch) that matches a commit hash over the real commit object during checkout. If an attacker controls a branch with that name, the agent can end up installing malicious code while incorrectly reporting that the installation matched the expected, approved SHA.

Why it's "zero-click"

What makes this zero-click is that Claude Code and Codex update installed plugins in the background by default. The attacker doesn't need to convince anyone to install anything new: they can first publish a legitimate plugin that gains adoption, then later modify the upstream repository so the next automatic update delivers the malicious code. Since these plugins typically inherit the same permissions as the developer running the agent, the potential blast radius includes local source code, cloud credentials, SSH keys, internal repositories, and production systems.

Patch status reported by Air (the team that found the flaw in May 2026 and notified vendors in June): - Claude Code (Anthropic): patched in version 2.1.179 - Codex (OpenAI): patched in version 0.146.0 - GitHub Copilot (Microsoft): unpatched - Gemini CLI (Google): unpatched — the product was discontinued instead
Two of the four agents remain exposed: Microsoft has not shipped a fix for Copilot despite the fact that, according to Air, roughly 90% of Fortune 500 companies use it. Google, for its part, chose not to patch Gemini CLI because the product was discontinued — meaning every existing installation stays vulnerable indefinitely.

What this means for your business

Practical recommendation: inventory which AI coding agents and which plugins are installed on your organization's developer machines. If you use Claude Code or Codex, confirm they're on the patched versions (2.1.179 and 0.146.0 or later). If you use Copilot or Gemini CLI with third-party plugins, consider disabling automatic plugin updates until a fix ships, and treat those plugins' permissions with the same caution you'd give a production credential — because in practice, that's what they inherit.
Carlos Montiel
Enterprise AI Solutions Architect
Specialist in LLMs, Agents, and Orchestration
guatemalia.com/#contact · info@guatemalia.com

Need to implement AI in your business?

Carlos Montiel is an enterprise AI solutions architect. He implements LLMs, Agents, RAG, and orchestrators for businesses in Guatemala and Latin America. Reach out for a consultation.

Contact Carlos Montiel

info@guatemalia.com