Skip to content

Start the Docker image's Tomcat with -XX:-UseBASE64Intrinsics - #311

Merged
mraible merged 1 commit into
masterfrom
disable-base64-intrinsics
Nov 18, 2026
Merged

mraible merged 1 commit into
masterfrom
disable-base64-intrinsics

Conversation

@mraible

@mraible mraible commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Java4Shell (CVE-2026-114938, https://calif.io/java4shell/) is an out-of-bounds write in HotSpot's Base64 decoding intrinsic on x86-64 processors with AVX-512 VBMI, in OpenJDK 17.0.6 and later until the November 2026 updates. It's a JVM bug, so Roller can't fix it, but its image and docs can help sites until their JDK is patched.

  • The Docker image sets CATALINA_OPTS="-XX:-UseBASE64Intrinsics", which turns off the affected intrinsic and only costs Base64 speed. The option is accepted on ARM64 too (checked on an aarch64 Temurin 25.0.5 JVM), unlike -XX:UseAVX=2, which an ARM JVM refuses.
  • The install guide's Java requirement says to keep the JDK updated and, until then, to start the server with that option, for example in Tomcat's CATALINA_OPTS.
  • CHANGES has an entry under "Build and packaging", including that a CATALINA_OPTS passed to the container replaces the default.

The UI test jobs for oidc and db-oidc build and start this image, so they check that Tomcat starts with the option.

JDKs older than the November 2026 updates have a Base64 decoding flaw on x86-64 processors with AVX-512 (CVE-2026-114938). The Docker image now sets CATALINA_OPTS=-XX:-UseBASE64Intrinsics, which turns off the affected intrinsic and only costs Base64 speed, and the install guide and CHANGES tell sites running Roller on their own server to update their JDK or set the same option.

@snoopdave snoopdave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of 8b85935a6: The Docker setting reaches Tomcat through the existing entry point, and the documentation matches master's Java 21 runtime.

No issues found.

@mraible
mraible requested a review from snoopdave November 18, 2026 03:21

@snoopdave snoopdave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@mraible
mraible merged commit 58909ba into master Nov 18, 2026
9 checks passed
@mraible
mraible deleted the disable-base64-intrinsics branch November 18, 2026 03:37
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