After PHP2Shell, Node2Shell, GitLab2Shell and HTTP2Shell, the next one is in Java itself. Java4Shell, tracked as CVE-2026-114938, is a pre-authentication heap buffer overflow in OpenJDK’s HotSpot JVM. It sits in the CPU-accelerated Base64 decoder that every Java app uses, and it can be reached before anyone logs in.
Before you panic: it only fires on x86-64 servers with AVX-512, on Java 17.0.6 and newer. Most desktops and every ARM or Apple chip can’t run the vulnerable code. Here’s how it works, the honest “crash or takeover” answer, how to check your server, and the fix.
Watch the video
The bug in slow motion, the honest exploit picture, and a real terminal: check, the code path, mitigate and upgrade.
The quick fix
Update the JDK to a patched build, then restart every JVM. A running JVM keeps the old code in memory, so an update alone isn’t enough. Rebuild your container images too.
- Oracle’s 17 Nov 2026 update: 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 (and 8u513-perf for the Java 8 Performance Pack).
- Amazon Corretto and Azul Zulu shipped fixed builds quickly. Red Hat and Eclipse Temurin were still pending when the video was made (18 Nov 2026), so check your vendor’s advisory.
What is the bug?
Java decodes Base64 all the time: JWT tokens, Basic-auth headers, certificates. Once that code gets hot, the JIT compiler swaps in a hand-written, very fast AVX-512 routine for java.util.Base64.
That fast routine handles the last few bytes, the “tail”, with a length calculation that subtracts one for each trailing =. A specially sized tail of 1 to 3 bytes makes that length go negative. The store mask then covers the full 64 bytes, and the decoder writes about 62 bytes past the end of a heap buffer. Java does throw an error, but only after the out-of-bounds write.
Because tokens and Authorization headers are decoded on the way in, an attacker doesn’t need to log in to reach it.
Crash or full takeover? The honest answer
- Oracle says a successful attack can result in “takeover”, and rates it CVSS 8.1.
- Calif.io, who found it, and Immersive Labs both say they built working, application-specific exploits. Neither has released them.
- Independent labs (Upwind, Blackpoint, Amazon) have so far reproduced crashes and a leaked secret, not full remote code execution. Datadog calls denial of service “the more readily achievable impact”.
So remote code execution is claimed, not publicly demonstrated. No attacks were seen in the wild and it wasn’t on CISA’s KEV list (as of 17 Nov 2026). Either way, it’s pre-auth memory corruption on your server, so it’s worth patching.
Who is actually affected?
| Affected | Not affected |
|---|---|
| Java 17.0.6+, 21, 25 and 27 on x86-64 | Standard Java 8 and Java 11 |
| CPUs with AVX-512: Intel Ice Lake / Sapphire Rapids and newer Xeons, AMD Zen 4+ | Most desktop CPUs, all ARM and Apple chips |
| Oracle Java SE 8 Performance Pack 8u511b33-perf | JVMs with the Base64 fast path turned off |
Apps named as exposed before login include Jira, Jenkins, Keycloak, Confluence, Artifactory and PingFederate. Many of them bundle their own JDK, so check the Java the app runs, not just the system one.
Check your server (read-only)
These commands only report, they don’t change anything. This is what I ran on my test machine:
java -version # 17.0.6+ or any 21 / 25 / 27 on x86-64 = in range
jcmd PID VM.version # the Java a running app really uses
grep -o avx512vbmi /proc/cpuinfo | head -1 # empty = this CPU can't run the vulnerable path
java -XX:+PrintFlagsFinal -version | grep UseBASE64Intrinsics
The full hardware gate needs all of avx512f, avx512bw, avx512vbmi and bmi2. On my test machine avx512vbmi was missing, so the fast path could never run there.
Can’t patch right away?
An interim stopgap (not an official vendor workaround) is to turn off just the Base64 fast path:
java -XX:-UseBASE64Intrinsics ...
Remove it again once you’re on a patched build.
Everything shown was done on a throwaway test machine I own. No exploit or proof-of-concept is shown. This was a developing CVE when the video was made (18 Nov 2026): scores, fixed builds and your vendor’s status can change, so check your vendor’s advisory before acting.
Summary
- The bug: a negative length in HotSpot’s AVX-512 Base64 decoder writes about 62 bytes past a heap buffer, before login.
- Affected: Java 17.0.6+, 21, 25, 27 on x86-64 servers with AVX-512.
- Fix: patched JDK, then restart every JVM and rebuild images. Stopgap:
-XX:-UseBASE64Intrinsics.
More in the 2Shell series: PHP2Shell · Node2Shell · GitLab2Shell · HTTP2Shell
Sources: Equixly · Horizon3 · The Hacker News · Tenable FAQ
More on YouTube
Prefer watching? The full Java4Shell walkthrough is on our YouTube channel: watch the video. For more hands-on breakdowns of security bugs, Linux servers and dev tools, subscribe at youtube.com/@fineshotai.
