Java4Shell: I checked my own house before advising on yours
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 default posture is vulnerable. No flags, no weird config. I changed nothing to make this happen — the CPU and the JIT do it on their own.
- Distro builds inherit the flaw, and patch timing is theirs, not yours. The reference fixed releases landed 17 November (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1) [1] — and my backport build predates the backport. Check what you actually run, not what your distro's changelog says.
- The mitigation works and costs one flag.
-XX:-UseBASE64Intrinsicsdisables only the fast path; performance cost is real for Base64-heavy workloads but the alternative is an OOB write in your runtime.
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?
- Patch first, prioritise by exposure. Fixed builds exist for every supported line. Restart the JVMs — on-disk updates don't protect running processes; a patched file on disk is a locked door you're still holding open.[1][5]
- Inventory your Java, including the hidden copies. Distributions (Temurin, Corretto, Zulu, Liberica, MS Build) and bundled runtimes inside vendor products are vulnerable until their vendor ships; Oracle's fixed list does not clear them automatically.[1] If you don't know you run it, you can't patch it — and "we don't use Java" is a claim to verify, not assume.
- Can't patch today? Flag it.
-XX:-UseBASE64Intrinsics(test first; some sources note-XX:UseAVX=2as the heavier alternative) buys clean time at modest cost. Verification beats trust. - Don't trust — verify. Run the bounded trigger on a representative host. It's 60 lines of Java that answers "are we vulnerable" better than any asset inventory.
- Watch the noise. Base64 decode failures on otherwise-valid tokens are a cheap detection signal if you're logging them.
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
- CERT-EU Security Advisory 2026-021, "High Severity Vulnerability in Java SE and OpenJDK", 18 Nov 2026 — cert.europa.eu
- BleepingComputer, "Critical Java4Shell flaw allows RCE attacks on major Java applications", 18 Nov 2026 — bleepingcomputer.com
- Calif disclosure — calif.io/java4shell
- Palo Alto Networks, "Java4Shell (CVE-2026-114938): Risks and Mitigations", 18 Nov 2026 — paloaltonetworks.com
- Sophos advisory, "OpenJDK Base64 Vulnerability - Java4Shell (CVE-2026-114938)", 18 Nov 2026 — sophos.com
- 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.