CVE Advisory

Java4Shell (CVE-2026-114938): Pre-Authentication Heap Overflow Discovered in the Java Runtime

Posted by: David Azria
Java4Shell CVE-2026-114938
Getting your Trinity Audio player ready...

Overview

On November 17, 2026, Oracle and the OpenJDK project shipped fixes for a critical flaw in the Java runtime itself, now known as Java4Shell. Tracked as CVE-2026-114938, it is a heap buffer overflow in the JVM’s hardware-accelerated Base64 decoder that an unauthenticated remote attacker can trigger with a single crafted string.

The flaw was found by Quang Luong of Calif and Albert Yang. Calif rates it CVSS v4.0 9.2 (Critical), while Oracle scores it 8.1 under CVSS v3.1, citing high attack complexity. The name is a deliberate echo of Log4Shell, with one important difference: this time the bug is not in a library an application chose to include. It is in the JVM underneath every Java application.

The Threat

Base64 decoding is everywhere in Java: HTTP Basic authentication headers, JWT tokens, SAML assertions, file uploads. Most of it happens before a user is authenticated. Because the bug sits in the runtime, application-level hardening and dependency scanning do not see it, and a software bill of materials will not list it.

  • CVSS Score: 9.2 (Critical, CVSS v4.0) per Calif; 8.1 (High, CVSS v3.1) per Oracle.
  • Root Cause: Once Java’s Base64 decoder runs hot, the JIT compiler swaps it for an AVX-512 assembly routine. When the input ends in a short padded fragment, the routine computes a negative output length and writes up to 63 bytes past the end of the destination array on the heap.
  • Affected Versions: OpenJDK 17.0.6 and later on the Java 17 line, and all Java 21, 25 and 27 releases before 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. Standard Java 8 and 11 are not affected. End-of-life lines from Java 18 onward carry the same code and will not be fixed.
  • Affected Distributions: The flaw is in shared OpenJDK code, so it reaches Oracle JDK, Eclipse Temurin, Amazon Corretto, Microsoft Build of OpenJDK, Azul Zulu, Red Hat OpenJDK and others.
  • Affected Hardware: Only x86-64 processors with AVX-512 VBMI: Intel Xeon from Ice Lake onward and AMD Zen 4 and later. ARM64 servers, including AWS Graviton, are not affected.
  • Secondary Impact: Even without code execution, the overflow corrupts the heap and crashes the JVM, which makes denial of service against identity providers and build systems cheap.

Real-World Impact

As of November 18, 2026, there are no reports of exploitation in the wild, and CVE-2026-114938 is not in the CISA KEV catalog. That window is unlikely to stay open for long.

Immediate Recommendations

Upgrading the JDK is the only complete fix. Neither Oracle nor OpenJDK has validated a configuration workaround.

  • Upgrade the Java runtime to 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1, or the equivalent fixed build from your JDK vendor, then restart the service so the new runtime loads.
  • Check the runtime each process actually uses. Many products bundle their own JVM, and the java on the PATH is often not the one running.
  • Rebuild container images on a patched JDK base and replace running workloads.
  • Move workloads off end-of-life Java lines, which will not receive a fix.

How XM Cyber Can Help with CVE-2026-114938

Java4Shell is a hard vulnerability to prioritize. Java runs almost everywhere, yet only a subset of those runtimes are truly exposed: the right version, on the right processor, with the fast path enabled, reachable by an attacker. Patching every JVM at once is not realistic. This is exactly the purpose of Continuous Exposure Management: find which instances actually put your business at risk and fix those first.

XM Cyber’s External Attack Surface Management (XM EASM) discovers external-facing Java services, including forgotten and shadow instances. If any are found, the platform maps the end-to-end attack path from the exposed server into the internal network to validate reachability and exploitability, and flags which instances compromise critical assets.

XM Vulnerability Risk Management (VRM) continuously assesses CVE-2026-114938 across internal servers and containers, so teams can see where a vulnerable runtime still lives.


mxcyber

David Azria