Technology1 min read

Java4Shell: RCE in OpenJDK when processing Base64

By · Published by Everything Blog

In short

The vulnerability, tracked as CVE-2026-114938, stems from miscalculated output lengths in custom AVX-512 VBMI assembly routines that write past allocated memory buffers when handling malformed input strings. While modern builds succumb to payloads containing 64 specific characters followed by an equals sign, older releases like OpenJDK 17 require a 128-character sequence to trigger the failure. In default configurations, researchers successfully validated exploit paths against critical infrastructure software before any authentication occurred.

Key points

  • Unauthenticated remote code execution was verified against default deployments of Keycloa…: Unauthenticated remote code execution was verified against default deployments of Keycloak, Jenkins, and Atlassian tools.
  • Systems such as Apache Kafka, Elasticsearch, and Netflix Spinnaker are susceptible to pos…: Systems such as Apache Kafka, Elasticsearch, and Netflix Spinnaker are susceptible to post-authentication code execution attacks.
  • Legacy installations running OpenJDK 17 remain vulnerable but require a longer sequence o…: Legacy installations running OpenJDK 17 remain vulnerable but require a longer sequence of 128 characters to activate the bug.

Sources checked by our analysis pipeline: 1

A memory-corruption vulnerability in OpenJDK's Base64 decoder. A remote attacker with no credentials can overwrite heap memory, read it in the style of Heartbleed, and reach remote code execution.

After we disclosed PHP2Shell, we realized many people didn't know what PHP was. So we decided to go after something a little more familiar: Java.

Today, we are disclosing Java4Shell (CVE-2026-114938), a memory-corruption vulnerability in OpenJDK's Base64 decoder. OpenJDK is the most popular Java runtime. Under CVSS 4.0, this vulnerability scores 9.2 out of 10 (CRITICAL).

While PHP is a high-level web technology, Java sits much deeper. Java is the world's third most popular programming language, powering 90% of Fortune 500 companies. It is the beating heart of the modern economy. Banking, aviation, telecommunications, nearly every critical sector runs on Java, including national security systems.

Base64 is a very common way of representing binary data as text. It is used in authentication protocols, to encode file uploads, and to deliver network messages. To decode Base64 faster, OpenJDK uses specialized x86-64 CPU instructions to process many bytes at once. We discovered a…

Technology