r/foojay • u/FrankCodeWriter • 7d ago
Java4Shell (CVE-2026-114938): is your JVM running the vulnerable Base64 intrinsic?
We just published a new article on Foojay by Garth Patil about Java4Shell, a bug in the code HotSpot generates for java.util.Base64.Decoder, not in any library. It only affects some processors, so the same image can be safe on one host and exploitable on the next.
The article explains what the intrinsic is, how to check the CPU flags and the running JDK with jcmd, and how to turn it off with -XX:-UseBASE64Intrinsics so the flag actually reaches the process. It also covers mixed fleets, replace-not-append behavior in env variables like JAVA_OPTS_APPEND, and packaging traps when rolling out a patched runtime. The examples come from Keycloak.
Read it here: https://foojay.io/today/java4shell-jvm-base64-intrinsic/