Skip to content
Memory corruption Write-up Advanced

Java4Shell (CVE-2026–114938): the Oracle Java / OpenJDK pre-auth RCE, and how to hunt for it

A heap out-of-bounds write in the AVX-512 VBMI HotSpot intrinsic for Base64 decoding allows a malformed Base64 value to corrupt heap memory, potentially leading to unauthenticated remote code execution in default configurations of several Java applications.

Mario Velasco Follow

Published on medium.com

What happened, who is affected, the fixed versions, and how to hunt, as of the morning of November 18, 2026.

Mario Velasco, on medium.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

Impact

Calif says it reached unauthenticated remote code execution in default configurations of Keycloak, Atlassian Jira and Confluence, JFrog Artifactory, Jenkins and PingFederate, plus post-auth RCE in Kafka, Solr, Elasticsearch, Gerrit and Spinnaker, a Heartbleed-style memory leak, and a client-side exploit against Java programs that connect to a malicious TLS server; Datadog Security Labs cautions…

What the attacker needed

Java 17.0.6+ or 21/25/27 on x86-64; CPU with AVX-512 VBMI; Attacker-controlled Base64 input

The fix

Oracle fixed builds are [redacted], [redacted], [redacted] and [redacted] (only Oracle builds ending in .1 are patched), plus 8u513 for the 8u511b33-perf build; if you cannot patch now, start x86–64 JVMs with -XX:-UseBASE64Intrinsics or -XX:UseAVX=2.

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.

A Java program uses a special fast routine to decode Base64 data, which is a way to represent binary data as text. A bug in that routine lets a crafted input write data past the end of a memory buffer, corrupting nearby memory. An attacker could use this to run their own code on the server, though the article notes that crashing the service is easier than achieving reliable code execution.

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.