Java4Shell: Critical RCE in OpenJDK Base64 Decoder
Score: 8/10

Java4Shell: Critical RCE in OpenJDK Base64 Decoder

A memory-corruption vulnerability (CVE-2026-114938) in OpenJDK's Base64 decoder allows unauthenticated remote code execution on x86-64 systems supporting AVX-512 VBMI instructions.

Executive Summary

Java4Shell (CVE-2026-114938) is a critical memory-corruption vulnerability in the OpenJDK Base64 decoder, carrying a CVSS 4.0 score of 9.2. Discovered by researchers at Calif, the flaw originates in the hand-rolled assembly code used for x86-64 Base64 intrinsics. Specifically, a bug in the handling of the padded tail results in an out-of-bounds (OOB) write on the heap. This allows unauthenticated attackers to read sensitive memory—similar to the Heartbleed vulnerability—and achieve full remote code execution (RCE).

The attack chain involves triggering the C2 JIT compiler to activate the vulnerable intrinsic, followed by sending a malformed Base64 string (e.g., 64 'A' characters followed by '=') to trigger the OOB write. By utilizing "Remote Heap Feng Shui," attackers can overwrite buffer lengths to create arbitrary read/write primitives. The vulnerability is confirmed to affect widely deployed enterprise applications including Keycloak, Atlassian Jira/Confluence, Jenkins, and Elasticsearch in their default configurations.

This vulnerability is hardware-dependent, affecting only x86-64 processors with AVX-512 VBMI support (e.g., Intel Ice Lake/Sapphire Rapids, AMD Zen 4). Given the prevalence of Java in banking, aviation, and national security, organizations should prioritize patching immediately. If patching is not feasible, specific JVM flags can be applied to disable the vulnerable intrinsics.

Key Details

Threat Name

Java4Shell

Affects

OpenJDK 17.0.6 or newer, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Oracle Java SE

Adversary

—

MITRE Techniques

—

Malware/Tools

None identified

Report Score

8out of 10
Quality Score
Good
IOC Quality4
TTP Details9
Detection Guidance6
Enterprise Relevance9
Clarity & Structure10
Technical Depth10

Sources