Repository navigation
Conversation
The test stack runs apache/polaris:latest. The images published so far are built on Red Hat's ubi9/openjdk-21-runtime, whose OpenJDK 21 does not have the fix for Java4Shell (CVE-2026-114938), a heap overflow in the JVM's AVX-512 Base64 decoding fast path. GitHub-hosted runners can land on CPUs with the AVX-512 VBMI support the bug needs. Pass -XX:-UseBASE64Intrinsics through JAVA_OPTS_APPEND, which the image's run-java.sh adds to the JVM options. This turns off the vulnerable fast path. The flag is safe on other x86 CPUs and on arm64. Remove it once apache/polaris:latest runs a fixed JDK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docker compose file published MinIO (9000, 9001), Polaris (8181, 8182), and the local-only Spark service (8888, 8080, 10000, 10001) on all host interfaces. Other hosts on the same network could reach these services, which use fixed test credentials. Bind the published ports to 127.0.0.1. The tests connect from the same host through localhost. The services still reach each other by name on the compose network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sacha0
marked this pull request as ready for review
November 18, 2026 20:43
geokollias
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tl;dr
Mitigate (very low likelihood) Java4Shell pathway in the docker test stack, and stop publishing its service ports on all host interfaces.
detail
Java4Shell is a heap overflow in the JVM's AVX-512 Base64 decoding fast path. It affects OpenJDK 17.0.6 and later on x86-64 CPUs with AVX-512 VBMI. Fixed JDK builds came out on 2026-11-17.
docker/docker-compose.ymlrunsapache/polaris:latest. The currentlatest(built 2026-11-14) is based on Red Hat'subi9/openjdk-21-runtime1.24, whose JDK does not have the fix. CI starts this stack on GitHub-hostedubuntu-latestrunners, which can land on CPUs that use the vulnerable fast path. This is test-only infrastructure, and GitHub-hosted runners do not accept inbound connections, so the risk is very low, but nonetheless best mitigated.Changes, one commit each:
-XX:-UseBASE64Intrinsicsto Polaris throughJAVA_OPTS_APPEND. The image'srun-java.shadds this variable to the JVM options. The image does not setJAVA_OPTS, which would causeJAVA_OPTS_APPENDto be ignored. The flag turns off the vulnerable fast path. It is safe on CPUs without AVX-512 and on arm64. A comment says to remove it onceapache/polaris:latestruns a fixed JDK.127.0.0.1only. Tests connect from the same host throughlocalhost. The services still reach each other by name on the compose network. This commit is separate so it is easy to drop if reviewers prefer.Follow-up: since the image tag is not pinned, CI will pick up a fixed Polaris image once upstream publishes one. The flag can be removed then.