Java4Shell: RCE via the Base64 decoder in OpenJDK

Java4Shell: RCE via the Base64 decoder in OpenJDK
Researcher Quang Luong from Calif published an analysis of Java4Shell (CVE-2026-114938) — a memory corruption vulnerability in OpenJDK that can allow unauthenticated remote code execution when an application processes attacker-controlled Base64 data.
The root cause is a bug in HotSpot's optimized Base64 decoder (Base64 intrinsic), used after C2 JIT compilation on x86-64 processors with AVX-512 VBMI. Malformed Base64 padding can trigger an out-of-bounds write of 62 bytes.
Affected releases include unpatched OpenJDK 17 builds starting with 17.0.6, vulnerable versions in the Java 21, 25, and 27 branches, and Oracle Java 8 Enterprise Performance Pack. ARM64 processors are not affected.
Remote exploitation requires JIT warm-up, control over object placement in the Java heap, and specially crafted requests.
The public PoC performs 200,000 decodings for JIT warm-up, then processes a malformed Base64 string into a 4,096-byte output array. The REPRODUCED output confirms that 62 bytes (offsets 50–111) were overwritten beyond the expected decoded output, but within the allocated array. The PoC demonstrates a write error, not RCE.
Fixes were released on November 17, 2026.
Vulnerabilities
Vendors
Products
More