Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Java

News Analysis

Java4Shell Vulnerability Enables Remote Code Execution in OpenJDK

A critical Java vulnerability, Java4Shell, allows unauthenticated remote code execution. Oracle has released patches, and Calif has suggested mitigation steps.

JavaDevOps / CIAtlassianWebIdentity & authVulnerabilities

Key points

  • A critical vulnerability named Java4Shell was found in OpenJDK, allowing unauthenticated remote code execution.
  • The flaw, CVE-2026-114938, is a memory-corruption issue in Java's Base64 decoding feature.
  • Oracle recommends applying the security patches, and Calif suggests temporary JVM flag workarounds for those who cannot update immediately.

A critical vulnerability named Java4Shell was found in OpenJDK, enabling unauthenticated remote code execution on several enterprise applications. The flaw, assigned CVE-2026-114938, is a memory-corruption issue in Java's Base64 decoding feature that can lead to remote code execution or data leaks. Security researchers from Calif discovered the vulnerability and disclosed it on Tuesday, rating it critical with a CVSS 4.0 score of 9.2. Oracle classified the same vulnerability as high severity with a CVSS 3.1 score of 8.1. The vulnerability affects OpenJDK 17.0.6 and newer versions, as well as Java distributions based on this code, including Oracle Java SE, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, and Red Hat OpenJDK. The flaw is caused by a bug in Java's Base64 decoder, which can be exploited by specially crafted data to overwrite memory sections. Researchers say the vulnerability can be triggered by a string of 64 'A' characters followed by an equals sign, though older versions require 128 'A's with the same ending. The researchers were able to achieve remote code execution on several widely used Java-based applications with default settings, including Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate. Authenticated remote code execution was also demonstrated against Apache Kafka Broker, Solr, Elasticsearch, Gerrit, and Spinnaker. The flaw was also tested against applications built with Apache Struts and Spring Boot frameworks. The researchers noted that the vulnerability does not have a universal exploit and requires application-specific methods to deliver malicious Base64 data. The vulnerability depends on the use of the AVX-512 decoding function, which is only available on x86-64 processors with AVX-512 VBMI capabilities. The flaw was discovered by Quang Luong, who used OpenAI's Codex AI assistant to find it during an audit of OpenJDK's code. Luong identified the vulnerability in about an hour and created an initial working exploit within two hours, with an AI cost of under $200. AI tools also assisted in developing application-specific exploitation methods. A proof-of-concept was published showing the memory corruption but no weaponized exploits were released against the affected applications. Oracle released patches for CVE-2026-114938 on November 17 as part of its November Critical Security Patch Update, which fixed 655 vulnerabilities across its products. The company advises users to install the latest security updates promptly. For those unable to update immediately, Calif suggests disabling the hardware-accelerated Base64 decoding by using the -XX:-UseBASE64Intrinsics option when launching OpenJDK. Administrators can also use the -XX:UseAVX=2 flag to disable AVX-512 instructions on x86-64 systems. These are temporary workarounds, and developers are encouraged to update Java runtimes to the latest version.

What to do

  1. Install the latest security updates for OpenJDK as soon as possible.
  2. Disable hardware-accelerated Base64 decoding using the -XX:-UseBASE64Intrinsics option.
  3. Use the -XX:UseAVX=2 flag to disable AVX-512 instructions on x86-64 systems.
  4. The sources do not list application-specific mitigation strategies as a recommended step.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

BleepingComputerbleepingcomputer.com

“Critical Java4Shell flaw allows RCE attacks on major Java applications”

A critical vulnerability dubbed Java4Shell in OpenJDK, the open-source implementation of Java, can allow unauthenticated attackers to remotely execute code on popular enterprise applications, including Jenkins, Atlassian Jira, Confluence, and Keycloak.

Also reported by

More on this topic