How does FortiCNAPP protect from CVE-2026-114938, OpenJDK 'Java4Shell' Remote Code Execution vulnerability
Description | This article describes a Remote Code Execution (RCE) vulnerability in OpenJDK (CVE-2026-114938), codenamed 'Java4Shell', that can allow an unauthenticated attacker to execute code inside a Java application by sending it a crafted Base64 string. The vulnerability was disclosed on November 17, 2026, by researchers at Calif.io, alongside fixes from Oracle and the OpenJDK project. Oracle rates it CVSS 3.1 8.1 (High); the researchers rate it CVSS 4.0 9.2 (Critical). Â The vulnerability exists in the HotSpot JVM's x86-64 Base64 intrinsic, the hardware-accelerated decoder that the C2 JIT compiler substitutes for java.util.Base64 once an application has called it often enough. The fast path uses AVX-512 VBMI instructions. When the input ends in the padding character "=", an output-length calculation underflows and the decoder writes up to 64 bytes past the end of its destination buffer, corrupting the Java heap. Only hosts whose CPUs support AVX-512 VBMI (recent Intel Xeon from Ice Lake onward, AMD Zen 4 and newer) are exploitable; ARM64 is not affected. Â Because applications routinely decode Base64 before checking credentials (HTTP Basic authentication headers, SAML artifacts, tokens, file uploads), the flaw is reachable without logging in. Calif reports demonstrating unauthenticated code execution against Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate, and is withholding those exploits for now. Independent labs have reproduced JVM crashes and memory disclosure from the public proof of concept, but not code execution. As of November 18, 2026, no exploitation in the wild has been reported, and the CVE is not in the CISA KEV catalog. | ||||||||||||||||||||||||
Scope | Affected versions: Â OpenJDK:
 Oracle Java SE and GraalVM:
 Hardware requirement:
 Fixed versions:
 Advisory IDs:
 Attack Vector: An unauthenticated network request carrying a crafted Base64 value, sent to a Java application that decodes it after the decoder has been JIT-compiled. Potential Impact: Remote Code Execution, JVM crash (denial of service), and heap memory disclosure.  In-depth information can be found at: | ||||||||||||||||||||||||
Solution | FortiCNAPP automatically detects affected hosts and container images with vulnerable Java runtimes installed as OS packages (such as java-17-amazon-corretto, openjdk-17, and openjdk17) via the Vulnerability Management Component. FortiCNAPP will also detect Potentially Compromised Hosts exhibiting suspicious behavior from Java processes via Composite Alerts and Polygraph. Â To mitigate this vulnerability, administrators should update the Java runtime to a fixed version from their vendor and restart every Java service. If no fixed build is available yet for your distribution or JDK vendor, follow our interim mitigation guide below. Â Patch Availability: Â
 Check whether a host is exposed:   Patching Guidance (where patches are available):  Use your system's package manager, or your JDK vendor's distribution channel, to upgrade the Java runtime to a fixed version, then restart every Java service on the host. For containers, rebuild images on a patched base image and redeploy; updating the host does not fix the JDK inside an image.  Interim Mitigation (where patching cannot be applied immediately, or no patch is available yet):  Disabling the Base64 intrinsic removes the vulnerable code path. Add the flag to the launch options of each Java service, or set it in the service's environment (systemd unit, container spec) so every JVM picks it up:   Note: This flag comes from the researchers and has been confirmed in independent lab testing, but it is not mentioned in the Oracle or OpenJDK advisories, and it may reduce Base64 performance. Do not use -XX:DisableIntrinsic=_base64_decodeBlock on its own, as it prevents the JVM from starting. Vulnerable Java versions on ARM64 hosts or on CPUs without AVX-512 VBMI are not exploitable, but should still be updated. Internet-facing identity providers, CI servers, and collaboration tools should be prioritized. Bursts of IllegalArgumentException from java.util.Base64$Decoder, unexplained hs_err_pid crash files, or repeated JVM restarts may indicate exploitation attempts. |
