Java4Shell: Critical Memory Corruption in OpenJDK Base64 Decoder
Score: 8/10

Java4Shell: Critical Memory Corruption in OpenJDK Base64 Decoder

A critical memory-corruption vulnerability (CVE-2026-114938) in OpenJDK's x86-64 Base64 decoder allows remote attackers to achieve RCE or heap data disclosure.

Executive Summary

Java4Shell (CVE-2026-114938) is a critical vulnerability (CVSS 9.2) in the OpenJDK Base64 decoder, specifically affecting the x86-64 hardware-accelerated intrinsic routines. The vulnerability arises from an underflow in the hand-rolled assembly code using AVX-512 VBMI instructions, leading to an out-of-bounds heap write. This allows unauthenticated attackers to overwrite heap memory or leak sensitive data from the Java heap, such as PII and private keys, similar to the Heartbleed vulnerability.

Technically, the attack targets the JIT compiler's optimized 'intrinsic' routines. When a specific malformed Base64 input (64 'A' characters followed by '=') is processed, it triggers a 64-byte out-of-bounds write past the allocated buffer. Attackers utilize 'Remote Heap Feng Shui' to align memory objects, upgrading this limited write into a linear write primitive to hijack application logic or reach the JVM Code Cache for full code execution.

This vulnerability is highly significant due to the ubiquity of Java in enterprise and critical infrastructure. Successful pre-authentication RCE has been demonstrated in major products including Keycloak, Atlassian Jira, Jenkins, and JFrog Artifactory. Organizations using OpenJDK on modern x86-64 hardware (Intel Ice Lake+ or AMD Zen 4+) should prioritize patching immediately.

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 Guidance7
Enterprise Relevance9
Clarity & Structure10
Technical Depth10

Sources