Skip to content

fix(model-server): update the base image to a JDK with the November 2026 security fixes - #3111

Merged
abstraktor merged 1 commit into
modelix:mainfrom
bschwert:fix/model-server-base-image-java-cves
Nov 25, 2026
Merged

abstraktor merged 1 commit into
modelix:mainfrom
bschwert:fix/model-server-base-image-java-cves

Conversation

@bschwert

Copy link
Copy Markdown
Contributor

Problem

The model-server image is built on registry.access.redhat.com/ubi8/openjdk-17:1.20-2.1729094551, an image from October 2024. It ships OpenJDK 17.0.13 (Red_Hat-17.0.13.0.11-1), so the released images up to 20.1.0 are affected by the OpenJDK CVEs of Oracle's Critical Patch Update of 2026-11-17, including CVE-2026-114938 ("Java4Shell", heap corruption in the Base64 decoder, reported for 17.0.6 and later).

Until an image with a fixed JDK is released, the JVM flag -XX:-UseBASE64Intrinsics switches the affected code path off.

Change

The base image moves to ubi8/openjdk-17:1.23-7, which ships OpenJDK 17.0.21.1 (Red_Hat-17.0.21.1.2-2). The digest is pinned in addition to the tag, so that a rebuild cannot resolve a different image.

The type is fix, so that the merge releases a new image.

Verification

  • ./gradlew :model-server:jibDockerBuild; java -version in the built image prints 17.0.21.1+2-LTS.
  • The container starts with --inmemory and /health returns 200.
  • ./gradlew :model-client:jvmTest passes; OAuthTest starts the new image through Testcontainers.
  • Built and tested for linux/amd64 only.

Not part of this PR

  • mps-git-import is built on modelix/mps-base-image:2024.3, which was last built in April 2025 with temurin-21-jdk. The Adoptium apt repository has the fixed 21.0.13.1.0+2-0 now, so a run of the "MPS baseimage" workflow and a digest update in mps-git-import-cli/build.gradle.kts would bring the fix there.
  • Neither Renovate nor Dependabot tracks the from.image of the Jib configuration, which is why the base image stayed at the 2024 build.

🤖 Generated with Claude Code

…026 security fixes

The pinned ubi8/openjdk-17 image is from October 2024 and ships OpenJDK 17.0.13,
which is affected by CVE-2026-114938 ("Java4Shell") and the other OpenJDK CVEs
of Oracle's Critical Patch Update of 2026-11-17.
Image 1.23-7 ships OpenJDK 17.0.21.1, which contains the fixes.
The digest is pinned in addition to the tag, so that a rebuild cannot resolve a different image.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@abstraktor
abstraktor merged commit e3374ff into modelix:main Nov 25, 2026
12 checks passed
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