You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐞 Keycloak: step images run a JDK vulnerable to Java4Shell (CVE-2026-114938) - #4284
Set -XX:-UseBASE64Intrinsics in both JAVA_OPTS_APPEND and JDK_JAVA_OPTIONS in the final stage of Dockerfile.keycloak and Dockerfile.keycloak-vstl-build, which turns off the vulnerable AVX-512 Base64 intrinsic. kc.sh appends the first and the java launcher reads the second, so a deployment that overrides one of them still keeps the flag.
No Keycloak version change: 26.7.5 is already the latest 26.7.x, so the FROM digests stay as they are.
No fixed JDK exists yet; remove the flag once the Keycloak image ships one.
Updated Java runtime settings for Keycloak containers, including build deployments, to disable the AVX-512 Base64 decoding optimization while affected images await a fixed JDK.
Applied the setting through both supported Java option paths, helping it remain effective when deployment configuration overrides either path. The update also preserves acceptance of the setting on arm64.
…114938)
Set JAVA_OPTS_APPEND=-XX:-UseBASE64Intrinsics in the final stage of the
Keycloak images until a fixed JDK ships. Keycloak stays on 26.7.5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No actionable comments were generated in the recent review.
Walkthrough
Both Keycloak Dockerfiles set JAVA_OPTS_APPEND and JDK_JAVA_OPTIONS to -XX:-UseBASE64Intrinsics. Comments describe the option as disabling the AVX-512 Base64 decode intrinsic.
Changes: Keycloak Image Configuration
Layer / File(s)
Summary
Set the Java options packages/Dockerfile.keycloak, packages/Dockerfile.keycloak-vstl-build
Both Dockerfiles add comments and set JAVA_OPTS_APPEND and JDK_JAVA_OPTIONS to disable the BASE64 intrinsic. The VSTL build Dockerfile comments identify Java4Shell (CVE-2026-114938) and note arm64 acceptance.
sequentech/step#3577: Pins the Keycloak base image used by the Dockerfiles updated in this PR.
Suggested reviewers:findeton, belsequent
Merge Risk: Minimal · up to dd958
This change disables the vulnerable Base64 intrinsic in the Keycloak images through two environment variables, so overriding one of them does not drop the mitigation. No concrete defect was found in the Dockerfile changes, and the change is easy to revert. The flag should be removed once the Keycloak image ships a fixed JDK.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: the Keycloak step images are switched off a vulnerable JDK path, via the -XX:-UseBASE64Intrinsics flag, to mitigate Java4Shell (CVE-2026-114938). The raw summary shows…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the Keycloak step images are switched off a vulnerable JDK path, via the -XX:-UseBASE64Intrinsics flag, to mitigate Java4Shell (CVE-2026-114938). The raw summary shows the changes in packages/Dockerfile.keycloak and packages/Dockerfile.keycloak-vstl-build set this flag in JAVA_OPTS_APPEND and JDK_JAVA_OPTIONS, which matches the title's subject. The title is specific and accurate, and the 🐞 emoji is the only noise, which is acceptable under the criteria.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between a566599 and dd9585b.
Files selected for processing: 2
packages/Dockerfile.keycloak
packages/Dockerfile.keycloak-vstl-build
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.
A deployment that sets its own JAVA_OPTS_APPEND replaced the image default and
dropped the flag. The java launcher reads JDK_JAVA_OPTIONS by itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Overriding JDK_JAVA_OPTIONS alone dropped the flag. Set it in JAVA_OPTS_APPEND
too, so a deployment has to override both to lose it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
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
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.
Parent issue: https://github.com/sequentech/meta/issues/15038
-XX:-UseBASE64Intrinsicsin bothJAVA_OPTS_APPENDandJDK_JAVA_OPTIONSin the final stage ofDockerfile.keycloakandDockerfile.keycloak-vstl-build, which turns off the vulnerable AVX-512 Base64 intrinsic. kc.sh appends the first and the java launcher reads the second, so a deployment that overrides one of them still keeps the flag.🤖 Generated with Claude Code
Summary by CodeRabbit