Java4Shell (CVE-2026-114938) Analysis and Remediation
A heap overflow in OpenJDK's Base64 decoder intrinsic on AVX-512 VBMI CPUs allows a crafted 65-byte input to write past a buffer, potentially leaking memory or enabling unauthenticated remote code execution. The flaw affects Java 17.0.6 and later on the 17, 21, 25 and 27 lines, and no exploitation has been reported in the wild.
Published on contrastsecurity.com
Java4Shell is a heap overflow in the Base64 decoder inside OpenJDK 17.0.6 and later, rated 9.2 under CVSS 4.0 and disclosed by Calif on November 17, 2026. It lives in the Java runtime, so SCA and SAST cannot see it.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a miscalculation in the store mask of the hand-written AVX-512 VBMI Base64 intrinsic, causing an out-of-bounds write when processing a 65-byte padded input.
Impact
A failed attempt usually crashes the JVM, while a successful one could lead to unauthenticated remote code execution; no active exploitation has been reported.
What the attacker needed
OpenJDK 17.0.6+ on lines 17, 21, 25 or 27; x86-64 CPU with AVX-512 VBMI; untrusted Base64 reaches the decoder
The fix
Oracle has shipped fixed builds ([redacted], [redacted], [redacted], [redacted]); other vendors should be updated once they release builds naming the CVE, and a runtime agent or disabling the intrinsic can mitigate in the meantime.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Java's Base64 decoder is used to read encoded data like login tokens. On certain modern CPUs, a special fast version of this decoder has a bug: a carefully crafted short input can make it write data beyond the intended memory area. This could crash the program or, in the worst case, let an attacker run their own code on the server.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.