Java4Shell OpenJDK Heap Overflow Can Enable Pre-Auth RCE in Java Products

· Original article ↗

Summary

Java4Shell (CVE-2026-114938) is an AVX-512 VBMI-dependent OpenJDK Base64 heap overflow. Fixes are available and exploitation attempts have been observed; a reported Confluence compromise remains unconfirmed. The article details mitigations and detection.

Key points

  • The flaw is in HotSpot's AVX-512 VBMI Base64 decoder: malformed padded input can cause an out-of-bounds heap write.
  • Exposure requires an affected Java build, an x86-64 CPU with AVX-512 VBMI, and attacker-controlled Base64 reaching the decoder; ARM64 is not affected.
  • Calif demonstrated pre-authentication remote code execution in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate. No public RCE exploit was reported as of November 19, 2026.
  • GreyNoise recorded 125 trigger-shaped requests from five IP addresses by November 19, with no successful intrusions against its sensors. Hexastrike reported a Confluence compromise attributed to Java4Shell, but the link was not independently confirmed.
  • Fixed builds are available for affected Java lines. The article recommends patching and restarting JVMs, or temporarily disabling the accelerated Base64 path with -XX:-UseBASE64Intrinsics.
  • The article provides Snort and SIEM hunting guidance for decoder exceptions, JVM crash files, and suspicious child processes, while warning that matching queries cannot rule out exploitation.

Article Details

Vulnerability Types
  • Heap overflow
Severity
OpenJDK and Oracle rate it 8.1 under CVSS 3.1; Calif rates it 9.2 under CVSS 4.0; Red Hat rates its impact Critical.
Affected Versions
  • Java 27: 27.0.1.0.3 and earlier
  • Java 25: 25.0.5.0.3 and earlier
  • Java 21: 21.0.13.0.3 and earlier
  • Java 17: 17.0.6 to 17.0.21.0.3
  • Oracle Java 8 Performance Pack: 8u511b33-perf
Exploitation Status
active
Exploit Availability
claimed_or_private
Patch Status
available
Workarounds
  • Start the JVM with -XX:-UseBASE64Intrinsics.
  • On x86-64, -XX:UseAVX=2 also disables the vulnerable path.
  • At the application boundary, validate Base64 input and reject values ending in = whose length is not a multiple of four.

MITRE ATT&CK

CVE

Vendors

Products

Apache KafkaApache Kafka broker, Apache Solr, Elasticsearch, Gerrit, SpinnakerApache SolrApache Kafka broker, Apache Solr, Elasticsearch, Gerrit, SpinnakerApache StrutsCalif also showed code execution in sample Apache Struts and Spring Boot applications, and described a client-side variant where a Java program is compromised by connecting to a malicious TLS server.Atlassian JiraImpact: pre-authentication remote code execution demonstrated in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate.ConfluenceAs of 19 November 2026, exploitation attempts had been seen in the wild, and one security firm had reported, without independent confirmation, a compromised Confluence server.ElasticsearchApache Kafka broker, Apache Solr, Elasticsearch, Gerrit, SpinnakerGerritApache Kafka broker, Apache Solr, Elasticsearch, Gerrit, SpinnakerHotSpot JVMJava4Shell (CVE-2026-114938) is a heap overflow in the hardware-accelerated Base64 decoder of OpenJDK's HotSpot JVM.JavaCalif, the research firm that found the bug, demonstrated pre-authentication remote code execution against six widely deployed Java products in their default configurations.JenkinsImpact: pre-authentication remote code execution demonstrated in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate.JFrog ArtifactoryImpact: pre-authentication remote code execution demonstrated in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate.KeycloakImpact: pre-authentication remote code execution demonstrated in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate.OpenJDKJava4Shell (CVE-2026-114938) is a heap overflow in the hardware-accelerated Base64 decoder of OpenJDK's HotSpot JVM.PingFederateImpact: pre-authentication remote code execution demonstrated in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate.SpinnakerApache Kafka broker, Apache Solr, Elasticsearch, Gerrit, SpinnakerSpring BootCalif also showed code execution in sample Apache Struts and Spring Boot applications, and described a client-side variant where a Java program is compromised by connecting to a malicious TLS server.

Tools

Related Articles