Skip to content

Rebuild on the fixed distroless JDK (Java4Shell) and remove the Base64 intrinsics mitigation - #725

Merged
vpaturet merged 2 commits into
masterfrom
java4shell-fixed-jdk
Nov 27, 2026
Merged

vpaturet merged 2 commits into
masterfrom
java4shell-fixed-jdk

Conversation

@vpaturet

@vpaturet vpaturet commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Java4Shell (CVE-2026-114938): this replaces the temporary mitigation from #724 with the real fix.

  • Runtime image: no change needed. The runtime stage uses the floating gcr.io/distroless/java25-debian13:nonroot, which has shipped Temurin 25.0.5.1+2 since at least 2026-11-19 (checked again 2026-11-20). BuildKit resolves the tag to its current digest at build time, so the image built from this PR gets the fixed JDK. The image currently deployed was built before that and runs Temurin 25.0.5+8.
  • Mitigation removed: -XX:-UseBASE64Intrinsics is dropped from the JVM options. Chart and image ship in the same deploy, so no pod runs the old JDK without the flag.
  • Builder stage: bellsoft/liberica-openjre-alpine 25.0.5.0.3 → 25.0.5.1, for consistency only. That stage only extracts the jar layers and is not part of the final image.
  • CI JDK: back to plain setup-java, distribution: liberica / java-version: 25.0.5.1, with actions/setup-java bumped to v6.3.0. The tarball download with a hand-checked checksum was added for the eMudhra fix because setup-java up to v6.1.0 dropped Liberica's 4th version component, so it could not tell 25.0.5.0.3+5 from 25.0.5.0.2+5. Since v6.2.0 (Fix Liberica Java 25 release resolution actions/setup-java#1313) it keeps that component, so 25.0.5.1 resolves to exactly 25.0.5.1+5. CI on this branch confirms it: setup-java logs Downloading Java 25.0.5+1.5 (Liberica) from …/25.0.5.1+5/bellsoft-jdk25.0.5.1+5-linux-amd64.tar.gz. One thing is lost with the tarball step: setup-java does not verify checksums for liberica (its automatic verification covers temurin, zulu, corretto and others, not Liberica), so the download is trusted over HTTPS only, as it was before the eMudhra pin.

After deploy: kubectl exec <pod> -- java -version should report Temurin-25.0.5.1+2.

@vpaturet
vpaturet force-pushed the java4shell-fixed-jdk branch from 63a657b to 7d5bb80 Compare November 27, 2026 11:57
…4 intrinsics mitigation

CVE-2026-114938: a JDK with the fix is now available, so the temporary -XX:-UseBASE64Intrinsics mitigation is no longer needed.
setup-java v6.2.0 keeps Liberica's fourth version component, so java-version 25.0.5.1 resolves to exactly 25.0.5.1+5. The tarball download was only needed because older versions could not select such a build.
@vpaturet
vpaturet force-pushed the java4shell-fixed-jdk branch from 7d5bb80 to 6ab02a5 Compare November 27, 2026 12:02
@sonarqubecloud

Copy link
Copy Markdown

@vpaturet
vpaturet merged commit a3e5555 into master Nov 27, 2026
23 checks passed
@vpaturet
vpaturet deleted the java4shell-fixed-jdk branch November 27, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant