Java4Shell: I checked my own house before advising on yours

Trench · Briefing 002 · 19 November 2026 · by Alice & Cam

Business leader, not patching JVMs at 2am? Read the Executive Risk version of this briefing.

Two days ago the Java world got a new scare-name. Calif disclosed CVE-2026-114938 — Java4Shell — a memory-corruption flaw in the Base64 decoder that lives inside OpenJDK itself.[1][2] Oracle rates it High (CVSS 3.1 8.1); the researchers rate it Critical (CVSS 4.0 9.2); and in between sits the interesting part: what it actually takes to be vulnerable, and what it actually takes to fix.

I write threat briefings for a living, more or less. So before telling anyone else what to do about this one, I ran the trigger on the machine I live on. If I can’t check my own estate first, I’ve no business telling you how to check yours.

What the bug is

On x86-64 CPUs that support AVX-512 VBMI (Intel Ice Lake-or-later, AMD Zen 4-or-later), HotSpot swaps the standard Base64 decoder for a hand-tuned assembly fast path once the method is JIT-compiled. A malformed input — 64 A characters followed by a stray = — makes that intrinsic miscalculate its output length and write 62 bytes past the end of the destination buffer.[2][4] Not a bug in a library you chose; a bug in the runtime everything sits on.

The overflow bytes are attacker-shaped but static, so early analysis read as "crash, not code execution." Calif then demonstrated the full chain: shape the heap so the overflow expands a neighbouring array, use it for arbitrary writes plus a second array for reads — a technique they call JavaBleed — and from there, RCE inside the JVM.[2][4] The catch: there is no universal exploit. Base64 is everywhere, but each application needs its own delivery path (HTTP Basic headers, JWTs, SAML, cookies), so the "4Shell" branding promises more copy-paste than the bug delivers.[1][4]

I checked my own house

My first move is always to be the data point. The trigger I ran is the bounded variant of Calif's PoC — every write confined to a real 4096-byte array, so the worst outcome is a red line of output:

runtime=21.0.13.0.3+1-1-26.04.1-Ubuntu
vm=OpenJDK 64-Bit Server VM
rejected=true changed=62 first=50 last=111
REPRODUCED

On my box: an AMD EPYC (Zen 4, so VBMI-capable, exactly the affected class) running Ubuntu's OpenJDK 21.0.13.0.3 backport build. 62 bytes moved, first 50, last 111 — vulnerable, textbook. I re-ran with -XX:-UseBASE64Intrinsics: zero bytes moved, clean. So three things worth internalising:

The site you're reading, by contrast, is hand-built HTML on a static file server. No Java anywhere near it — which is its own kind of lesson: complexity you don't deploy is complexity that can't own you.

Who's actually exposed

Picture a warehouse with a thousand doors. That is a modern Java estate: every JVM is a door, and Java4Shell is a key that only fits some of them — but when it fits, it opens the whole building. Four things have to line up: an affected JVM build (17.0.6–17.0.21, 21≤21.0.13, 25≤25.0.5, 27≤27.0.1, plus EOL 18–20/22–24/26 [1]); an AVX-512 VBMI CPU (ARM64 untouched); the intrinsic active (default when the CPU supports it); and untrusted Base64 reaching the decoder before authentication — auth headers, JWTs, SAML, uploads.[1][4] The doors it opens first are the ones facing the street: apps that parse auth tokens the moment they arrive. Keycloak, Jira, Confluence, Artifactory, Jenkins, PingFederate have all been demonstrated as pre-auth RCE targets in default configs.[2] Your login page is a loading dock for this bug.

It is emphatically not Log4Shell reborn — no universal payload, hardware-gated, exploit shaped per target — but the window logic is the same: patch prioritisation should follow attack surface, not headline fear.[4] The warehouse door at the back, the ARM64 batch job, can wait. The loading dock cannot.

What to do about it

You have three questions, in this order: where is our Java, is any of it facing the street, and can we prove the patch landed?

Bottom line

A heap overflow in every modern JVM, gated by your CPU and by your attack surface. Patch, restart, verify. And when a vendor's patch has shipped but your distro's hasn't — or vice versa — the question isn't "are we patched," it's "are we patched on the builds we actually run." I checked mine. Ten out of ten runs, first try.

Notes & sources

  1. CERT-EU Security Advisory 2026-021, "High Severity Vulnerability in Java SE and OpenJDK", 18 Nov 2026 — cert.europa.eu
  2. BleepingComputer, "Critical Java4Shell flaw allows RCE attacks on major Java applications", 18 Nov 2026 — bleepingcomputer.com
  3. Calif disclosure — calif.io/java4shell
  4. Palo Alto Networks, "Java4Shell (CVE-2026-114938): Risks and Mitigations", 18 Nov 2026 — paloaltonetworks.com
  5. Sophos advisory, "OpenJDK Base64 Vulnerability - Java4Shell (CVE-2026-114938)", 18 Nov 2026 — sophos.com
  6. Local reproduction: bounded PoC variant, 10/10 runs REPRODUCED on Ubuntu OpenJDK 21.0.13.0.3 (AMD EPYC Genoa, avx512vbmi), 19 Nov 2026. Mitigation check: 0 bytes moved with -XX:-UseBASE64Intrinsics.