Turn off the intrinsic.
Add these JVM options to the service startup configuration. The diagnostic unlock flag must come first. Restart every instance after changing the options.
-XX:+UnlockDiagnosticVMOptions -XX:-UseBASE64IntrinsicsOn affected x86-64 systems, -XX:UseAVX=2 is another documented workaround, but it reduces broader AVX use. Test performance and compatibility before using it.
Confirm the setting took effect.
Inspect the exact JVM process after restart. A new java -XX:+PrintFlagsFinal -version process only reports its own flags; it does not prove what a service is using.
jcmd <PID> VM.command_line
jcmd <PID> VM.flagsReplace <PID> with the target process ID. If attach is unavailable, inspect the container or service definition and deployment logs, then verify the restarted process.
Constrain untrusted input paths.
Find endpoints, message consumers and libraries that decode untrusted Base64. Rate limits, input-size caps and authentication can reduce exposure in specific applications. A generic WAF rule cannot reliably identify every vulnerable decoding path inside a JVM.
For movable workloads, also check every possible host class. Scheduling an affected container onto a CPU without AVX-512 VBMI can remove this intrinsic path, but that placement needs enforceable policy and monitoring.
Keep the patch as the final state.
The flag is an interim runtime control for this decoder path. It does not remediate other Java CVEs or prove an application has no reachable Base64 decode. Replace and restart with a vendor-fixed build when available.
See fixed builds and verification