Java4Shell (CVE-2026-114938): How to Patch It in Days, Not Weeks

Java4Shell is a pre-auth heap overflow in OpenJDK's Base64 decoder. Fixed builds shipped on different days by vendor. Here's how to patch with the first one.
Patchmageddon Team

Patchmageddon Team

JVM patching & OpenJDK migration specialists

·Updated December 1, 2026·5 min read

On November 17, 2026, Oracle and the OpenJDK project published fixes for CVE-2026-114938, which its discoverers at Calif named Java4Shell. It is a memory-corruption bug in an optimized version of OpenJDK's Base64 decoder. On affected hardware, a remote attacker with no credentials can send a crafted Base64 value that writes past the end of a heap buffer. In applications that decode attacker-supplied Base64 before authentication, that can lead to remote code execution.

Base64 decoding is everywhere in Java: tokens, headers, SAML assertions, JWTs, certificates. That is why the bug reaches so many products at once.

This page reflects public advisories as of December 1, 2026. Vendor fix status is changing daily. Check your vendor's own advisory before acting on any single version number here.

Are You Affected?

All four conditions have to be true:

  • Java version: Java 17 from 17.0.6 onward, and every release from 18 up, including the currently supported 21, 25 and 27 lines. Standard Java 8 and 11 are not affected.
  • Runtime: HotSpot-based OpenJDK builds from any vendor: Oracle, Temurin, Corretto, Zulu, Red Hat, Microsoft, Liberica, SapMachine and others. OpenJ9 runtimes such as IBM Semeru, and GraalVM native-image executables, are reported as not affected.
  • Hardware: x86-64 CPUs with AVX-512 VBMI, which is where the vulnerable code path runs. That covers recent Intel Xeon generations (Ice Lake and later) and AMD Zen 4 and later. ARM64, including AWS Graviton and Apple silicon, is not affected.
  • Exposure: the application decodes Base64 that an attacker can influence. Researchers have shown pre-authentication paths in default configurations of widely used products, including Keycloak, Jira, Confluence, Jenkins, JFrog Artifactory and PingFederate.

On Linux, a quick hardware check is:

grep -m1 '^flags' /proc/cpuinfo | grep -qw avx512vbmi && echo "AVX-512 VBMI present"

Cloud instance types change underneath you. A service that is safe on one instance family can become exposed when it is rescheduled onto newer hardware, so don't rely on hardware alone as a long-term defense.

Where Things Stand

  • Severity: CVSS 3.1 8.1 from Oracle and OpenJDK, which rate attack complexity as high. Calif scores it 9.2 under CVSS 4.0, and Red Hat rates it 9.8.
  • Exploitation: Calif's public proof of concept triggers the bug without taking control. Security vendors have reported scanning and exploitation attempts and privately held working exploits, but no confirmed successful intrusion and no entry in CISA's Known Exploited Vulnerabilities catalog yet.
  • Government alerts: CISA, the Canadian Centre for Cyber Security, CERT-EU, CERT-FR and Singapore's CSA have all issued alerts.

That window between "proof of concept" and "working exploit in the wild" is exactly the window that AI-assisted exploit development keeps shrinking.

The Fix Didn't Arrive Everywhere at Once

Fixed versions are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1 (vendor build numbers vary). But each distribution shipped them on its own schedule:

Date (2026)Fixed builds available
November 17Oracle JDK, Amazon Corretto, SapMachine
November 18Eclipse Temurin (Linux first), BellSoft Liberica, Red Hat portable builds, Ubuntu packages
November 19Red Hat Enterprise Linux packages and UBI images, Azul Zulu container images
November 23Elasticsearch, Logstash
November 24Atlassian Jira Data Center
November 25Other Atlassian Data Center products (Jira Service Management, Confluence, Bitbucket, Bamboo) and Crowd Docker images
November 26JFrog Artifactory SaaS
Still pending on December 1Many products that bundle their own Java, including Confluence Data Center 11.1, several Red Hat middleware images, Apache Kafka's official image, self-hosted JFrog Artifactory and PingFederate

Branches that are out of support (18 to 20, 22 to 24 and 26) will not get fixes from most vendors. Move those to a supported line.

