Mondoo advisory · AmazonLinux 2023
OpenJDK HotSpot Base64 decoding out-of-bounds write on CPUs with AVX-512 VBMI allows remote code execution
AmazonLinux 2023
What it fixes
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.
This advisory does not flag macOS. Apple Silicon Macs are not affected, and neither is any Mac that runs a JDK under Rosetta 2. The only affected Intel Macs are the 2020 Ice Lake models (MacBook Air 2020 and the 13-inch MacBook Pro 2020 with four ports), which cannot yet be told apart from unaffected Macs. If you run Java on one of them, update the JDK or use the mitigation below.
If you cannot update right away, start the JVM with one of these options:
-…
Manual fix · AmazonLinux 2023
sudo yum upgrade java-17-amazon-corretto java-17-amazon-corretto-debugsymbols java-17-amazon-corretto-devel java-17-amazon-corretto-headless java-17-amazon-corretto-javadoc java-17-amazon-corretto-jmods …rpm -q java-17-amazon-corretto java-17-amazon-corretto-debugsymbols java-17-amazon-corretto-devel java-17-amazon-corretto-headless java-17-amazon-corretto-javadoc java-17-amazon-corretto-jmods …Sources