Plugin4Shell zero-click RCE hits AI coding agents; Claude-built exploit chain reached OpenAI internal repos
Air Security disclosed Plugin4Shell, a zero-click RCE bypassing SHA-pinned plugin updates in Claude Code, OpenAI Codex, GitHub/Microsoft Copilot, and Gemini CLI — Claude Code 2.1.179 and Codex 0.146.0 are patched; Copilot and Gemini CLI are not. Separately,…
Air Security researchers (named by GBHackers as Or Nevo, Dor Granat, and Niv Hoffman) disclosed Plugin4Shell, found in May 2026 with a working test attack reported in June 2026. The four major AI coding agents — Anthropic Claude Code, OpenAI Codex, GitHub/Microsoft Copilot, and Google Gemini CLI — fetch the plugin commit pinned by a marketplace but never verify the checked-out working tree matches the pinned 40-character SHA, so an attacker controlling the plugin repo can make checkout resolve to malicious code via a branch named after the pinned hash (works on Bitbucket-hosted and self-hosted git servers; GitHub blocks such names, a mitigation Air disputes as insufficient), with a separate Gemini CLI variant abusing a main branch named FETCH_HEAD. Background plugin auto-updates in Claude Code and Codex make the swap zero-click, and compromised plugins execute with developer permissions over source code, cloud credentials, SSH keys, and CI/CD. Anthropic patched Claude Code 2.1.179 and OpenAI patched Codex 0.146.0 after the June reports; Microsoft had shipped no Copilot fix at disclosure, and Google deprecated Gemini CLI without patching, directing users to Antigravity. The Hacker News reports no CVE has been assigned, no vendor advisories exist, and no real-world exploitation has been observed. Air's supporting SkillJacking research showed 925 hijacked skills reaching 134,000 agents, and an earlier Air test plugin spread to more than 26,000 agents before being pulled; GBHackers suggests an endpoint-side check that git rev-parse HEAD equals the pinned SHA. In a separate disclosure, Hacktron researchers reported that on July 25, 2026 they chained a heap buffer overflow in libheif 1.19.7 (1.19.8 also reported affected) — an out-of-bounds read/write during HEIC decoding, stemming from missing Debian security backports of an upstream fix that landed about a year earlier without being treated as a security issue — into remote code execution on community.openai.com, reached through Discourse HEIC/HEIF image uploads processed by ImageMagick that bypassed FastImage checks. Sources conflict on CVE status: Cyber Security News lists CVE-2026-32882 (DSA-6417-1), while Hacktron's writeup and SecurityWeek say the bug was never assigned a CVE. Claude Opus 5, released July 24, 2026 (the day before), built a working ARM64 exploit in about three hours after Claude Opus 4.8 failed under ASLR, then ported it to x86-64; the models also located the missing Debian backport. A…
- Plugin4Shell (Air Security; researchers Or Nevo, Dor Granat, Niv Hoffman) affects Claude Code, OpenAI Codex, GitHub/Microsoft Copilot, and Gemini CLI: agents check out marketplace-pinned plugin commits without verifying the working tree…
- Attack paths: a branch named after the pinned hash redirects checkout to malicious code on Bitbucket and self-hosted git servers (GitHub blocks such names, but Air disputes its SHA-naming mitigation as insufficient); Gemini CLI has a…
- Background plugin auto-updates in Claude Code and Codex make the attack zero-click; compromised plugins execute with developer permissions over source code, cloud credentials, SSH keys, and CI/CD.
- Plugin4Shell was found in May 2026 and reported to vendors in June 2026; per The Hacker News, no CVE has been assigned, no vendor advisories exist, and no real-world exploitation has been observed.
- Patches: Anthropic fixed Claude Code 2.1.179 and OpenAI fixed Codex 0.146.0; Microsoft Copilot was unpatched at disclosure; Google deprecated Gemini CLI without a fix and directs users to Antigravity.
- Suggested Plugin4Shell mitigation (GBHackers): an endpoint-side check that git rev-parse HEAD equals the pinned SHA.
- Air's SkillJacking research showed 925 hijacked skills reaching 134,000 agents; an earlier Air test plugin spread to more than 26,000 agents before being pulled.
- On July 25, 2026, Hacktron chained a libheif 1.19.7 (1.19.8 also reported affected) heap buffer overflow — out-of-bounds read/write during HEIC decoding — reached via Discourse HEIC/HEIF uploads processed by ImageMagick and bypassing…
Coverage timelineoldest first · each row is one article
- · 16h agoAI coding agents' 0-click RCE flaw could hand attackers keys to the kingdom
The Register · Security· 74
Researchers disclosed Plugin4Shell, a zero-click RCE in major AI coding agents' plugin SHA-pinning; Anthropic and OpenAI patched, Microsoft and Google did not.
- · 12h agoA heap overflow and SSO misconfiguration to compromise OpenAI internal repos
Hacker News · security· 78
Hacktron researchers chained a libheif heap overflow in Discourse with an OpenAI SSO flaw to take over employee ChatGPT/Codex accounts and access internal repositories.
- · 10h agoResearchers Use Claude Opus 5 to Hack OpenAI Forum and Reach Internal Repositories
Cyber Security News· 70
Researchers used Claude Opus 5 to build a libheif exploit that compromised OpenAI's forum, hijacked employee ChatGPT/Codex accounts, and reached the internal monorepo.
- · 6h agoPlugin4Shell Zero-Click RCE Hits Claude Code, Codex, Copilot and Gemini CLI
Cyber Security News· 75
Researchers disclosed Plugin4Shell, a zero-click RCE in AI coding agents' Git SHA-pinned plugin updates, affecting Claude Code, Codex, Copilot, and Gemini CLI.
- · 6h agoZero-click RCE vulnerability hit four major AI coding agents, two remain unpatched
Help Net Security· 78
Researchers disclosed Plugin4Shell, a zero-click RCE SHA-pinning bypass in Claude Code, Codex, GitHub Copilot, and Gemini CLI; two remain unpatched.
- · 5h agoPlugin4Shell Zero-Click RCE Hits Claude Code, Codex, Copilot and Gemini CLI
GBHackers· 75
Plugin4Shell flaw lets attackers swap SHA-pinned plugins for malicious code, enabling zero-click RCE in Claude Code, Codex, Copilot, and Gemini CLI.
- · 4h agoPlugin4Shell Lets Repository Owners Swap Pinned Plugin Code Across Four AI Coding Agents
The Hacker News· 62
Air Security disclosed Plugin4Shell, letting repository owners swap version-locked plugins in Claude Code, Codex, GitHub Copilot, and Gemini CLI.
- · 2h agoAI-Built Exploit and Sign-In Flaw Opened Path to Internal OpenAI Code
SecurityWeek· 72
Researchers chained a libheif RCE in Discourse with an over-privileged OpenAI forum sign-in token flaw to take over ChatGPT and Codex accounts.
- · 1h agoResearchers used Claude to hack OpenAI
Ars Technica · Security· 66
Researchers exploited a Discourse misconfiguration on OpenAI's community forum to reach internal sign-ons and an employee ChatGPT account with GitHub code access; OpenAI fixed it.
Vulnerabilities in this storyAll →
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2026-32882 | libheif is a HEIF and AVIF file format decoder and encoder. libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap buffer over-read in HeifPixelImage::overlay() in libheif/pixelimage.cc. When compositing an overlay image (iovl) whose child image has a different bit depth for the alpha channel than for the color channels, the function indexes into the alpha plane using the color channel stride (in_stride) instead of the previously retrieved alpha_stride, causing reads past the end of the alpha buffer (up to 3,123 bytes for a 100×50 image with 10-bit color and 8-bit alpha). A crafted HEIF file can exploit this to cause a denial of service (crash) or potentially disclose adjacent heap memory through leaked bytes embedded in the decoded output pixels. This issue has been fixed in versionThis issue has been fixed in version 1.22.0. NVD description · AI analysis pending | 7.1 | <1% | — | — |