Skip to content

fix: mitigate CVE-2026-114938 (Java4Shell) in JVM entrypoint - #158

Merged
perbernhardt merged 1 commit into
mainfrom
fix/cve-2026-114938-java4shell
Nov 18, 2026
Merged

perbernhardt merged 1 commit into
mainfrom
fix/cve-2026-114938-java4shell

Conversation

@perbernhardt

Copy link
Copy Markdown
Contributor

Summary

Adds -XX:-UseBASE64Intrinsics to the JVM launch command in Dockerfile.

Background

eclipse-temurin:21.0.8_9-jre-alpine bundles Java 21.0.8 and the image explicitly targets linux/x86_64 — both conditions required for CVE-2026-114938 (Java4Shell), a pre-authentication RCE via the AVX-512 VBMI Base64 decoder in OpenJDK 17.0.6+, 21, and 25.

The -XX:-UseBASE64Intrinsics flag disables the vulnerable intrinsic. It is placed before ${JAVA_OPTS} so it cannot be accidentally overridden at deploy time. Takes effect on next restart — no image bump required.

Changes

File Change
Dockerfile java ${JAVA_OPTS} -jar /app.jar → java -XX:-UseBASE64Intrinsics ${JAVA_OPTS} -jar /app.jar

References

eclipse-temurin:21.0.8_9 (Java 21.0.8) on linux/x86_64 is affected by
CVE-2026-114938 — a pre-auth RCE via the AVX-512 VBMI Base64 decoder in
OpenJDK 17.0.6+ / 21 / 25 on x86-64 hosts with AVX-512 VBMI support.

Adds -XX:-UseBASE64Intrinsics before ${JAVA_OPTS} so the flag is always
present regardless of what callers set in JAVA_OPTS at deploy time.
Takes effect on next restart; no image bump required.

Refs: CVE-2026-114938
@perbernhardt
perbernhardt merged commit 23c52bc into main Nov 18, 2026
2 of 3 checks passed
@perbernhardt
perbernhardt temporarily deployed to ghcr:leanix-github-agent November 18, 2026 13:42 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown

LeanIX GitHub Agent Code Coverage

Overall Project 64.09% 🍏

There is no coverage information present for the Files changed

This branch was previously deployed

1 inactive deployment
ghcr:leanix-github-agent — e2d1f32c Deployed Nov 18, 2026 by perbernhardt via build #107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants