Skip to main content
srubin
Staff
Staff
Nov 19, 2026 6:07 AM UTC

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:

  • Versions 17.0.6 and above Java 17 updates. Versions 17.0.0 through 17.0.5 do not contain the vulnerable code.

  • Java 21, 25, and 27 release lines prior to the November 17, 2026 updates.

  • Standard Java 8 and Java 11 are not affected.

 

Oracle Java SE and GraalVM:

  • Java SE 17.0.6 through 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, and 27.0.1.0.3 (and earlier updates on those lines).

  • Java SE 8u511b33-perf (Performance Pack only).

  • GraalVM for JDK 17.0.21.0.3 and 21.0.13.0.3; GraalVM Enterprise Edition 21.3.20.0.3.

 

Hardware requirement:

  • x86-64 CPUs exposing all of avx512f, avx512bw, avx512vbmi, and bmi2. ARM64 hosts and x86-64 CPUs without AVX-512 VBMI are not exploitable.

 

Fixed versions:

  • Oracle Java SE: 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1, and 8u513-perf.

  • Amazon Corretto: 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, and 27.0.1.1.4.

  • Alpine Linux v3.23 and v3.24: openjdk17 17.0.21.1_p2-r0, openjdk21 21.0.13.1_p2-r0, and openjdk25 25.0.5.1_p2-r0.

  • Azul Zulu: 17.70.201, 21.54.201, 25.38.201, and 27.30.201.

  • Eclipse Temurin, Microsoft Build of OpenJDK, and BellSoft Liberica had not published fixed builds as of November 18, 2026.

 

Advisory IDs:

  • ALAS2-2026-4123: Amazon Linux 2, Corretto 17.

  • ALAS2023-2026-3478 through ALAS2023-2026-3481: Amazon Linux 2023, Corretto 17, 21, 25, and 27.

  • RHSB-2026-018: Red Hat security bulletin (no fixed packages yet).

 

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:

 

Distribution

Patch Status

FortiCNAPP Detection

Amazon Linux 2 and 2023 (Corretto)

Patch available

Yes

Alpine v3.23 and v3.24

Patch available

Yes

Alpine v3.15 to v3.22

No fix yet

Yes, apply interim mitigation

Debian 12 and later

No fix yet

Yes, apply interim mitigation

Ubuntu 22.04 and later

No advisory yet

Yes, apply interim mitigation

Red Hat Enterprise Linux (RHEL) 6 to 9

No fix yet

Yes, apply interim mitigation

SUSE / openSUSE, Oracle Linux, AlmaLinux, Rocky Linux, Wolfi

No advisory yet

Not yet, apply interim mitigation

 

Check whether a host is exposed:

 

# All four flags present = the CPU can reach the vulnerable code pathngrep -o -w -E 'avx512f|avx512bw|avx512vbmi|bmi2' /proc/cpuinfo | sort -unn# Java runtime version in usenjava -version

 

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:

 

# Add to the JVM launch optionsn-XX:-UseBASE64Intrinsicsnn# Or set in the service environmentnJAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics"

 

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.

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024