Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

🐞 Keycloak: step images run a JDK vulnerable to Java4Shell (CVE-2026-114938) - #4284

Merged
xalsina-sequent merged 3 commits into
ovcsfrom
fix/meta-15038/ovcs
Nov 18, 2026
Merged

xalsina-sequent merged 3 commits into
ovcsfrom
fix/meta-15038/ovcs

Conversation

@edulix

@edulix edulix commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Parent issue: https://github.com/sequentech/meta/issues/15038

  • 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.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • 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>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~7 minutes

Possibly related PRs

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

Commits

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>
@edulix

edulix commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

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>
@edulix

edulix commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

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.

@edulix
edulix marked this pull request as ready for review November 18, 2026 01:46
@xalsina-sequent
xalsina-sequent merged commit ad71989 into ovcs Nov 18, 2026
64 checks passed
@xalsina-sequent
xalsina-sequent deleted the fix/meta-15038/ovcs branch November 18, 2026 15:50
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.

2 participants