Repository navigation
fix: Disable JVM Base64 intrinsics to mitigate CVE-2026-114938 #WPB-30191 - #173
Conversation
…0191 Set JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics in the runtime image to turn off the vulnerable Base64 intrinsic (Java4Shell), which is exploitable on x86-64 CPUs with AVX-512 VBMI. Temporary workaround until eclipse-temurin:21-jre ships 21.0.13.1+; remove the ENV line once the image is rebuilt on the fixed version.
Review: Disable JVM Base64 intrinsics (CVE-2026-114938)The change is small and sensible, and I'd approve it. Using
|
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
Causes (Optional)
On x86-64 CPUs with AVX-512 VBMI (Intel Ice Lake / AMD Zen 4 or newer), the OpenJDK JIT swaps in a hand-tuned Base64 decoder intrinsic that mishandles crafted input. An attacker who can get Base64 data decoded by the app can execute code inside the JVM.
The app runs on
eclipse-temurin:21-jre(Temurin 21.0.13+9 / 21.0.12.1+1), which is in the affected range, and the image islinux/amd64. The fixed Temurin21.0.13.1+2binaries are already released by Adoptium, but theeclipse-temurin:21-jreDocker image has not been updated yet.Solutions
ENV JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics"in the runtime stage of theDockerfile. This disables the Base64 intrinsic entirely, so the JVM falls back to the plain Java implementation regardless of the node's CPU.JAVA_TOOL_OPTIONSis read by the JVM itself, so it works with the existingjava -jarentrypoint without touching the Helm charts or per-environment values.eclipse-temurin:21-jreships 21.0.13.1+, rebuild and remove theENVline.Tested locally (
linux/amd64build of the image):docker inspectshowsJAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsicsin the imagejava -XX:+PrintFlagsFinalinside the image:UseBASE64Intrinsics = false {environment}(it istrue {default}without the flag)Picked up JAVA_TOOL_OPTIONS: -XX:-UseBASE64Intrinsicsand the app starts normally (stops only on missing Wire credentials, as expected locally)