Mitigate Java4Shell (CVE-2026-114938)
Java4Shell (CVE-2026-114938) is a heap memory corruption flaw in the Base64 decoder of JDK 17 and later. It only affects x86-64 CPUs that support AVX-512 VBMI. ARM64 is not affected. The Java 25 runtime bundled with Portal Dedicated 6.14.0 is affected. The OpenJDK security update of November 17, 2026 fixes it.
We are not aware of any exploitation of Java4Shell in Portal Dedicated, or of a way to exploit it there. As a precaution, we recommend one of these fixes:
- Upgrade to Portal Dedicated 6.14.1 or later - it bundles a fixed Java 25.
- Turn off the Base64 intrinsic - add one JVM option to the Portal service. It works with the bundled Java and needs a restart.
- Run an updated Java 25 - point the Portal service at Java 25.0.5.1 or later, or at your Java vendor's build of the November 17, 2026 update.
Check whether your server is affected
Run:
grep -m1 -o avx512vbmi /proc/cpuinfo
If the command prints nothing, the CPU does not support AVX-512 VBMI and the Portal is not affected. If it prints avx512vbmi, apply one of the fixes below.
Upgrade to Portal Dedicated 6.14.1 or later
Follow Upgrading Portal Dedicated. If you added -XX:-UseBASE64Intrinsics or pointed the Portal service at your own Java, you can remove that change after the upgrade.
Turn off the Base64 intrinsic
The -XX:-UseBASE64Intrinsics option makes Java decode Base64 without the affected CPU-specific code.
-
Open
/etc/systemd/system/portal.service. If you set a different service name during installation, open the file with that name instead. -
In the
ExecStartline, add-XX:-UseBASE64Intrinsicsright after the path tojava. Keep the options that are already on the line. The start of the line looks similar to:ExecStart=/opt/waratek/jre/bin/java -XX:-UseBASE64Intrinsics -jar /opt/waratek/portal.jar \ -
Reload the systemd units:
sudo systemctl daemon-reload -
Restart the Portal:
sudo systemctl restart portal -
Run
sudo systemctl status portal. The Portal isactive (running), and itsjavacommand line includes-XX:-UseBASE64Intrinsics.
The configuration script ./scripts/configurePortal.sh rewrites portal.service when you run it again. To keep the option, add -j "-XX:-UseBASE64Intrinsics" to the configuration command. If you already pass other Java properties with -j, add the option to the same value.
Run an updated Java 25
-
Install Java 25.0.5.1 or later on the Portal server, or your Java vendor's build of the November 17, 2026 update.
-
Follow Using an alternative manually installed Java 25 to point the Portal service at it.
-
Run the new Java with
-version. The output shows version 25.0.5.1 or later:<java-path> -versionReplace
<java-path>with the path to thejavaexecutable you set inExecStart.
Related pages
- Upgrading Portal Dedicated - upgrade to the latest Portal Dedicated release
- Using an alternative manually installed Java 25 - run the Portal on a Java 25 you install yourself