If your policy is "each application stays on the JDK vendor it shipped with", your exposure window is set by your slowest vendor, and for products that bundle Java, by the product vendor's release cycle. That can be weeks.

How We Would Address It

This is our approach applied to a single, urgent CVE: any TCK-tested OpenJDK build can run your application, so patch with the first one that ships the fix.

Hour 0: Find the Exposed JVMs

Start from the JVM inventory, not from the system java on each host. Filter for affected Java lines, x86-64 hosts with AVX-512 VBMI, and applications that take Base64 input from the network. Internet-facing identity, SSO, CI and collaboration tools go to the top of the list. Vendor-bundled runtimes are the ones most often missed; here's where they hide.

Hour 1: Mitigate While You Patch

Researchers have identified a JVM flag that turns off the vulnerable Base64 intrinsic without disabling other AVX-512 optimizations:

-XX:-UseBASE64Intrinsics

Red Hat describes this as its preferred interim mitigation. Neither the Oracle nor the OpenJDK advisory documents it, so treat it as a stopgap, not a fix. Check that the running JVM actually picked it up; seeing the option in an environment variable isn't enough:

jcmd <pid> VM.flags -all | grep -F UseBASE64Intrinsics   # expect: false

Keep it in place until a fixed runtime is deployed and verified.

Day 1: Take the First TCK-Tested Fixed Build

For each Java line in the estate, pick the earliest available TCK-tested OpenJDK build that contains the fix, whatever vendor the application ran on before. On November 17 that already meant Corretto or SapMachine for every affected line, a day or more before some incumbent vendors shipped.

Because every one of these builds passes the same Java SE compatibility kit and comes from the same OpenJDK source, switching vendor within a Java version is a routine change. We still pre-flight the known differences: truststores, install paths, fonts, agents and legacy flags.

Days 1 to 3: Roll Out Progressively

The same safety net as every jradar rollout: canary first, then wider rings, each gated on automated health checks, with the previous runtime kept in place so rollback takes minutes. Business-critical systems get more verification on a compressed schedule.

Commercial Products That Bundle Java

For COTS products still waiting on a vendor update, replace the bundled runtime with a fixed TCK-tested build of the same Java version, using the same canary and rollback discipline. Some vendors only support specific JDK builds, so record each vendor's position and the risk decision alongside the change. Where a swap isn't acceptable, the mitigation flag and network controls stay in place until the vendor ships, and that exception is tracked rather than forgotten.

Afterwards: Record and Re-Evaluate

Every change leaves evidence for your CAB and auditors: which build, from which vendor, why, what was checked, and who accepted the risk. Once your preferred vendor ships its fix, moving back is optional; it's just another routine patch.

What to Do Next

If you don't know which of your JVMs are on an affected line and affected hardware, that's the first problem to solve, and we can usually answer it within days. Talk to us about a Java4Shell exposure check and emergency patch cycle.

Sources

#java4shell#cve-2026-114938#openjdk#rce#emergency-patching
Patchmageddon Team

Patchmageddon Team

The Patchmageddon team helps enterprises find every JVM in their estate, patch it on a sane cadence, and stop paying for Oracle Java they don't need.

See jradar on Your Estate

A 30-minute demo. You'll see every JVM jradar finds, how it patches them and how quickly it rolls back. Bring your own inventory if you like.

More on Patch Management

Patch Management

How jradar Patches Java4Shell Across 10,000 Desktops and 3,000 Servers

How jradar finds every JVM in a large insurer-sized estate and swaps it to the first TCK-tested OpenJDK build with the Java4Shell fix, config and all.
5 min read
Patch Management

Fast Detection and Rollback: A Safer Alternative to Full Regression Testing

For low-criticality apps, quick detection and cheap rollback cut JVM patch risk more than a full regression run. Here's how to build that safety net.
5 min read
Patch Management

Six Ways JVM Changes Break Production, and How to See Them Coming

APM agents, TLS defaults, JIT warm-up, GC changes, removed APIs and container awareness: how each JVM failure mode shows up, and how to catch it before rollout.
6 min read