Skip to content
Memory corruption Write-up Advanced

CVE-2026-114938: Reported Critical Pre-authentication Remote Code Execution in Java 17

A heap-based buffer overflow in the hardware-accelerated Base64 decoder of OpenJDK's HotSpot JVM can be triggered by malformed Base64 input, allowing an unauthenticated remote attacker to crash a Java application or potentially execute code with the privileges of its Java process. Exploitation requires specific CPU features and JVM settings, and turning the corruption into code execution depends on the application and memory layout.

Rapid7 Follow

Published on rapid7.com

CVE-2026-114938: Reported Critical Pre-authentication Remote Code Execution in Java 17

Rapid7, on rapid7.com

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

The hardware-accelerated Base64 decoder miscalculates the remaining output length for a malformed final group, producing a negative length and a wider memory write than the destination buffer can hold.

Impact

An unauthenticated remote attacker could crash a Java application or, with additional work and depending on the application, JVM build and memory layout, execute code with the privileges of the Java process; the flaw only affects x86-64 systems with AVX-512 VBMI and the Base64 intrinsic enabled.

What the attacker needed

X86-64 CPU with AVX-512 VBMI; Base64 intrinsic enabled in JVM; Application decodes untrusted Base64 input

The fix

The OpenJDK fix hands final Base64 groups shorter than four bytes to the ordinary Java decoder, and organisations should apply their runtime vendor's patched build and restart affected JVMs; disabling Base64 intrinsics is a temporary mitigation.

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 often decode Base64, a way of turning binary data into text, for things like login credentials. A bug in a fast, hardware-specific version of that decoder can write past the end of a memory buffer when it receives malformed input. An attacker who can send such input to a vulnerable service might crash it or, in some cases, 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.

More by Rapid7

View all

4 more disclosed reports, best first.

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.