Skip to content

Disable Base64 intrinsics on Dataflow workers - #3288

Open
CydeWeys wants to merge 1 commit into
google:masterfrom
CydeWeys:fix-rde-pipeline-java4shell
Open

CydeWeys wants to merge 1 commit into
google:masterfrom
CydeWeys:fix-rde-pipeline-java4shell

Conversation

@CydeWeys

@CydeWeys CydeWeys commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Mitigate CVE-2026-114938 (JDK-8393212), a heap out-of-bounds write in OpenJDK HotSpot's C2 x86-64 AVX-512 VBMI java.util.Base64 decodeBlock intrinsic, across all Nomulus Dataflow Flex Template pipelines.

Changes

  • release/stage_beam_pipeline.sh: Append environment_variables=JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsics to --additional-experiments (alongside disable_runner_v2) so all Cloud Build–staged Flex Templates (RdePipeline, Spec11Pipeline, InvoicingPipeline, ExpandBillingRecurrencesPipeline, ResaveAllEppResourcesPipeline, SmokeTestPipeline) bake the mitigation into defaultEnvironment.additionalExperiments.
  • core/build.gradle: Pass --additional-experiments=environment_variables=JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsics in the alpha stageBeamPipelines task.

Reachability, Justification & Blast Radius

  • Runtime reachability: RdePipeline executes daily in production on n2-standard-4 workers (which can schedule on AVX-512 VBMI Ice Lake CPUs) using unpatched OpenJDK 25 (beam-java25-batch:2.77.0), and Spec11Pipeline (SafeBrowsingTransforms.java) directly invokes java.util.Base64.getDecoder().decode on external API responses.
  • Guidance & parity: Matches the GCP-2026-082 Dataflow security bulletin mitigation (--additional-experiments="environment_variables=JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsics") and extends the defense-in-depth -XX:-UseBASE64Intrinsics flag from Disable JVM Base64 intrinsics for CVE-2026-114938 #3273 to Dataflow worker JVMs.
  • Blast radius: Applies only to Dataflow worker JVMs launched from newly staged Flex Templates across alpha, crash, qa, sandbox, and production. Verified locally with gcloud dataflow flex-template build --print-only, bash -n, ./gradlew runPresubmits :core:standardTest -x :console-webapp:buildConsoleWebapp, and pr-polisher (check_diff.py).

BUG= http://b/588463824


This change is Reviewable

Mitigate CVE-2026-114938 (JDK-8393212), a heap out-of-bounds write in
OpenJDK HotSpot's C2 x86-64 AVX-512 VBMI java.util.Base64 decodeBlock
intrinsic, across all Nomulus Dataflow Flex Template pipelines (including
RdePipeline on n2-standard-4 workers and Spec11Pipeline, which calls
java.util.Base64.getDecoder().decode in SafeBrowsingTransforms):

- Pass environment_variables=JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsics via
  --additional-experiments in release/stage_beam_pipeline.sh (alongside
  disable_runner_v2) so all Cloud Build staged Flex Templates bake the
  mitigation into defaultEnvironment.additionalExperiments.
- Pass the same --additional-experiments flag in core/build.gradle's
  alpha stageBeamPipelines task.

This matches the GCP-2026-082 Dataflow mitigation guidance and extends
the indefinite defense-in-depth -XX:-UseBASE64Intrinsics flag from google#3273
to Dataflow worker JVMs.

BUG= http://b/588463824
@CydeWeys
CydeWeys requested a review from jicelhay November 20, 2026 21:20
@CydeWeys
CydeWeys enabled auto-merge November 20, 2026 21:20

This branch has not been deployed

No deployments
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.

1 participant