CVE-2026-114938, also called "Java4Shell", is an out-of-bounds heap write in the HotSpot JIT compiler's built-in implementation of java.util.Base64 decoding. On x86-64 CPUs that support AVX-512 VBMI, the optimized decoder uses the wrong store mask for padded input. An attacker who can send Base64 data that a Java application decodes can corrupt memory, read memory, and run code in the Java process without authentication.
The bug is in OpenJDK itself, so it affects every HotSpot-based Java runtime built from an affected release: Oracle JDK, Eclipse Temurin, Microsoft Build of OpenJDK, Amazon Corretto, BellSoft Liberica, SapMachine, Azul Zulu, and Linux distribution OpenJDK packages.
Java 8 and Java 11 are not affected, except Oracle's Java SE 8 performance build 8u511b33-perf.
The bug can only be exploited on x86-64 CPUs with AVX-512 VBMI. That includes Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids; Intel Ice Lake, Tiger Lake and Rocket Lake client CPUs; and AMD Zen 4 and newer. ARM64 systems, including Apple Silicon Macs, are not affected. On Linux, a CPU is affected when /proc/cpuinfo lists all of avx512f, avx512bw, avx512vbmi and bmi2.
If you cannot update right away, start the JVM with one of these options:
-XX:-UseBASE64Intrinsics turns off the optimized Base64 code. This works on every platform.-XX:UseAVX=2 turns off AVX-512. Use it on x86-64 only: a JVM on ARM does not recognize the option and fails to start.Update to a release that contains the fix:
| Java line | OpenJDK fix | Oracle JDK | Amazon Corretto | |---|---|---|---| | 17 | 17.0.21.1 | 17.0.21.1 | 17.0.21.1.2 | | 21 | 21.0.13.1 |...
17.0.21.1.2-1.amzn2023.117.0.21.1.2-1.amzn2023.117.0.21.1.2-1.amzn2023.117.0.21.1.2-1.amzn2023.117.0.21.1.2-1.amzn2023.117.0.21.1.2-1.amzn2023.121.0.13.1.2-1.amzn2023.121.0.13.1.2-1.amzn2023.121.0.13.1.2-1.amzn2023.121.0.13.1.2-1.amzn2023.1Exploitability
AV:NAC:HPR:NUI:NScope
S:UImpact
C:HI:HA:H8.1/CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H