Originally published on my blog, where the diagrams below are interactive.

PHP2Shell, Node2Shell and Java4Shell corrupt memory inside the language runtime, so each one needs a memory leak, offsets for the exact build and several tries before it gives a shell. Each also reaches only some deployments. Log4Shell needed one request on any default install.

Two of the three, plus the kernel bug chained with PHP2Shell, are still in CISA KEV, because on a fleet of identical machines the attacker does the hard part once. For a defender, the work is to find which of your systems each bug can reach and patch those first.

KEV data is from CISA catalog version 2026.11.25; EPSS scores are from FIRST, dated 26 November 2026.

What to check first

  • Check your stack before the score. Do you run mod_php or PHP-FPM? Does anything decode Brotli from untrusted input? Does Java run on AVX-512 hardware? Are unprivileged user namespaces allowed?
  • EPSS predicts exploitation activity, which includes scanning and blind attempts, so it says little about difficulty. Java4Shell has the highest EPSS of the three (0.593) and no KEV listing; Node2Shell has 0.330 and is in KEV.
  • Expect severity scores to disagree. Oracle rates Java4Shell 8.1, Amazon Linux 8.8, Calif 9.2 and Red Hat 9.8, because they disagree on attack complexity and on whether a login is required.
  • Weight fleets heavily. A hard bug on one unique server can wait a cycle; the same bug on a thousand identical pods cannot.

Checklist of stack conditions with a patch-first verdict for each bug
A checker that ranks the four bugs for your stack. Here: Apache mod_php, a Node service that decodes Brotli, and unprivileged user namespaces allowed. Interactive version on my blog.

The three bugs

PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is a use-after-free when PHP runs out of memory mid-request, triggered by a crafted upload; PHP 8.1 and older get no fix. The reliable path is Apache mod_php. Even on identical fresh containers, a public exploit needed about 24 tries for one shell. Until you can patch, the advisory suggests memory_limit=-1.

PHP2Shell flow from upload to code execution, with two defender cut points
Where PHP2Shell breaks, and where you can stop it. Interactive version on my blog.

Fragnesia (CVE-2026-46300) is a Linux kernel privilege escalation that CISA notes can be chained with PHP2Shell to get root. It needs unprivileged user namespaces and loadable esp4/esp6 modules; Ubuntu's default AppArmor restriction blocks the public exploit.

Fragnesia flow from a web shell to root, with two defender cut points
Where Fragnesia breaks, and where you can stop it. Interactive version on my blog.

Node2Shell (CVE-2026-111497) is an out-of-bounds write in the Brotli decoder bundled with Node. Node never decodes Brotli on its own, so it reaches only apps that decompress attacker Brotli: Express 5 or body-parser 2, Koa bodyparser, direct node:zlib calls, or fetch() from a hostile server. Offsets are tied to the build: offsets for 24.22.0 produced nothing in 10,000 tries against 22.23.3. Upgrade the runtime; updating dependencies does not fix it.

Node2Shell flow from a hostile Brotli body to memory corruption, with two defender cut points
Where Node2Shell breaks, and where you can stop it. Interactive version on my blog.

Java4Shell, also called Java2Shell (CVE-2026-114938), is a memory write past an array in the JIT-compiled Base64 decoder. It needs all four of these (CIRCL): unpatched OpenJDK 17.0.6 or later, an x86-64 CPU with AVX-512 VBMI (ARM is immune), the intrinsic enabled (the default on that hardware), and attacker Base64 reaching java.util.Base64 after the JIT has compiled it. Each target also needs its own heap profile. If you cannot patch yet, start the JVM with -XX:-UseBASE64Intrinsics.

Java4Shell flow from attacker Base64 to a write past the array, with two defender cut points
Where Java4Shell breaks, and where you can stop it. Interactive version on my blog.

How they compare with Log4Shell

Log4Shell turned any logged string into a remote code load, and React2Shell exposed every default Next.js App Router app. Both needed no login, one request and no knowledge of the target's memory, so they worked everywhere at once.

Four lanes comparing the steps and failed tries for Log4Shell, PHP2Shell, Node2Shell and Java4Shell
Steps an attacker has to get right for each bug. On the blog this plays as an animation, including the failed tries. Interactive version on my blog.

Bug Default config? Extra conditions KEV EPSS
Log4Shell Yes None 2021-12-10 0.99999
React2Shell Yes None 2025-12-05 0.538
PHP2Shell Reliable only on mod_php Memory leak, per-build offsets, many tries 2026-10-26 0.451 / 0.208
Fragnesia Needs unprivileged user namespaces Local code first 2026-10-28 0.030
Node2Shell No, the app must decode attacker Brotli Heap leak, per-build offsets 2026-10-27 0.330
Java4Shell Only on AVX-512 VBMI hardware Per-app heap profile, JIT warm-up Not listed 0.593

Failed attempts also crash the target: a miss kills a PHP worker, a Node process or a JVM, where Log4Shell was one quiet request. Platform hardening adds steps too. SELinux confinement of the PHP worker is why the PAN-OS attackers below needed Fragnesia on top of PHP2Shell.

Identical fleets undo the difficulty

The one confirmed production compromise used a PHP2Shell and Fragnesia chain to root 24 Palo Alto PAN-OS firewalls with 11 version-specific offset profiles. Every firewall on the same PAN-OS version runs the same PHP binary, so each profile covered every box on that version. Public Node2Shell exploits target the official node:24.22.0 image for the same reason, and a supervisor that restarts the process after each crash gives the attacker free retries.

Grid of 96 hosts in two builds, each build covered by one exploit profile
One exploit profile per build: 96 hosts in 2 builds need only 2 calibrations. On the blog the sliders are live. Interactive version on my blog.

AI speeds up the exploit work

Calif found Java4Shell with OpenAI Codex in about an hour and had a working exploit about two hours later, and Invicti built PHP2Shell and Node2Shell chains with local models. Recomputing offsets for another build is the kind of work a model does well, so calibrating for a fleet gets cheaper (my estimate; I have no measurements).

The preconditions stay where they were: a model cannot add AVX-512 to a server, make an app decode Brotli it never receives, or turn PHP-FPM into mod_php. Count the difficulty as a few extra days to patch, and spend them on the systems the checklist at the top points to.