When your Minecraft server runs on a Ryzen 7000 or 9000 box or a Google Cloud C3 instance, its Java is in range of Java4Shell (CVE-2026-114938). The bug lives in the AVX-512 Base64 decoder HotSpot uses on those CPUs, in OpenJDK 17.0.6 and later, 21 and 25. Those are the Java lines Minecraft servers run, from 1.18 up to the 26.x releases. Red Hat rates it 9.8 (the CNA score is 8.1), and a public game server takes untrusted input from anyone who connects.
We tested each fix on a Sapphire Rapids host with Ubuntu 24.04, using a Paper server under systemd, the itzg/minecraft-server image and the Pterodactyl Java images. You’ll see which setups already carry the fix, how to patch a Paper host, and where the stopgap flag goes in a start script, Docker and Pterodactyl. Every build string was checked on 19 November 2026, and the Java4Shell overview covers the flaw itself.
Finding out which Minecraft setups are fixed
A Minecraft server is patched when the JVM it runs is at or above 17.0.21.1, 21.0.13.1 or 25.0.5.1, not when Paper or the plugins update. That puts the fix in whoever ships your Java: the distro, the Docker image, the hosting panel’s image or Mojang’s launcher. This is where each common setup stood when we checked:
| Setup | Java build on 19 Nov 2026 | Status |
|---|---|---|
| Paper, Spigot or Fabric on Ubuntu with the distro openjdk-21 | 21.0.13.1+2 after the update | Fixed by USN-9156-1 |
| Same on Debian 12 or 13 | Debian 12: 17.0.21+9; Debian 13: 21.0.13+9, 25.0.5+8 | Vulnerable, set the flag |
| Windows host with the Temurin 21 or 25 installer | 21.0.13+9, 25.0.5+8 | Vulnerable, no fixed Temurin Windows build yet |
itzg/minecraft-server latest, java21, java25 | Temurin 25.0.5+8, 21.0.13+9 | Vulnerable JDK, flag set by default |
itzg/minecraft-server stable and 2026.11.0-* | Temurin 25.0.5+8, 21.0.13+9 | Vulnerable, no flag |
Pterodactyl yolks:java_21, yolks:java_25 | Temurin 21.0.13+9, 25.0.5+8 | Vulnerable JDK, flag set by the image entrypoint since 17 November |
| Minecraft Launcher Java 25 runtime (26.x) | 25.0.5.1 on Linux and macOS, 25.0.1 on Windows x64 | Fixed on Linux and macOS only |
| Minecraft Launcher Java 21 and 17 runtimes | 21.0.7, 17.0.15 | Not updated |
The two Docker rows are the ones that catch server owners out. The itzg image added the stopgap on 18 November, but only images built after that carry it, so a Compose file pinned to stable or a dated tag runs the vulnerable JDK with no flag at all. Pterodactyl’s yolks images set the flag in their entrypoint since 17 November, so a node still holding an older cached image misses it too. And no image in that table ships a fixed JDK yet, because they all build on Eclipse Temurin, whose Docker images and Windows installers had not been rebuilt when we checked. Until they are, the flag is your fix on those setups.
Checking the CPU and the running Java
Only x86-64 CPUs with AVX-512 VBMI ever run the vulnerable decoder, so start on the host. Intel Ice Lake and newer Xeons and AMD Zen 4 or newer (Ryzen 7000 and 9000, EPYC Genoa and later) qualify; ARM hosts such as Oracle’s Ampere free tier or a Raspberry Pi do not. Count the four flags the decoder needs:
grep -m1 'model name' /proc/cpuinfo; grep -oE '(avx512f|avx512bw|avx512vbmi|bmi2)' /proc/cpuinfo | sort -u
Our lab host printed all four, which puts every Java process on it in scope.
model name : Intel(R) Xeon(R) Platinum 8481C CPU @ 2.70GHz
avx512bw
avx512f
avx512vbmi
bmi2
Fewer than four lines means the host can’t run the vulnerable path and you can stop here. If all four show up, ask the server’s own JVM what it runs. java -version in your shell only tells you about the Java on your PATH, and a server started from a script or a service unit can use a different one. Our Paper server runs as a minecraft system user from a systemd unit, so we ran jcmd as that user against the server’s PID:
sudo -u minecraft jcmd $(pgrep -u minecraft -f paper.jar) VM.version
sudo -u minecraft jcmd $(pgrep -u minecraft -f paper.jar) VM.flags -all | grep UseBASE64Intrinsics
Before patching, the server reported Ubuntu’s original 21.0.3 build with the Base64 intrinsic on by default, the exposed combination.
3157:
OpenJDK 64-Bit Server VM version 21.0.3+9-Ubuntu-1ubuntu1
JDK 21.0.3
bool UseBASE64Intrinsics = true {product} {default}
jcmd ships with the JDK, not the JRE, so on Ubuntu install openjdk-21-jdk-headless if the command is missing. It also has to run as the same user as the server, which is why the sudo -u minecraft is there. If you don’t know which Java line your server needs, Mojang’s version manifest answers it: we read the runtime each release asks for straight from piston-meta.mojang.com.
| Minecraft release | Java line | Fixed build to look for |
|---|---|---|
| 26.1 to 26.3 | Java 25 | 25.0.5.1 or later |
| 1.20.5 to 1.21.11 | Java 21 | 21.0.13.1 or later |
| 1.18 to 1.20.4 | Java 17 | 17.0.21.1 or later |
| 1.17.1 and older | Java 16 or 8 | Not affected |
Those are Mojang’s minimums. Paper recommends Java 21 from 1.20, so many Paper 1.20.x servers already run 21 and should look for 21.0.13.1 or later.
Patching a Paper server on Ubuntu
Ubuntu users only need a package update, because Canonical shipped rebuilt OpenJDK packages on 18 November. Our lab server deliberately started on 21.0.3, the build Ubuntu 24.04 shipped at release, which is what a host still runs if Java was installed then and never updated. The archive showed both that build and the fixed one:
apt-cache madison openjdk-21-jre-headless
Look for the noble-security line, which carries the patched build; the noble release-pocket build is what an unpatched server still runs.
openjdk-21-jre-headless | 21.0.13.1+2-1~24.04.1 | http://europe-west1.gce.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
openjdk-21-jre-headless | 21.0.13.1+2-1~24.04.1 | http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
openjdk-21-jre-headless | 21.0.3+9-1ubuntu1 | http://europe-west1.gce.archive.ubuntu.com/ubuntu noble/main amd64 Packages
Before you upgrade, know that the update can restart the server for you. Ubuntu 24.04 runs needrestart after package installs, and on our host it restarted minecraft.service in the middle of the apt run, which drops every connected player. Post a warning in chat or run this in a quiet hour. Ubuntu documents the override_rc list in /etc/needrestart/needrestart.conf for excluding a service such as minecraft.service; we did not test that. Upgrade only the Java packages you have installed:
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --only-upgrade openjdk-21-jre-headless openjdk-21-jdk-headless
dpkg -l 'openjdk-21*' | awk '/^ii/{print $2, $3}'
Both packages moved to the fixed build.
openjdk-21-jdk-headless:amd64 21.0.13.1+2-1~24.04.1
openjdk-21-jre-headless:amd64 21.0.13.1+2-1~24.04.1
Our apt log and the service journal show the restart nobody asked for. needrestart noticed the server still mapped the old JVM libraries and bounced it at 09:37:55.
Restarting services...
systemctl restart minecraft.service
No containers need to be restarted.
2026-11-19T09:37:55+00:00 systemd[1]: Stopping minecraft.service - Paper Minecraft server...
2026-11-19T09:37:55+00:00 start.sh[4093]: [09:37:55 INFO]: Stopping server
2026-11-19T09:37:56+00:00 systemd[1]: Stopped minecraft.service - Paper Minecraft server.
2026-11-19T09:37:56+00:00 systemd[1]: Started minecraft.service - Paper Minecraft server.
We ran apt non-interactively, the way unattended upgrades and most scripts do, and didn’t test an interactive run, so plan for the restart either way. A server that runs outside systemd, in a screen or tmux session, isn’t a service needrestart can restart, and it keeps the old JVM until you restart it yourself. Whichever way it restarted, confirm the running server took the new build:
sudo -u minecraft jcmd $(pgrep -u minecraft -f paper.jar) VM.version
Now the live server reports 21.0.13.1, the fixed line.
4963:
OpenJDK 64-Bit Server VM version 21.0.13.1+2-1-24.04.1-Ubuntu
JDK 21.0.13.1
A server on Java 17 or 25 takes the same steps with openjdk-17-* (USN-9155-1, 17.0.21.1+2) or openjdk-25-* (USN-9157-1, 25.0.5.1+2), and our Ubuntu Java4Shell patch guide lists the fixed version for every Ubuntu release. If you’re building a fresh server instead, our walkthrough on running a Minecraft server on Ubuntu 24.04 pulls the patched Java from the start.
Adding the stopgap flag to start.sh
Some servers can’t take the package fix this week, and those need the stopgap instead:
- Debian 12 and 13 hosts, still waiting on a DSA
- Windows hosts on the Temurin installer
- Any host waiting for a quiet hour to restart
The flag -XX:-UseBASE64Intrinsics turns off the vulnerable decoder, and the JVM falls back to its plain Java decoder. It costs some Base64 decoding speed, which we didn’t measure on a game server, and it only takes effect after a restart. Our unit runs /opt/minecraft/start.sh, so the flag goes on the java line, before -jar:
sudo vim /opt/minecraft/start.sh
Our lab server ran this exact script with the stopgap in place.
#!/bin/sh
cd /opt/minecraft
exec java -Xms2G -Xmx2G -XX:-UseBASE64Intrinsics -jar paper.jar --nogui
A Windows start.bat takes the flag in the same place, right after java and before -jar. Restart the server, then check the live JVM rather than the script, because a typo in the flag name stops the JVM from starting, and a flag placed after -jar paper.jar goes to Paper instead of Java:
sudo systemctl restart minecraft
sudo -u minecraft jcmd $(pgrep -u minecraft -f paper.jar) VM.flags -all | grep UseBASE64Intrinsics
ps -o args= -u minecraft | grep paper.jar
Once restarted, the flag reads false with the source {command line}, and the process arguments show where it came from.
bool UseBASE64Intrinsics = false {product} {command line}
java -Xms2G -Xmx2G -XX:-UseBASE64Intrinsics -jar paper.jar --nogui
To see the risk for ourselves, we ran the bounded test program from Calif’s Java4Shell write-up, unchanged, with the host’s Java. It prints REPRODUCED when the decoder has written past its buffer. The results show why a quiet run of it proves nothing:
| Java on the host | Runs | Result |
|---|---|---|
| 21.0.3, no flag | 5 | REPRODUCED 3 times, NOT REPRODUCED twice |
21.0.3 with -XX:-UseBASE64Intrinsics | 3 | NOT REPRODUCED every time |
| 21.0.13.1 after the update | 10 | NOT REPRODUCED every time |
Our vulnerable build only tripped on three runs out of five, and Calif’s input is sized for Java 21 and 25, so it never fires on a Java 17 server at all. Treat a REPRODUCED as proof the host is exposed, and keep the build string and the UseBASE64Intrinsics line from jcmd as the real evidence. Skip -XX:UseAVX=2, the other stopgap Calif lists: it turns off every AVX-512 optimisation, and a JVM on ARM refuses to start with it.
Updating itzg/minecraft-server containers
Most people who run Minecraft in Docker use the itzg image, and its maintainers moved fast: pull request 4400, merged on 18 November, makes the startup script add -XX:-UseBASE64Intrinsics whenever the server runs Java 17 or later. The catch is which tags carry it. We checked the creation date and the Java build of four common tags:
for t in latest java21 stable 2026.11.0-java21; do sudo docker pull -q itzg/minecraft-server:$t >/dev/null; printf '%-18s %s ' $t "$(sudo docker image inspect -f '{{.Created}}' itzg/minecraft-server:$t | cut -c1-16)"; sudo docker run --rm --entrypoint java itzg/minecraft-server:$t -version 2>&1 | sed -n 2p; done
Every tag still runs an unfixed Temurin build, and only the two built on 19 November include the new startup logic.
latest 2026-11-19T01:59 OpenJDK Runtime Environment Temurin-25.0.5+8 (build 25.0.5+8-LTS)
java21 2026-11-19T01:59 OpenJDK Runtime Environment Temurin-21.0.13+9 (build 21.0.13+9-LTS)
stable 2026-11-09T14:10 OpenJDK Runtime Environment Temurin-25.0.5+8 (build 25.0.5+8-LTS)
2026.11.0-java21 2026-11-09T14:10 OpenJDK Runtime Environment Temurin-21.0.13+9 (build 21.0.13+9-LTS)
We started a Paper server on latest and read its log and process list.
sudo docker run -d --name mc -e EULA=TRUE -e TYPE=PAPER -e MEMORY=2G -p 25565:25565 itzg/minecraft-server:latest
sudo docker logs mc 2>&1 | grep -E 'Java4Shell|Starting minecraft server version|Done \('
sudo docker top mc -o pid,args | grep -E 'PID|java'
Its init script logs the mitigation, and the server’s Java process carries the flag.
[init] Disabling UseBASE64Intrinsics to mitigate Java4Shell exploit (CVE-2026-114938)
[09:42:25 INFO]: Starting minecraft server version 26.3
[09:42:31 INFO]: Done (12.652s)! For help, type "help"
PID COMMAND
8420 mc-server-runner --stop-duration 60s -- java -XX:-UseBASE64Intrinsics -Xmx2G -Xms2G -jar /data/paper-26.3-256.jar
8962 java -XX:-UseBASE64Intrinsics -Xmx2G -Xms2G -jar /data/paper-26.3-256.jar
On stable, the same server logged nothing about Java4Shell (the grep count was 0) and started Java without the flag: java -Xmx2G -Xms2G -jar /data/paper-26.3-256.jar. If you pin stable or a dated tag for safer upgrades, add the flag yourself through JVM_XX_OPTS, the variable the image reserves for -XX options:
sudo docker run -d --name mc-old -e EULA=TRUE -e TYPE=PAPER -e MEMORY=2G -e JVM_XX_OPTS=-XX:-UseBASE64Intrinsics itzg/minecraft-server:stable
sudo docker top mc-old -o pid,args | grep -E 'PID|^[0-9]+ +java'
Now the pinned image starts Java with the flag.
PID COMMAND
11063 java -XX:-UseBASE64Intrinsics -Xmx2G -Xms2G -jar /data/paper-26.3-256.jar
In a Compose file the variable goes under the service’s environment: key, and you recreate the container with docker compose up -d so the new environment applies; a plain restart keeps the old one. On latest or a javaNN tag, a docker pull and a recreate are enough, and the image’s FIX_JAVA4SHELL_EXPLOIT variable (default true) is how you’d turn the automatic flag off later. The fixed JDK itself arrives when the image rebuilds on a patched Temurin, which issue 4405 tracks. Our Java4Shell guide for Docker and Kubernetes covers the other Java base images and how to check every container on a host.
Setting the flag on Pterodactyl
Pterodactyl runs each server in one of its yolks Java images. Those images still run an unfixed Java, but a maintainer commit on 17 November (dba0c86, 22:42 UTC) made the image entrypoint export JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsics, so a server started from a current image already has the stopgap. We pulled the two images the Paper egg offers for current Minecraft:
for t in java_21 java_25; do sudo docker pull -q ghcr.io/pterodactyl/yolks:$t >/dev/null; printf '%-8s %s ' $t "$(sudo docker image inspect -f '{{.Created}}' ghcr.io/pterodactyl/yolks:$t | cut -c1-16)"; sudo docker run --rm --entrypoint java ghcr.io/pterodactyl/yolks:$t -version 2>&1 | sed -n 2p; done
Both were built on 17 November, after that commit, on the unfixed Temurin builds. This check bypasses the entrypoint with --entrypoint java, so it shows only the Java build, not the flag.
java_21 2026-11-17T23:18 OpenJDK Runtime Environment Temurin-21.0.13+9 (build 21.0.13+9-LTS)
java_25 2026-11-17T23:18 OpenJDK Runtime Environment Temurin-25.0.5+8 (build 25.0.5+8-LTS)
Out of the box, the Paper egg starts servers with this command.
java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar {{SERVER_JARFILE}}
On a node that cannot pull the current image, set the flag yourself. As a panel admin, open the server in the admin area, go to its Startup tab and add the flag after java in the startup command, then restart the server from its console. Changing the egg instead covers servers you create later but not the ones that already exist. The edited command reads:
java -Xms128M -XX:MaxRAMPercentage=95.0 -XX:-UseBASE64Intrinsics -Dterminal.jline=false -Dterminal.ansi=true -jar {{SERVER_JARFILE}}
We didn’t stand up a Panel and Wings for this, so the startup edit above is untested in a live panel. What we did prove is that the yolks image honours the flag when it reaches the JVM, here passed through JAVA_TOOL_OPTIONS, which every HotSpot JVM reads at startup:
sudo docker run --rm --entrypoint sh -e JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics ghcr.io/pterodactyl/yolks:java_21 -c 'java -XX:+PrintFlagsFinal -version 2>&1 | grep -E "Picked up|UseBASE64Intrinsics"'
Java acknowledges the variable and reports the intrinsic off.
Picked up JAVA_TOOL_OPTIONS: -XX:-UseBASE64Intrinsics
bool UseBASE64Intrinsics = false {product} {environment}
Before restarting servers, run docker pull ghcr.io/pterodactyl/yolks:java_21 (and java_25) on each node so new containers get the current entrypoint. After the restart, the server console should show Picked up JDK_JAVA_OPTIONS: -XX:-UseBASE64Intrinsics; if you edited the startup command instead, check the container with docker top, the same way as the itzg check above, and look for the flag in the java line. Hosts that sell Pterodactyl servers should do this on every node with a Zen 4 or newer CPU, because a server that migrates onto one of those nodes becomes exposed without anyone touching it.
Checking the launcher’s Java on player PCs
Players are a separate case, because the official Minecraft Launcher downloads its own Java for the game, so a player’s PC is patched only when Mojang updates that runtime. Mojang publishes the runtimes in a public manifest, and we read it on 19 November:
| Launcher runtime | Used by | Linux and macOS | Windows x64 |
|---|---|---|---|
| java-runtime-epsilon (Java 25) | 26.1 to 26.3 | 25.0.5.1, updated 18 November | 25.0.1, from December 2025 |
| java-runtime-delta (Java 21) | 1.20.5 to 1.21.11 | 21.0.7 | 21.0.7 |
| java-runtime-gamma and beta (Java 17) | 1.18 to 1.20.4 | 17.0.15 | 17.0.15 |
So far Mojang has fixed only the Java 25 runtime, and only on Linux and macOS. The Java 21 and 17 runtimes and the Windows Java 25 runtime are all in the affected range. Mojang hasn’t published a statement on Java4Shell, and we found no public report of an attack path against the game client, so we can’t tell you a player is at risk from a server. The server side is where an admin can act today. Apple silicon Macs and Windows on ARM PCs get the arm64 runtimes from that manifest, and ARM64 is outside this flaw entirely, whatever the version number says.
Keeping the server patched
Most Minecraft setups are on the stopgap this week, so the work isn’t over when the flag is in. These are the checks we’d keep on the calendar until every row in the first table reads fixed:
- Watch itzg issue 4405 and the Temurin image rebuild, then pull and recreate the container.
- On Debian, upgrade the openjdk packages the day the security announcement lands.
- After every Java update, run
jcmdagainst the live server, not justdpkg. - Take the flag back out once the running build is fixed.
We removed the flag from our patched Paper server, and jcmd showed the intrinsic back on {default} while the server ran 21.0.13.1. That is the end state you want, because a fixed JVM with the fast decoder is better than a fixed JVM with a flag nobody remembers why it’s there. If you’re planning new hardware for the server, our home Minecraft server hardware guide covers the CPU and mini PC choices; run the four-flag check above on whatever you pick.