Skip to main content
Version: 6.12.0

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 21 runtime bundled with Portal Dedicated 6.12.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 21 - point the Portal service at Java 21.0.13.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.

  1. Open /etc/systemd/system/portal.service. If you set a different service name during installation, open the file with that name instead.

  2. In the ExecStart line, add -XX:-UseBASE64Intrinsics right after the path to java. 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 \
  3. Reload the systemd units:

    sudo systemctl daemon-reload
  4. Restart the Portal:

    sudo systemctl restart portal
  5. Run sudo systemctl status portal. The Portal is active (running), and its java command 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 21​

  1. Install Java 21.0.13.1 or later on the Portal server, or your Java vendor's build of the November 17, 2026 update.

  2. Follow Using an alternative manually installed Java 21 to point the Portal service at it.

  3. Run the new Java with -version. The output shows version 21.0.13.1 or later:

    <java-path> -version

    Replace <java-path> with the path to the java executable you set in ExecStart.