âš¡ TL;DR
Java4Shell (CVE-2026-114938) is a critical 9.2 pre-auth OpenJDK Base64 RCE hitting Java 17, 21, 25 and 27. Here are the affected versions, fixes, and mitigations.
Java4Shell: The Pre-Auth OpenJDK Base64 RCE Explained
A hand-written assembly routine in HotSpot, written years ago to make Base64 decoding faster, turned out to be the least patched and most interesting Java bug of 2026. On November 17, Oracle shipped fixes for CVE-2026-114938, and the disclosure came with a 1,146-point Hacker News thread, a wave of advisories from six security vendors (Hacker News, Nov 2026), and pre-auth RCE demos against default installs of Keycloak, Jira, Jenkins, and Artifactory. If you run Java services on x86-64 servers, this one deserves your next hour.
Contents
- What Is Java4Shell (CVE-2026-114938)?
- How Does a Base64 Decoder Reach Remote Code Execution?
- Which Versions Are Affected, and Which Are Fixed?
- Is My Java Service Actually Exposed?
- How Do I Patch, and What Are the Short-Term Mitigations?
- How Urgent Is This, Really?
- The Verdict
- FAQ
TL;DR
- CVE-2026-114938 is a pre-auth memory-corruption bug (out-of-bounds heap write) in OpenJDK’s AVX-512 Base64 decoding intrinsic, rated 9.2 Critical under CVSS 4.0 by Calif (Oracle scores it 8.1 under CVSS 3.1) (Calif, Nov 2026).
- Affected: OpenJDK 17.0.6 and newer across release lines 17, 21, 25, and 27. Fixed builds shipped November 17, 2026: 17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1 (Datadog Security Labs, Nov 2026).
- Exploitation requires an x86-64 CPU with AVX-512 VBMI (Intel Xeon Ice Lake or newer, AMD Zen 4 or newer). ARM64 hosts aren’t affected (VulnCheck, Nov 2026).
- Interim mitigation: start the JVM with
-XX:-UseBASE64Intrinsics(or-XX:UseAVX=2on x86-64 only), but patching is the real fix (Aikido, Nov 2026).
What Is Java4Shell (CVE-2026-114938)?
Java4Shell is the name Calif gave to a memory-corruption vulnerability in OpenJDK’s optimized Base64 decoder, discovered independently by Quang Luong of Calif on October 24, 2026, using Codex (he reports about an hour to find it and two more to build a first exploit, for under $200 in tokens) (Calif, Nov 2026).
The bug itself is old news in the making. A crash report hit the wild on June 9, 2026, via an Adoptium issue, and a root-cause fix was proposed to the OpenJDK project in September but closed without merging. The vulnerable code is the hand-written AVX-512 VBMI assembly HotSpot uses to decode Base64 fast on modern Intel and AMD server chips.
Here’s the part that should bother you: it’s a decoder, not a parser you opted into. Any code path that hands attacker-controlled Base64 to java.util.Base64.getDecoder() or Base64.getUrlDecoder() is a potential sink. Auth headers, JWTs, SAML assertions, file-upload fields, API payloads. The MIME decoder is unaffected (Datadog Security Labs, Nov 2026).
How Does a Base64 Decoder Reach Remote Code Execution?
The root cause is an integer underflow in the padded-tail handling of the AVX-512 decode block. When input ends with certain padding patterns (a lone =, ==, X=, and friends), the computed output length goes negative, landing at -1 or -2. The assembly then uses BZHI with that count, and since a count of 64 or more leaves all mask bits set, the final vector store writes a full 64 bytes regardless of buffer size (Datadog Security Labs, Nov 2026).
Concretely, a 65-byte input can cause writes roughly 62 bytes past the end of the destination array. Most of the overflow is a repeating byte pattern rather than fully attacker-chosen data, which limits precision but doesn’t eliminate risk (VulnCheck, Nov 2026).
Two exploitation outcomes matter:
- RCE. Corrupting an adjacent object header can yield code execution, but there’s no universal exploit. Each target needs bespoke heap grooming and a memory-disclosure primitive to defeat ASLR (VulnCheck, Nov 2026).
- JavaBleed. The same corruption can leak adjacent heap memory, exposing keys, tokens, and PII from the same process (Calif, Nov 2026).
Calif demonstrated pre-auth RCE against default installs of Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins, and PingFederate, and post-auth RCE against Kafka, Solr, Elasticsearch, Gerrit, and Spinnaker. The easiest outcome, though, is denial of service: repeated crafted requests reliably crash the JVM (VulnCheck, Nov 2026).
If this pattern feels familiar, it should. I compared the NGINX2Root flaw chain last month and the same lesson applies: unauthenticated input hitting a low-level C-level bug is the shortest path to a bad week. Java just rarely plays this game, which is why the Hacker News reaction was so loud.
Which Versions Are Affected, and Which Are Fixed?
The OpenJDK advisory covers release lines 17, 21, 25, and 27. Calif pins the regression to OpenJDK 17.0.6 and newer. Standard Java 8 and 11 aren’t listed, with one exception: Oracle’s Java SE 8 Enterprise Performance Pack (Aikido, Nov 2026).
Oracle’s affected builds were 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, and 27.0.1.0.3, plus GraalVM builds (Tenable, Nov 2026). Because every major distribution ships the same HotSpot code, the affected-vendor list reads like a Java hall of fame: Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine, and Red Hat OpenJDK, among others (Calif, Nov 2026).
Fixed builds Oracle released on November 17, 2026 (Tenable, Nov 2026):
| Release line | First fixed build |
|---|---|
| Java 8 Enterprise Performance Pack | 8u513-perf |
| Java 17 | 17.0.21.1 |
| Java 21 | 21.0.13.1 |
| Java 25 | 25.0.5.1 |
| Java 27 | 27.0.1.1 |
Vendor build numbers differ, so check your distribution: Corretto, Zulu, Microsoft, and Ubuntu fixes were already out at disclosure, Red Hat and Debian 13 shipped fixes, and Debian 12’s openjdk-17 package was still vulnerable as of November 19 (Tenable, Nov 2026). EOL lines (18 through 20, 22 through 24, and 26) are affected and won’t get fixes, so those runtimes need an upgrade to a supported line (Aikido, Nov 2026).
Is My Java Service Actually Exposed?
Three conditions must all be true, and checking them takes minutes.
1. Check the Java version. Run:
java -versionAnything on the 17, 21, 25, or 27 lines below the fixed builds above is in scope. For a running process you can’t restart yet, use:
jcmd <PID> VM.version2. Check the CPU. The bug only triggers on x86-64 chips with AVX-512 VBMI:
grep -om1 -E 'avx512[_]?vbmi' /proc/cpuinfoIntel Xeon Ice Lake through Granite Rapids and AMD EPYC or Ryzen Zen 4 and newer qualify. Note that many Intel client CPUs since Alder Lake have AVX-512 fused off, and ARM64 hosts (Graviton, Ampere) are unaffected (VulnCheck, Nov 2026).
3. Check the input path. Does attacker-controlled Base64 reach Base64.getDecoder() or Base64.getUrlDecoder()? Audit auth headers, token validation, file uploads, and any endpoint decoding user payloads. Dependency scanners won’t catch this one directly, since it’s a JDK runtime flaw, but your SBOM should tell you which JDK image each service ships. Datadog also recommends verifying the running JVM’s flags with jcmd <PID> VM.flags -all once you apply mitigations (Datadog Security Labs, Nov 2026).
GreyNoise has already reported exploitation attempts in the wild, though no confirmed successes as of publication, and a public scanner is fingerprinting vulnerable Java versions (Tenable, Nov 2026).
How Do I Patch, and What Are the Short-Term Mitigations?
Patch first. The fixes are point releases, not migrations: 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1. Restart every affected process, including services running inside container images that bundle their own JDK (Datadog Security Labs, Nov 2026). Keycloak, for example, shipped vulnerable 26.8.2 images and fixed ones using Red Hat OpenJDK 21.0.13.1 (Tenable, Nov 2026).
If you can’t patch immediately, two JVM flags disable the vulnerable code path (Calif, Nov 2026):
-XX:-UseBASE64Intrinsicsdisables the Base64 fast path entirely. VulnCheck verified this works on OpenJDK 17, 21, and 25, and notes some builds need-XX:+UnlockDiagnosticVMOptionsbefore the flag (VulnCheck, Nov 2026).-XX:UseAVX=2caps the CPU feature level below AVX-512. x86-64 only; a JVM on ARM64 will refuse to start with it (Datadog Security Labs, Nov 2026).
Neither flag appears in the official Oracle or OpenJDK advisories. Both are workarounds, not fixes, and heavy Base64 workloads may see throughput drops (Aikido, Nov 2026).
For defense in depth at the edge, a WAF rule that blocks suspiciously long Base64 blobs with malformed padding (the trigger is 64 or 128 A characters followed by =) can buy time on internet-facing endpoints. It’s coarse, exploit chains will evolve, and Calif explicitly warns that nginx request-body buffering is not a general mitigation since WebSocket tunnels bypass it. Treat edge rules as tripwires, not shields.
| Action | Effort | Coverage |
|---|---|---|
| Upgrade to your vendor’s fixed build and restart | Low to medium | Complete |
-XX:-UseBASE64Intrinsics JVM flag | Low | Complete for this bug; small perf cost |
-XX:UseAVX=2 (x86-64 hosts only) | Low | Complete; breaks JVM startup on ARM64 |
| WAF rule for malformed Base64 padding | Medium | Partial; bypassable, best as detection |
| Upgrade EOL JDK lines (18-20, 22-24, 26) | High | Complete, but a real migration |
How Urgent Is This, Really?
My urgency tiers, in order:
- Patch internet-facing Java services this week. Pre-auth RCE was demonstrated against six widely deployed products in default configuration, GreyNoise is seeing probes, and a working exploit already exists in a commercial exploit catalog (Tenable, Nov 2026; VulnCheck, Nov 2026).
- Apply the JVM flag where patching takes longer. One restart, no code changes, full coverage of this specific bug.
- Don’t panic-patch internal, post-auth, or ARM-hosted services today, but get them into the next maintenance window. RCE requires a per-target exploit chain, so exposure depends on your CPU and input paths.
- Add the exposure check to your runbook. Version, CPU flags, and decoder sink audit. Three commands, ten minutes, and you’ll know exactly where you stand.
The scariest part of Java4Shell isn’t the CVSS score. It’s that this code shipped silently inside every modern JDK for years, sat behind a performance optimization nobody audits, and needed an AI-assisted researcher with a $200 budget to surface. Your attack surface includes the runtime you didn’t choose to think about. Patch it.
The Verdict
- Patch first, flag second, WAF last. Point releases to a fixed build beat every workaround, and the workarounds only exist because not everyone can patch in a day.
- The exposure triangle decides your risk, not the CVSS score. Vulnerable JDK build, AVX-512 VBMI silicon, and attacker-controlled Base64 reaching the decoder; miss one leg and this bug can’t reach you.
- The runtime is your attack surface now. This flaw shipped silently inside every modern JDK for years and needed an AI-assisted researcher with a $200 budget to surface (Calif, Nov 2026). Pin, track, and patch your JDK images like any other dependency.
- Treat the disclosed mitigations as tripwires. Neither flag appears in official advisories, and edge rules are bypassable. They buy time; they don’t buy safety.
FAQ
What is Java4Shell (CVE-2026-114938)?
A pre-auth memory-corruption bug in OpenJDK’s AVX-512 Base64 decoding intrinsic. Crafted padding causes an out-of-bounds heap write that can yield RCE or heap disclosure (JavaBleed). Calif rated it 9.2 Critical under CVSS 4.0 (Calif, Nov 2026).
Which Java versions are affected by Java4Shell?
OpenJDK 17.0.6 and newer across lines 17, 21, 25, and 27, plus Oracle’s 8u511 Enterprise Performance Pack and GraalVM builds. Most vendor distributions (Corretto, Temurin, Zulu, Liberica, and more) were affected until their fixed builds shipped (Tenable, Nov 2026).
What versions fix CVE-2026-114938?
Oracle’s fixed builds, released November 17, 2026, are 8u513-perf, 17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1. Vendor build numbers differ, so check your distribution’s advisory (Tenable, Nov 2026).
Is my server vulnerable to Java4Shell?
Only if all three hold: a vulnerable JDK build, an x86-64 CPU with AVX-512 VBMI (Intel Ice Lake+, AMD Zen 4+), and attacker-controlled Base64 reaching Base64.getDecoder() or Base64.getUrlDecoder(). ARM64 hosts are not affected (VulnCheck, Nov 2026).
What is the fastest Java4Shell mitigation?
Restart the JVM with -XX:-UseBASE64Intrinsics (add -XX:+UnlockDiagnosticVMOptions on some builds) or -XX:UseAVX=2 on x86-64 only. Both disable the vulnerable code path, but patching to a fixed build remains the real fix (VulnCheck, Nov 2026).
Sources: Java4Shell disclosure (Calif, November 2026), Tenable’s CVE-2026-114938 FAQ, and Aikido’s advisory.

Written by Mihir Pipermitwala
Senior Full Stack Consultant & Mobile Engineering Specialist building user-focused applications in healthcare with Flutter, Dart and React Native. I write about what I actually build and test — every tutorial here comes from real project work.
More about Mihir →