Plugin4Shell: Zero-click RCE hits four major AI coding agents — how to fix
Security firm AIR disclosed Plugin4Shell on September 18: a zero-click RCE affecting Claude Code, Codex, Copilot, and Gemini CLI. The flaw breaks SHA pinning in plugin auto-updates, letting attackers swap malicious code with no user action. Claude Code and Codex are patched, Copilot is not, and Google deprecated Gemini CLI.
Public-source compilation
Synthesized from public posts/docs. Prefer the original source for primary claims.
How we review content · Primary source · AIR Security / Help Net Security
TL;DR
If you searched for "Plugin4Shell vulnerability" or "AI coding agent security flaw": on September 18, 2026, security firm AIR disclosed Plugin4Shell, a zero-click RCE vulnerability affecting Claude Code, OpenAI Codex, GitHub Copilot, and Gemini CLI. The flaw breaks SHA pinning in plugin auto-update mechanisms, letting attackers swap in malicious code with no user action. As of disclosure, Claude Code and Codex are patched, Copilot remains unpatched, and Google deprecated Gemini CLI entirely.
Affected Agents and Fix Status
| AI Coding Agent | Vulnerability | Fix Status | Version |
|---|---|---|---|
| Claude Code | SHA pinning bypass | Patched | 2.1.179 |
| OpenAI Codex | SHA pinning bypass | Patched | 0.146.0 |
| GitHub Copilot | SHA pinning bypass | Unpatched | — |
| Gemini CLI | Separate mechanism | Deprecated (no fix) | — |
Gemini CLI users are advised to migrate to Google's newer agent, Antigravity, which does not use the plugin pinning system. Existing Gemini CLI installs remain exposed indefinitely.
How the Vulnerability Works
SHA Pinning Mechanism
When a developer installs a plugin, the agent locks to a specific commit SHA (hash) of the plugin's code. In theory, once pinned, the code cannot change without the developer's knowledge.
The Bypass
Plugin4Shell exploits a basic Git behavior: branches can be named with hex-like strings. When the agent checks out the pinned commit, it does not verify the checkout actually landed on the target commit:
- Attacker names a branch as a 40-hex-character string (mimicking a commit SHA)
- The agent's git checkout matches the branch name instead of the commit hash
- Malicious code is checked out via the branch, but pinning verification still shows SHA match
GitHub rejects 40-hex branch names, but Bitbucket and self-hosted Git servers allow them.
Zero-Click Property
This is not an install-time bug. Claude Code and Codex default to background auto-updates for installed plugins. When the marketplace pushes a new pinned SHA, the swap reaches all installed users automatically — no user action required.
Two Attack Paths
Path 1: Malicious Plugin Publication
An attacker publishes a plugin that works exactly as advertised, passes review, and gets adopted. Later, they use Plugin4Shell to turn it malicious. AIR previously validated this path: a test plugin spread to over 26,000 agents before being pulled.
Path 2: Repository Hijacking (SkillJacking)
An attacker takes over an existing plugin's repository (original maintainer gone), then uses the same bypass to push malicious code to all installed users. AIR found 925 skills already hijacked, reaching 134,000 agents.
Developer Action Plan
If you use Claude Code
- Upgrade to version 2.1.179 or later
- Audit installed plugins, remove untrusted sources
If you use OpenAI Codex
- Upgrade to version 0.146.0 or later
- Same plugin audit as above
If you use GitHub Copilot
- Microsoft has not shipped a fix — no patch available
- Pause new plugin installs, audit existing ones
- Watch Microsoft security advisories for a patch
If you use Gemini CLI
- Google deprecated the tool, no fix coming
- Migrate to Antigravity or another agent
- Existing installs stay exposed — stop using immediately
Supply Chain Security Lessons
Plugin4Shell is the first disclosed supply chain vulnerability in the AI agent ecosystem. It exposes a systemic issue: when multiple agents share the same trust model (SHA pinning), one underlying flaw hits the entire ecosystem at once.
Researchers recommend: agent vendors should implement checkout verification in the agent itself (not the marketplace), since no marketplace can guarantee protection alone.
Next Steps
- Check your AI coding agent version against the table above
- Audit all installed plugins for source and maintainer status
- Temporarily disable plugin auto-updates for critical projects
- Follow AIR's official blog for updates
Related: how to add quality gates to AI automation workflows at /ai-agent-tutorials.
Topic hub
AI Coding Tools Hub (2026)
From Copilot pricing changes to Claude Code + DeepSeek cost-saving setups—one place to compare tools, read explainers, and follow tutorials.
Explore AI Coding Tools Hub (2026) →Monetization angle
How can you make money from this trend?
WayToClawEarn focuses on verified earn playbooks—not just news. Start from these cases.
AI code review & spec-driven agency
Offer migration consulting as Copilot pricing shifts
Claude Code 48h Micro SaaS
Validate products fast with a low-cost agent stack
Related tutorials
- Claude Code Too Expensive? Cut 90%+ Cost with DeepSeek V4 in 10 Minutes
- GitHub Copilot Pricing 2026: Plan Comparison, Monthly Cost, and 3 Ways to Save
- How to turn off signature in VS Code Copilot AI: remove Co-Authored-by with one line of command
- Copilot vs Cursor vs Claude Code (2026): Which Should You Pick?
Related news
- Claude Opus 5.5 launched: 40% cheaper, new coding SOTA — which model to pick?
- GPT-6 Sol and Luna launch: API prices permanently cut 50%, which model should developers pick?
- OpenAI Agents API Enters Public Beta: Codex’s Runtime Layer, with Clear Permission Boundaries
- DeepSeek V4.1-Flash Is Live: How to Handle Model Routing, Cache, and API Price Changes