Java4Shell Explained: How to Patch CVE-2026-114938 Right Now

Khalil Khan · November 30, 2026

Introduction: What Is Java4Shell CVE-2026-114938?

Java4Shell CVE-2026-114938 is a critical Java flaw that sent developers and system administrators to Google in November 2026. On November 17, 2026, Oracle and the OpenJDK Vulnerability Group released fixes for Java4Shell CVE-2026-114938. The US Cybersecurity and Infrastructure Security Agency (CISA) urged organisations to patch immediately. In this guide, Hoti Technology explains what Java4Shell CVE-2026-114938 is, which Java versions are affected, and how to patch it right now — plus a quick mitigation flag if you cannot update immediately.

Java4Shell CVE-2026-114938 at a Glance

Java4Shell CVE-2026-114938 is a memory corruption flaw in the AVX-512 Base64 decoder of the HotSpot JVM. It can allow remote code execution without credentials.

  • CVE: CVE-2026-114938, dubbed Java4Shell
  • Severity: Oracle rates it 8.1 under CVSS 3.1. Calif rates it 9.2 under CVSS 4.0.
  • Type: Heap overflow / memory corruption in the Base64 decoder
  • Attack: Unauthenticated, over the network, no user interaction required, high attack complexity
  • Found by: Calif, reported to Oracle and OpenJDK
  • Fixed: November 17, 2026, in Oracle's Critical Security Patch Update

As of November 18, 2026, no exploitation in the wild had been reported, and CVE-2026-114938 was not in the CISA Known Exploited Vulnerabilities catalog. That does not mean you should wait — patch now, before attackers build a working exploit.

Which Java Versions Are Affected by Java4Shell CVE-2026-114938?

Java4Shell CVE-2026-114938 affects Java 17.0.6 and later, on certain x86-64 systems with AVX-512 VBMI CPUs. It also affects Java 21, 25 and 27.

  • Affected versions: Java 17: 17.0.6 and later, before 17.0.21.1; Java 21: before 21.0.13.1; Java 25: before 25.0.5.1; Java 27: before 27.0.1.1; Oracle Java 8 Enterprise Performance Pack: 8u511b33-perf
  • Not affected: Standard Java 8 and Java 11 — they do not contain the vulnerable decoder; Java 17.0.0 through 17.0.5; ARM64 hosts

The vulnerable code is in the runtime, not your application code. That means you must inventory every JVM you run, including the ones baked into container images and vendor appliances.

How to Fix Java4Shell CVE-2026-114938: Update Java

Updating Java is the only complete remediation for Java4Shell CVE-2026-114938.

  • Fixed versions: Java 17: update to 17.0.21.1; Java 21: update to 21.0.13.1; Java 25: update to 25.0.5.1; Java 27: update to 27.0.1.1; Java 8 Enterprise Performance Pack: update to 8u513-perf

Other distributions ship the fix under their own version numbers. As of November 18, 2026, Amazon Corretto, Azul Zulu and Oracle GraalVM had released fixed builds, and Eclipse Temurin had fixed builds for Java 21, 25 and 27. Check your vendor's release notes for the November 17, 2026 fix.

Step-by-step: patch Java4Shell CVE-2026-114938

  1. Check your Java version: run java -version on every server, laptop and container that runs Java.
  2. Check your CPU: Java4Shell CVE-2026-114938 affects x86-64 CPUs with AVX-512 VBMI. If you run Java 17.0.6+ on such a CPU, you are in scope.
  3. Download the fixed build from your vendor — Oracle, Corretto, Temurin, Zulu, Liberica, or your Linux distribution.
  4. Install the fixed build and rebuild every Docker image that bundles Java. Pull the image again — Docker Hub images keep the plain version tag.
  5. Restart every Java process. Replacing the runtime files does not change a JVM that is already running.
  6. Verify: run java -version again on the host that serves traffic and confirm it shows the fixed build, for example 17.0.21.1.

Quick Mitigation If You Cannot Update Yet

If you cannot update immediately, use a JVM flag as a temporary mitigation. Both require a restart of the JVM.

  • -XX:-UseBASE64Intrinsics — disables hardware-accelerated Base64 encoding and decoding while leaving other CPU optimisations in place. This is the recommended stopgap.
  • -XX:UseAVX=2 — disables AVX-512 in the JVM entirely, which can reduce performance. Use this only if the first flag does not work for you.

Example: JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics" java -jar your-app.jar

This disables the vulnerable code path until a fixed runtime is installed. It is not a permanent fix — update as soon as your vendor's fixed build is available.

How to Check If You Are Vulnerable to Java4Shell CVE-2026-114938

  1. Run java -version and compare it with the fixed versions above.
  2. Check whether your Java distribution includes the November 17, 2026 fix.
  3. Check your container images — rebuild any image that bundles an affected Java version.
  4. Check vendor appliances and third-party apps that bundle their own JVM — Jira, Jenkins and similar Java apps were named in early reports as potentially affected.

