Home › Intelligence › Brief
VULNERABILITY BRIEF🟠 High Vulnerability

Critical Java4Shell (CVE‑2026‑114938) Heap Out‑of‑Bounds Write Enables Pre‑Auth RCE in Java Runtime

Java4Shell (CVE‑2026‑114938) is a heap out‑of‑bounds write in the HotSpot JVM’s AVX‑512 Base64 decoder that allows unauthenticated remote code execution in vulnerable Java applications. Oracle has released patched builds, and a temporary mitigation exists via a JVM flag. The flaw highlights the need for robust patch management and runtime configuration controls for audit readiness.

LiveThreat™ Intelligence · 📅 November 21, 2026· 📰 blog.qualys.com
🟠
Severity
High
VU
Type
Vulnerability
🎯
Confidence
High
🏢
Affected
2 sector(s)
✅
Actions
4 recommended
📰
Source
blog.qualys.com

Critical Java4Shell (CVE‑2026‑114938) Heap Out‑of‑Bounds Write Enables Pre‑Auth RCE in Java Runtime

What It Is — Java4Shell (CVE‑2026‑114938) is a heap out‑of‑bounds write in HotSpot’s AVX‑512 Base64 decoder on x86‑64 CPUs. The flaw can be triggered by a crafted Base64 payload, allowing an unauthenticated attacker to achieve remote code execution in vulnerable Java applications such as Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate. Researchers have demonstrated pre‑auth RCE; no public exploitation has been observed as of 17 Nov 2026. CISA issued an emergency alert urging immediate patching. Oracle released fixed builds on 17 Nov 2026 (e.g., 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1) and the vulnerability can be temporarily mitigated by disabling the AVX‑512 Base64 intrinsic (-XX:-UseBASE64Intrinsics).

Java4Shell (CVE‑2026‑114938) is a heap out‑of‑bounds write bug in HotSpot’s AVX‑512 Base64 decoder that affects x86‑64 systems. The vulnerability was reported by the security firm Calif, which demonstrated pre‑authentication remote code execution against a range of Java‑based services, including Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate. As of 17 November 2026, no instances of exploitation in the wild have been observed, but the U.S. Cybersecurity and Infrastructure Security Agency (CISA) issued an alert on the same day urging organizations to apply patches immediately.

The recommended response is to upgrade to one of Oracle’s fixed builds—17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1—or to any vendor‑supplied build that incorporates JDK‑8393212. For environments that cannot patch right away, the JVM can be started with the flag ‑XX:-UseBASE64Intrinsics, after which the process should be restarted. The flaw only manifests on CPUs that support AVX‑512 VBMI; ARM64 processors are not vulnerable. Qualys customers are advised that the same “step 2” flag can be deployed via TruRisk Eliminate, targeting only the affected hosts and allowing a one‑click rollback.

Oracle released the patched binaries on 17 November 2026, while the October releases remain vulnerable. The vulnerable range includes Oracle Java SE / OpenJDK 17 versions 17.0.6 through 17.0.21 (fixed in 17.0.21.1), 21 versions below 21.0.13.1 (fixed in 21.0.13.1), 25 versions below 25.0.5.1 (fixed in 25.0.5.1) and 27 versions below 27.0.1.1 (fixed in 27.0.1.1). End‑of‑life OpenJDK releases (18‑20, 22‑24, 26) have no fix and must be migrated to a supported line. Oracle Java SE 8 Enterprise Performance Pack 8u511‑perf is patched in 8u513‑perf, and GraalVM for JDK 17/21 and GraalVM Enterprise 21.3 receive the same updates. The advisory notes that distribution packages built before the fix—such as Ubuntu’s 17.0.21.0.3 and Oracle Linux’s 17.0.21—remain vulnerable even if their version strings appear current.

The attack chain relies on an attacker controlling a Base64‑decoded value. Researchers were able to reach the pre‑auth condition through authentication mechanisms in Keycloak, Jira, Confluence, Artifactory and Jenkins, and after login in Kafka, Solr, Elasticsearch, Gerrit and Spinnaker; a Java client that opens a TLS connection to a malicious server is also exposed. Once the JVM’s AVX‑512 decoder is hot, the attacker feeds a payload consisting of 64 valid Base64 characters plus a single “=” (or 128 characters plus “=” on older 17 builds). The JVM must detect AVX‑512 VBMI and AVX‑512 BW, have the intrinsic enabled, and receive input longer than 128 characters. The stub’s tail‑handling logic then miscalculates the output size, causing 62‑63 bytes to be written past the destination array on the heap. Researchers showed that grooming the heap—using G1 regions and thread‑local allocation buffers—can turn this write into code execution, while an unsuccessful attempt results in a denial‑of‑service. The root cause lies in the vector decoder generated by generate_base64_decodeBlock; a missing bounds check allowed a tail of 1‑3 characters ending in “=” to produce a negative index that became 255, leading to an all‑ones mask and an over‑write of 64 bytes. The fix (JDK‑8393212) adds a guard that diverts any tail shorter than four characters to the scalar path, eliminating the underflow without altering other functionality. No official CWE has been assigned yet, but the issue aligns with an integer underflow (CWE‑191) that results in an out‑of‑bounds write (CWE‑787).

