Skip to content
EventPast event

Plugin4Shell: SHA pinning bypass in coding agent plugins leads to zero-click RCE

2 reports2 reporting sourcesLatest report

Start here

AI overview

Air Security Research Lab disclosed Plugin4Shell: the plugin version pinning mechanism can be bypassed, causing Claude Code, Codex, GitHub Copilot, and Gemini CLI to load attacker-controlled code, and potentially leading to zero-click remote code execution. The research noted that Git reference resolution and plugin checkout logic interpret pinned commits inconsistently, and malicious publishers could exploit this ambiguity to replace the actually loaded plugin content; background auto-updates in Claude Code and Codex further expand the scope of affected installed plugins. A GitHub security advisory subsequently disclosed a hash pinning bypass vulnerability in the Claude Code and Claude Desktop plugin installation flow (CVE-2026-86063): during installation, git checkout is used to retrieve the marketplace-pinned commit SHA, but the checked-out HEAD is not verified against the pinned SHA. An attacker controlling the plugin's upstream repository could create a branch with the same name as the 40-character SHA, causing the checkout to silently resolve to the attacker's branch, thereby bypassing hash pinning and installing attacker-controlled code. The vulnerability affects versions before 2.1.179.

Generated by AI from reports · Updated 2026-10-16

Storyline

Developments on the same subject and issue, from earliest to latest

2 events
  1. · 2 reports· Attention39

    Plugin4Shell: SHA pinning bypass in coding agent plugins leads to zero-click RCEThis event

  2. · 1 reports· Attention0
    Hackers find a way around GitHub SHA pinning, webinar explains how to close the gap

Latest developments

2 developments
  1. · 1 report
    Claude Code plugin hash pinning bypass vulnerability
    GitHub Security Advisories: Claude Code plugin hash pinning bypass vulnerability, versions before 2.1.179 affected
  2. Date not given · 1 report
    Plugin4Shell: SHA pinning bypass in coding agent plugins leads to zero-click RCE
    AIR Security: Air Security disclosed Plugin4Shell: SHA pinning in Claude Code, Codex, GitHub Copilot, and Gemini CLI plugins can be bypassed, leading to zero-click RCE

Progress timeline

Oct 16
  1. GitHub Security AdvisoriesSelected
    Claude Code plugin hash pinning bypass vulnerability, versions before 2.1.179 affected

    A GitHub security advisory discloses a hash pinning bypass vulnerability in the plugin installation flow of Claude Code and Claude Desktop (CVE-2026-86063): during installation, `git checkout` is used to retrieve the marketplace-pinned commit SHA, but the HEAD after checkout is not verified to match the pinned SHA. If an attacker controls the plugin's upstream repository, they can create a branch with the same name as the 40-character SHA, causing the checkout to silently resolve to the attacker's branch, thereby bypassing hash pinning and installing attacker-controlled code. Exploiting this vulnerability requires the user to install a malicious plugin and pin it to a secure hash, and the plugin source must be hosted on a git host that allows branch names shaped like SHAs. Affected versions are before @anthropic-ai/claude-code 2.1.179, fixed in 2.1.179; users on standard Claude Code auto-update have received the fix, while manual updaters need to upgrade to the latest version.

Date not provided
  1. Date not given
    AIR Security
    Air Security disclosed Plugin4Shell: SHA pinning in Claude Code, Codex, GitHub Copilot, and Gemini CLI plugins can be bypassed, leading to zero-click RCE

    Air Security research lab disclosed Plugin4Shell: the plugin version pinning mechanism can be bypassed, causing Claude Code, Codex, GitHub Copilot, and Gemini CLI to load attacker-controlled code, potentially leading to zero-click remote code execution. The research noted that Git reference resolution and plugin checkout logic interpret pinned commits inconsistently, and a malicious publisher can exploit this ambiguity to replace the actually loaded plugin content. Background auto-updates in Claude Code and Codex further expand the risk to installed plugins.