The Spectrum Dispatch News

technology

Java4Shell: Critical RCE vulnerability in OpenJDK Base64 decoder disclosed

Researchers disclosed a memory-corruption flaw in OpenJDK's Base64 decoder that allows remote code execution with no credentials. The vulnerability affects major applications

Java4Shell: Critical RCE vulnerability in OpenJDK Base64 decoder disclosed

Researchers at Calif have disclosed Java4Shell (CVE-2026-114938), a memory-corruption vulnerability in OpenJDK’s Base64 decoder that scores 9.2 out of 10 under CVSS 4.0 scoring.

Java4Shell: Critical RCE vulnerability in OpenJDK Base64 decoder disclosed

According to the disclosure, a remote attacker with no credentials can exploit malformed Base64 input to overwrite heap memory and achieve remote code execution. The vulnerability can be triggered by as little as 64 ‘A’ characters followed by a single equals sign (or 128 ‘A’ characters in older OpenJDK 17).

OpenJDK is the most widely deployed Java runtime. Java powers approximately 90% of Fortune 500 companies and is used across critical sectors including banking, aviation, telecommunications, and national security systems.

The flaw exists in hand-rolled assembly code designed to accelerate Base64 decoding using specialized AVX-512 VBMI instructions on x86-64 processors. When processing the final characters of malformed input, the code miscalculates output length as a negative value, resulting in a 64-byte write that extends 62 bytes past the allocated array boundary. Although Java eventually rejects the input, neighboring heap objects may already be corrupted by that point.

Researchers demonstrated pre-authentication remote code execution in Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, and PingFederate. Post-authentication RCE was demonstrated in Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, and Spinnaker. The vulnerability also affects applications built on Apache Struts and Spring Boot frameworks.

According to the disclosure, the vulnerability was discovered and weaponized using AI assistance. Researcher Quang Luong required approximately one hour to discover the vulnerability and two additional hours to develop the first working exploit, with a total token cost under $200.

The researchers note that Base64 is commonly used in authentication protocols, file uploads, and network message delivery, potentially exposing the vulnerable decoder in many applications through ordinary features. One researcher also demonstrated a client-side exploit where a Java program opening a TLS connection to a malicious server could be compromised even if it exposed no service of its own.

Key facts

  • Memory-corruption vulnerability in OpenJDK’s Base64 decoder scores 9.2/10 (CRITICAL) under CVSS 4.0
  • Can be triggered by 64 ‘A’ characters followed by ‘=’ in affected OpenJDK versions
  • Pre-auth RCE demonstrated in Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate
  • Post-auth RCE demonstrated in Kafka, Solr, Elasticsearch, Gerrit, and Spinnaker
  • Flaw exists in hand-rolled assembly code using AVX-512 VBMI CPU instructions
  • Affects Java, which powers ~90% of Fortune 500 companies and critical sectors including banking, aviation, and national security

Sources

← All posts