The vulnerability only manifests on x86‑64 processors that support AVX‑512 F, AVX‑512 BW, AVX‑512 VBMI and BMI2. That includes Intel Ice Lake, Sapphire, Emerald and Granite Rapids families as well as AMD Zen 4 and newer silicon; Skylake‑SP and Cascade Lake have AVX‑512 but lack VBMI. It is present in OpenJDK 17.0.6 and later, and in builds 18 through 27 that are below the patched releases, as well as in Oracle’s 8u511 Enterprise Performance Pack because it ships a 17‑based VM. The defaults on the affected CPUs set UseAVX to 3 and UseBASE64Intrinsics to true, which causes the HotSpot JVM to generate the vulnerable AVX‑512 decoder stub.

To determine exposure, the JVM itself must be queried rather than relying on /proc/cpuinfo, which may be missing on non‑Linux systems. Running java -Xlog:os+cpu -version and filtering for avx512f, avx512bw, avx512_vbmi or bmi2 shows the CPU features, while java -XX:+PrintFlagsFinal -version reveals the four relevant flags. If all four conditions are true, the runtime is vulnerable. Disabling the intrinsic with -XX:-UseBASE64Intrinsics prevents the stub from being generated; this slows Base64 decoding because it falls back to pure‑Java code, though no benchmark has been published. An alternative is -XX:UseAVX=2, which also blocks the VBMI decoder but disables every AVX‑512 optimization and prevents ARM64 JVMs from starting.

Qualys’s TruRisk Eliminate now offers an automated mitigation for Java4Shell on both Linux and Windows hosts. The Cloud Agent first checks each host for an AVX‑512 VBMI CPU and an affected Java runtime, then appends -XX:-UseBASE64Intrinsics to JAVA_TOOL_OPTIONS while preserving any existing values. The change takes effect when the JVM restarts; on Windows it requires a host reboot, and the agent reports the effective flag setting for every Java process it can read. A one‑click rollback restores the prior configuration, but the mitigation does not cover containers, which must have the flag set in the image or pod specification. Qualys describes the approach as a bridge to the patched builds, noting that Oracle has not officially published the flag as a workaround.

Beyond remote code execution, the exploit chain can read arbitrary Java heap memory before any attacker‑controlled code runs, exposing private keys, tokens and personal data. CISA also warned that crafted Base64 input can crash the JVM, creating a denial‑of‑service risk, and that client‑side Java programs can be compromised simply by establishing a TLS connection to a malicious server. According to CISA, “No exploitation in the wild had been reported as of November 17 2026.” The agency’s alert urges immediate patching—fixed builds were released on that date (e.g., 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 and 8u513‑perf)—and, where patching is not yet possible, recommends the -XX:-UseBASE64Intrinsics flag, input‑size limits and pre‑authentication access controls.

Affected Products — Oracle Java SE / OpenJDK 17, 21, 25, 27 (pre‑fixed builds), Oracle Java 8 Enterprise Performance Pack, Oracle GraalVM (pre‑fixed builds), and any OpenJDK 18‑27 distributions built before the fix.

Why It Matters for Trust & Control Assurance — The issue tests the patch management and secure configuration control objective; timely remediation and verifiable runtime hardening are essential for audit‑ready evidence across frameworks. Capability: CONTROL_MAPPING – continuous evidence collection of patch status and JVM flag compliance.

Recommended Actions —

  • Apply the Oracle fixed builds (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1, or the vendor‑specific JDK‑8393212 back‑port).
  • If patching is delayed, start the JVM with -XX:-UseBASE64Intrinsics (or use Qualys TruRisk Eliminate to automate the flag rollout).
  • Verify exposure by confirming AVX‑512 VBMI CPU presence, JVM version, and that UseBASE64Intrinsics=true via java -XX:+PrintFlagsFinal.
  • Re‑scan with a vulnerability scanner to capture remediation evidence.

Source: Qualys Blog – Java4Shell Technical Guide

📰 Original Source
https://blog.qualys.com/qualys-insights/2026/11/20/a-technical-guide-to-mitigate-java4shell-with-trurisk-eliminate ↗

This LiveThreat Intelligence Brief is an independent analysis. Read the original reporting at the link above.

From the Verisq platform · Trust Operations

Answer one control objective. Answer ten frameworks.

The Verisq Common Framework is a spine of 84 control objectives that SOC 2, ISO 27001, NIST CSF, CMMC, HIPAA, PCI DSS, HITRUST, GDPR, ISO 42001 and NIST AI RMF map onto — each graded honestly. Satisfy an objective once and every framework that recognizes it lights up at its real strength.

See how the Verisq Common Framework works →