Technical Guide Explains Java4Shell’s Root Cause, Exposure, and Mitigation

Summary
Java4Shell (CVE-2026-114938) is an AVX-512 HotSpot Base64 out-of-bounds write. The article explains its trigger, fixed builds, exposure checks and mitigations; researchers demonstrated RCE, but none was reported in the wild as of Nov. 17, 2026.
Key points
- The flaw is in HotSpot’s AVX-512 Base64 decoder and can write 62 or 63 bytes beyond a Java heap array under specific conditions.
- The article traces the root cause to incorrect tail handling: a padding-related underflow leaves the output mask uncleared, causing a 64-byte store.
- Exposure requires an affected Java runtime, an x86-64 CPU with AVX-512 VBMI and related features, specific JVM settings, and attacker-controlled input reaching the Basic or URL decoder.
- Oracle released fixed builds on November 17, 2026; the article lists affected and fixed versions and identifies JDK-8393212 as the fix.
- If patching is not immediately possible, the article recommends starting the JVM with -XX:-UseBASE64Intrinsics and restarting it; it notes Oracle has not published this as an official workaround.
- Qualys says TruRisk Eliminate can apply the mitigation selectively on eligible Linux and Windows hosts, report effective settings, and roll back the change; containers require separate configuration.
- Researchers demonstrated a pre-authentication RCE chain, but the article says no in-the-wild exploitation had been reported as of November 17, 2026.
Article Details
- Attack Vectors
- A malformed Base64 value reaching the Basic or URL decoder can trigger a heap out-of-bounds write in the HotSpot AVX-512 decoder on affected x86-64 systems. The article says researchers demonstrated pre-authentication RCE through Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate.
- A Java client may be exposed when it connects over TLS to a malicious server; researchers reportedly demonstrated client compromise through this route.
- The article reports that exploitation requires an affected Java runtime, the specified AVX-512 CPU features, UseAVX=3, UseBASE64Intrinsics enabled, and attacker-controlled input reaching the decoder. It says successful exploitation has not been reported in the wild as of November 17, 2026.
- Defensive Notes
- Upgrade to a fixed build: Oracle Java 17.0.21.1, 21.0.13.1, 25.0.5.1, or 27.0.1.1; Oracle Java SE 8 Enterprise Performance Pack 8u513-perf; or a vendor build containing JDK-8393212.
- If patching is not immediately possible, start the JVM with -XX:-UseBASE64Intrinsics and restart it. The article describes this as a mitigation, not an Oracle-published workaround.
- Check each Java runtime for the required CPU features and JVM flags. The article cautions that /proc/cpuinfo is not a reliable cross-platform check.
- CISA's reported recommendations include validating Base64 input at the application boundary, rejecting padded input whose length is not a multiple of four, and restricting unauthenticated access. The article cautions that input-size limits alone do not prevent the described trigger.
- For containers, set the mitigation flag in the image or pod specification; the article says TruRisk Eliminate does not reach containers.
MITRE ATT&CK
T1190 · Exploit Public-Facing ApplicationResearchers reportedly demonstrated pre-authentication remote code execution by sending crafted input to vulnerable Java decoders reachable through applications including Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate.T1203 · Exploitation for Client ExecutionResearchers reportedly demonstrated a Java client being compromised after connecting over TLS to a malicious server that supplied input triggering the vulnerable decoder.
CVE
People
Vendors
Products
Atlassian JiraCalif reported it and showed pre-auth RCE in Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate.ConfluenceCalif reported it and showed pre-auth RCE in Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate.HotSpot JVMJava4Shell (CVE-2026-114938) is a heap out-of-bounds write in HotSpot’s AVX-512 Base64 decoder on x86-64.Java SEOracle Java SE / OpenJDK 17 17.0.6 to 17.0.21 17.0.21.1JenkinsCalif reported it and showed pre-auth RCE in Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate.JFrog ArtifactoryCalif reported it and showed pre-auth RCE in Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate.KeycloakCalif reported it and showed pre-auth RCE in Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate.OpenJDKOracle Java SE / OpenJDK 17 17.0.6 to 17.0.21 17.0.21.1PingFederateCalif reported it and showed pre-auth RCE in Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate.TruRisk EliminateMitigate Java4Shell with TruRisk Eliminate