If you are on Java 8 or 11 (standard builds), or on ARM64, you do not need to patch for this CVE.

Java4Shell Timeline: What Happened, and Why the Rush

Java4Shell CVE-2026-114938 moved fast, and that speed is the reason the patch guidance is so blunt. The flaw was reported to Oracle and OpenJDK by Calif, and the fixes landed on November 17, 2026, in Oracle's Critical Security Patch Update, covering Java 17, 21, 25 and 27. The same day, vendors began shipping their own fixed builds — Amazon Corretto, Azul Zulu and Oracle GraalVM had fixed builds out, and Eclipse Temurin had fixed builds for Java 21, 25 and 27. CISA urged organisations to patch immediately.

By November 18, 2026, no exploitation in the wild had been reported and the CVE was not in the CISA Known Exploited Vulnerabilities catalog. That is good news, not a reason to wait. Calif has published a proof-of-concept that triggers the bug, and a second researcher reported building a working exploit. The window between a public proof-of-concept and a working exploit is exactly when unpatched servers are most exposed, so the safe reading of the timeline is simple: the fix exists, the risk is understood, and every day unpatched is a day attackers can use to close the gap.

Patching Java4Shell as a Team: A Short Checklist

For a single laptop, patching Java4Shell CVE-2026-114938 takes minutes. For a team, the work is finding every JVM first. Use this checklist so nothing is missed:

  1. Inventory first. List every server, laptop, container image and vendor appliance that runs Java, including the JVMs bundled inside third-party apps such as Jira and Jenkins. The vulnerable code is in the runtime, not your application code, so an app you did not write can still put you in scope.
  2. Sort by exposure. Patch internet-facing Java 17, 21, 25 and 27 servers on x86-64 hosts with AVX-512 VBMI CPUs first, then internal services, then laptops and build machines.
  3. Patch in staging, then production. Install the fixed build — 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1 — in a test environment first, run your usual smoke tests, then roll it out. Rebuild every Docker image that bundles Java; pulling the image again matters, because Docker Hub images keep the plain version tag.
  4. Restart everything that runs Java. Replacing the runtime files does not change a JVM that is already running. Restart every Java process, then verify with java -version on the host that serves traffic.
  5. Mitigate what you cannot patch yet. Where a fixed build is not available, start the JVM with -XX:-UseBASE64Intrinsics as a temporary stopgap, restart the JVM, and log it as a temporary measure with an owner and a date to revisit — it is not a permanent fix.
  6. Confirm and record. Keep a short record of each host, its old version, its new version, and the verification result. That record is what turns a rushed patch into an audit trail you can show later.

If you follow that order — inventory, patch the exposed systems first, restart, verify, and mitigate the rest — Java4Shell CVE-2026-114938 becomes a routine update instead of an emergency.

Frequently Asked Questions

What is Java4Shell CVE-2026-114938?

Java4Shell CVE-2026-114938 is a memory corruption flaw in the AVX-512 Base64 decoder of the HotSpot JVM. It can allow an attacker to run code remotely without logging in, on Java 17, 21, 25 and 27 servers with AVX-512 CPUs.

Is Java4Shell CVE-2026-114938 being exploited?

As of November 18, 2026, no exploitation in the wild had been reported, and the CVE was not in the CISA Known Exploited Vulnerabilities catalog. Calif has published a proof-of-concept that triggers the bug, and a second researcher reported building a working exploit, so patching now is urgent.

How do I fix Java4Shell CVE-2026-114938?

Update to the fixed builds: 17.0.21.1, 21.0.13.1, 25.0.5.1, or 27.0.1.1, depending on your Java line. Then restart every Java process and verify with java -version.

What if I cannot update Java right now?

Start the JVM with -XX:-UseBASE64Intrinsics until you can update. This disables the vulnerable Base64 code path. Restart the JVM for the flag to take effect.

Are Java 8 and Java 11 affected?

Standard Java 8 and Java 11 are not affected. The one exception is Oracle's Java 8 Enterprise Performance Pack, which is affected at 8u511b33-perf and fixed in 8u513-perf.

Conclusion: Patch Java4Shell CVE-2026-114938 Now

Java4Shell CVE-2026-114938 is a serious flaw, but the fix is simple: update Java to the November 17, 2026 fixed builds, restart your Java processes, and verify the version. Do not wait for an exploit in the wild. Inventory your JVMs today, patch the affected ones, and use -XX:-UseBASE64Intrinsics as a stopgap where you cannot update yet.

Hoti Technology builds secure websites, mobile apps and AI automation for businesses. If you need help auditing or patching your Java servers, contact us at info@hotitechnology.online or +92 336 9636060.