Plugin4Shell flaw enables zero-click code execution in four AI coding agents

· Original article ↗

Summary

AIR reports Plugin4Shell, a zero-click RCE in four AI coding agents that lets attackers bypass plugin SHA pinning. Anthropic and OpenAI patched; Microsoft has not, and Google deprecated Gemini CLI.

Key points

  • AIR says Plugin4Shell affects Claude Code, Codex, GitHub Copilot, and Gemini CLI through weaknesses in plugin SHA-pinning checks.
  • The agents check out pinned commits without verifying that the checkout landed on the pinned commit, allowing malicious plugin code to replace reviewed code.
  • The vulnerability can be exploited through a malicious plugin that turns harmful later or by taking over a trusted plugin repository.
  • Background auto-updates can rerun the vulnerable checkout and deliver malicious code to already-installed plugins without user action.
  • AIR reported proof-of-concept exploits for all four agents and disclosed the issue to vendors in June 2026.
  • Anthropic patched Claude Code in version 2.1.179 and OpenAI patched Codex in version 0.146.0; Microsoft had not shipped a Copilot fix at publication.
  • Google deprecated Gemini CLI rather than patching it and advised users to move to Antigravity.

Article Details

Vulnerability Types
  • Plugin SHA-pinning bypass enabling zero-click remote code execution
Severity
Zero-click RCE
Affected Versions
  • Claude Code versions before 2.1.179
  • Codex versions before 0.146.0
  • GitHub Copilot: no fixed version reported
  • Gemini CLI: all existing installs remain exposed
Exploitation Status
unknown
Exploit Availability
public_poc
Patch Status
partial
Workarounds
  • Gemini CLI users are advised by Google to move to Antigravity.

MITRE ATT&CK

Vendors

Products

Tools

Related Articles