From 53416aff2294ce339c44d6c9eb83489baca51015 Mon Sep 17 00:00:00 2001 From: alexandreferris Date: Fri, 20 Nov 2026 16:50:07 +0100 Subject: [PATCH] fix: Disable JVM Base64 intrinsics to mitigate CVE-2026-114938 #WPB-30191 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. --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index a7d5588..8ddb038 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,10 @@ RUN ./gradlew shadowJar --no-daemon FROM eclipse-temurin:21-jre +# Workaround for CVE-2026-114938 (Java4Shell, WPB-30191): disable the AVX-512 Base64 intrinsic. +# Remove once the image runs Temurin >= 21.0.13.1. +ENV JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics" + COPY --from=build-env /app/build/libs/github-app.jar /opt/githubapp/ WORKDIR /opt/githubapp