Ko-fi Support Us
SquidServers Logo
Jean Serrano
November 18, 2026

CVE-2026-114938 (Java4Shell): Java update for Minecraft servers

A critical Java vulnerability, CVE-2026-114938, and how to patch your Minecraft servers.

A memory-corruption vulnerability in the OpenJDK Base64 decoder has been disclosed as CVE-2026-114938 (Java4Shell). It could allow remote code execution on vulnerable servers and is rated 9.2 out of 10 (critical) under CVSS 4.0. Updating Java resolves the issue. Disabling the affected code with -XX:-UseBASE64Intrinsics serves as a temporary mitigation.

Updating to SquidServers 0.11.1 or above automatically patches vulnerable servers on startup. Modpack servers must be patched manually, as described below.

CVE record: https://www.cve.org/CVERecord?id=CVE-2026-114938 Details from the researchers: https://calif.io/java4shell/

About the vulnerability

OpenJDK uses specialized CPU instructions to decode Base64 faster on some processors. A flaw in that code allows malformed input to overwrite adjacent memory. This could lead to remote code execution or expose sensitive data from the Java heap.

Who is affected

Servers are affected when both of the following apply:

  • OpenJDK 17.0.6 or newer, or a distribution built from it (Eclipse Temurin, Amazon Corretto, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine, Red Hat OpenJDK, Oracle OpenJDK, Oracle Java SE, Oracle GraalVM)
  • An x86-64 CPU with AVX-512 VBMI support, such as Intel Xeon (Ice Lake, Sapphire Rapids, Emerald Rapids, Granite Rapids) or AMD EPYC and Ryzen (Zen 4 or newer) ARM64 CPUs are not affected. On Linux, the following command shows whether a CPU has the required features. All four flags must be present:
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'

Minecraft servers

Minecraft servers were not among the products tested by the researchers, and no universal exploit exists. Each target requires a separate attack, depending on how the application uses Base64. Mods and plugins that process network input could reach the decoder, so the update or mitigation applies to all servers, including modded ones.

Updating Java

OpenJDK published a security advisory and Oracle released a patch on November 17, 2026. The fix is to update to the latest build from the Java vendor and restart the server.

Patching modpack servers manually

Until Java can be updated, the affected code can be disabled with the following Java argument. The only effect is slower Base64 processing.

-XX:-UseBASE64Intrinsics

The argument must be placed before -jar. For example, a run.bat containing:

java -jar server.jar nogui

should be changed to:

java -XX:-UseBASE64Intrinsics -jar server.jar nogui

Where to add the argument:

  • Forge and NeoForge: in user_jvm_args.txt in the server folder, on its own line. run.bat and run.sh read this file. run.bat can be regenerated, so changes made to it directly may be lost.
  • Fabric, Quilt, Paper and others: on the java line of the start script, before -jar. Each server and modpack has its own Java arguments, so the change must be applied to every one. After a restart, the setting can be verified with the same Java installation the server uses. The expected value is false. On Windows, findstr replaces grep.
java -XX:-UseBASE64Intrinsics -XX:+PrintFlagsFinal -version | grep UseBASE64Intrinsics

If the server fails to start with Unrecognized VM option, that Java version does not support the argument. In that case, the argument should be removed and Java updated instead. Alternatively, -XX:UseAVX=2 avoids the issue by disabling AVX-512. It must only be used on x86-64 systems, as Java on ARM does not recognize it and will fail to start.

Servers outside SquidServers

Custom start scripts, custom Java installations and hosting panels are not patched by SquidServers. These require a Java update, or the argument added manually using the steps above.

Players

The researchers also described a client-side scenario in which a Java program that opens a TLS connection to a malicious server could be affected. This could include Minecraft clients. Keeping the Java used by launchers up to date is recommended. Questions and issues can be reported through a ticket on the SquidServers Discord.

CVE-2026-114938 (Java4Shell): Java update for Minecraft servers - SquidServers