Skip to content
Memory corruption Write-up Advanced

CVE-2026-114938 OpenJDK RCE (Java4Shell): Everything You Need to Know

The optimised AVX-512 Base64 decoding code in OpenJDK miscalculates output bounds when input has an unexpected number of trailing padding characters, causing a heap out-of-bounds write. The text claims remote unauthenticated attackers could overwrite adjacent object metadata and achieve remote code execution on affected x86-64 hosts.

Tomer Schwartz Follow

Published on wiz.io

On November 17, 2026, details emerged exposing a critical remote code execution (RCE) vulnerability in OpenJDK, tracked as CVE-2026-114938 (dubbed "Java4Shell") with a CVSSv4.0 score of 9.2. The bug exists in the optimized assembly code handling AVX-512 Base64 decoding, allowing remote unauthenticated attackers to…

Tomer Schwartz, on wiz.io

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 the AVX-512 Base64 intrinsic computes the output length without correctly accounting for unexpected trailing padding, so the length underflows and the write goes out of bounds.

Impact

The text claims remote unauthenticated code execution is feasible against common Java applications, though it notes generalising an exploit to an arbitrary target is difficult and that WAFs may block some exploits but cannot cover all code paths.

What the attacker needed

OpenJDK 17.0.6 or later; x86-64 CPU with AVX-512 VBMI; attacker-controlled input reaches Base64 decode

The fix

It should be fixed by upgrading to the latest OpenJDK version containing the patch, or as a workaround disabling Base64 intrinsics or AVX-512 execution via JVM flags.

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 programs sometimes use a fast, hand-written routine to decode Base64 text, which is a way of packing binary data into plain characters. On certain modern processors that routine miscounts how much room the output needs when the input ends with an odd number of padding characters, so it writes past the end of a memory buffer. Writing past a buffer can corrupt nearby data and, in the worst case, let an attacker run their own code.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.