Java

Java4Shell Hits Every Minecraft 26 Server's Java. Your apt Java Is Patched. Your Container Isn't.

CVE-2026-114938, Java4Shell, is a memory-corruption bug in the JVM's Base64 decoder that affects Java 17 and later on recent x86 CPUs. Minecraft 26 requires Java 25, so every modern server is in range. Debian and Ubuntu shipped fixed Java within two days, but the Docker images most Minecraft...

Minecraft Steve toy
Photo by Mona Rivas / Unsplash

Most Minecraft server security advice is about the game. Whitelists, RCON passwords, plugins from strangers. Nobody audits the JVM, because Java is the memory-safe part of the stack. Java code doesn't get buffer overflows.

The JVM underneath it just did. On November 17, OpenJDK and Oracle shipped fixes for CVE-2026-114938, a memory-corruption bug in Java's Base64 decoder that its finders, Calif, named Java4Shell. It affects Java 17.0.6 and later, which includes Java 25. Minecraft 26 needs Java 25 or later.

What Java4Shell Is

To decode Base64 quickly, HotSpot uses hand-written x86 code built on AVX-512 VBMI instructions. Calif's write-up says that code mishandles a stray = in the last few characters. It calculates a negative output length, and the masked write that follows writes a full 64-byte block where it should write nothing, running past the end of the output array. Java then rejects the input as invalid, but the heap has already been overwritten.

Calif turned that into remote code execution. They demonstrated it before login against Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate in their default configurations, and after login against Kafka, Solr and Elasticsearch. They also say "there is no universal exploit." Each application needs its own work.

Affected Java 17.0.6 and later, plus 21, 25 and 27. Not 8 or 11, which lack the code path
Affected hardware x86-64 CPUs with AVX-512 VBMI only. Not ARM64
Score 8.1 under CVSS 3.1 (OpenJDK, Oracle), 9.2 under CVSS 4.0 (Calif)
Fixed Temurin builds 17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2, 27.0.1.1+4
Workaround Start the JVM with -XX:-UseBASE64Intrinsics
Exploited in the wild None reported as of November 18 (Rapid7, Cloudflare)

The two scores measure the same bug under different systems. Oracle and OpenJDK rate the attack complexity high, which is fair: the attacker needs the application to pass their Base64 to the decoder, on the right CPU.

OpenJDK's advisory fixes nine other CVEs in the same release. This is the one that matters for servers.

Why Minecraft Servers Are in Range

Mojang's version manifest for 26.3, the current release, lists "majorVersion": 25. So do 26.4 Snapshots 9 and 10, published on November 17. Every Java 25 build before 25.0.5.1 has the vulnerable decoder.

Whether a Minecraft server passes attacker-controlled Base64 to that decoder is a separate question, and I'm not going to map it. Calif didn't test Minecraft. The vanilla login protocol is binary, but the ecosystem around it, including proxies, plugins, skin handling and web panels, is a lot of Java code handling input from strangers. "Nobody's shown it yet" isn't a reason to leave it. The patch is a JVM update and the workaround is one flag.

The bigger exposure on a typical game box is everything else running on Java: a Jenkins for your plugin builds, Keycloak in front of a panel, an Elasticsearch for logs. Those are on Calif's demonstrated list.

Step One: Does Your CPU Have It?

The bug needs AVX-512 VBMI. Red Hat's bulletin gives this check:

grep -E -o '\b(avx512f|avx512bw|avx512vbmi)\b' /proc/cpuinfo | sort -u

Red Hat says no output means the CPU isn't affected. The flag that decides it is avx512vbmi: Calif's own check lists the four flags the vulnerable code needs (avx512f, avx512bw, avx512vbmi, bmi2), and older Skylake-era Xeons print the first two without the third. Red Hat lists the affected CPUs as Intel Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, and AMD Zen 4, Zen 5 and Zen 6. It names AWS C6i, M6i, R6i, C7i, M7i and R7a, GCP C3, C3D, C4, C4D, N4, N4D, M3 and M4, and Azure D-series v5 to v7 as the cloud instance families most likely to be affected.

I ran it on the cloud VM I use for testing:

avx512bw
avx512f
avx512vbmi

It's a 2-vCPU KVM guest reporting an Intel Xeon, CPU model 207, which Intel uses for Emerald Rapids. I didn't pick it for this. It's just what I got. If you rent a VPS or dedicated box on a recent Intel or AMD platform, assume you have it until the command says otherwise. A container sees the host's CPU flags, so the check works in either place.

We recommend reading Your Minecraft Server Wants Java 25, Not Java 26 to continue reading our selection of content. It covers why 25 is the right JDK for Minecraft in the first place, which matters when you pick the patched build.

Your Minecraft Server Wants Java 25, Not Java 26 Which Java version for a Minecraft server in 2026. What each JDK changed, why 25 beats 26, and the ZGC flag that now refuses to start. SudoSecurity · Santhdium

Step Two: Which Java Is Your Server Actually Running?

Here's where self-hosters split into two groups.

If you installed Java from your distro, you're probably already patched. Debian and Ubuntu both shipped fixed packages:

Distro Package Fixed version Notice
Debian 13 (trixie) openjdk-25 25.0.5.1+2-1~deb13u1 DSA-6640-1
Debian 13 (trixie) openjdk-21 21.0.13.1+2-1~deb13u1 DSA-6639-1
Debian 12 (bookworm) openjdk-17 17.0.21.1+2-1~deb12u1 DLA-4917-1
Ubuntu 22.04, 24.04, 26.04 openjdk-17, 21, 25 17.0.21.1, 21.0.13.1, 25.0.5.1 USN-9155-1 to 9158-1

apt upgrade, restart the server, and confirm java -version says 25.0.5.1.

If you run Minecraft in Docker, you're probably not patched yet. Adoptium published the fixed Temurin x64 Linux binaries on November 18, between 10:09 UTC for JDK 27 and 21:07 UTC for JDK 21. Its guidance says container images follow "once all of the binaries of a particular JDK version are published."

I pulled the images on November 19 and asked each for its Java version:

Image Java inside Patched?
eclipse-temurin:21-jre Temurin 21.0.13+9 No
eclipse-temurin:25-jre Temurin 25.0.5+8 No
itzg/minecraft-server:latest Temurin 25.0.5+8 No
itzg/minecraft-server:java25 Temurin 25.0.5+8 No
itzg/minecraft-server:java21 Temurin 21.0.13+9 No
itzg/minecraft-server:java21-alpine Temurin 21.0.13+9 No
itzg/minecraft-server:java17 Temurin 17.0.15+6 No
itzg/minecraft-server:java25-graalvm Oracle GraalVM 25.0.5.1+4.1 Yes

Both image families were rebuilt that same morning. itzg/minecraft-server:latest was pushed at 02:04 UTC and eclipse-temurin:25-jre at 05:15 UTC, and both still carried the October build of Java. At 21:35 UTC Docker Hub had no eclipse-temurin tags for 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1. When I checked again at 02:11 UTC on November 20, there were still none for 17, 21 or 25.

The java17 tag is worth noting on its own. It carries 17.0.15, six quarterly updates behind, so it was already missing earlier fixes before this one. The only patched tag I found was the GraalVM one, because Oracle ships its own builds and those were fixed on the 17th.

Check your own container:

docker exec mc java -version

Replace mc with your container's name. The second line should end in 25.0.5.1 or later.

Step Three: The Flag, Until the Image Catches Up

Until a fixed image lands, use the workaround Adoptium and Red Hat both give: -XX:-UseBASE64Intrinsics. It turns off the accelerated decoder and leaves other AVX-512 code alone. Red Hat also lists -XX:UseAVX=2, which turns off AVX-512 entirely, but warns that ARM64 JVMs don't recognize it and "will fail to start if it is applied there." The Base64 flag is the safer choice.

The itzg image takes -XX options through JVM_XX_OPTS, per its documentation:

services:
  mc:
    image: itzg/minecraft-server:java25
    environment:
      EULA: "TRUE"
      JVM_XX_OPTS: "-XX:-UseBASE64Intrinsics"

Don't trust that the variable worked. Check the running JVM. The itzg images ship a JRE, which has no jcmd, so I ran one from a JDK container that shares the server's process namespace:

docker run --rm --pid=container:mc --user 1000 eclipse-temurin:25-jdk \
  jcmd <java-pid> VM.flags -all | grep -F UseBASE64Intrinsics

Find <java-pid> with docker exec mc pgrep -x java, and use the container's UID for --user (itzg defaults to 1000). On my vanilla 26.3 server started with that compose setting:

     bool UseBASE64Intrinsics                      = false                                     {product} {command line}

false and {command line} mean the flag took. If it says true and {default}, your server is still running the vulnerable path.

For a bare-metal server, put the flag in your start script before -jar. If you use a panel, look for its JVM arguments field. Red Hat's other suggestion works anywhere: JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsics in the environment, which the java launcher reads on its own.

What the Flag Costs

I measured java.util.Base64 decode throughput on Temurin 25.0.5 on the same VM, with and without the flag, over three runs each:

Input size Accelerated decoder With -XX:-UseBASE64Intrinsics
512 bytes 4.8 to 5.9 GB/s 1.4 to 1.6 GB/s
64 KB 8.0 to 8.3 GB/s 1.5 to 1.7 GB/s

Decoding gets three to five times slower, and still runs at well over a gigabyte per second on one core. A Minecraft server doesn't decode anywhere near that much Base64, so you won't see it in your tick times. The flag is free for a game server. A service that decodes large attachments all day would notice, and that service should take the update rather than live on the flag.

The benchmark is my own, using only the public Base64 API:

// Measures java.util.Base64 decode throughput. Run with and without -XX:-UseBASE64Intrinsics.
import java.util.Base64;
import java.util.Random;

public class B64Bench {
    public static void main(String[] args) {
        int[] sizes = { 512, 65536 };
        Random rnd = new Random(42);
        Base64.Decoder dec = Base64.getDecoder();
        for (int size : sizes) {
            byte[] raw = new byte[size];
            rnd.nextBytes(raw);
            byte[] enc = Base64.getEncoder().encode(raw);
            long sink = 0;
            for (int i = 0; i < 200_000_000 / size; i++) sink += dec.decode(enc).length;   // warm-up
            long bytes = 0;
            long t0 = System.nanoTime();
            while (System.nanoTime() - t0 < 3_000_000_000L) {
                sink += dec.decode(enc).length;
                bytes += enc.length;
            }
            double secs = (System.nanoTime() - t0) / 1e9;
            System.out.printf("%6d-byte input: %8.0f MB/s decoded (sink %d)%n", size, bytes / secs / 1e6, sink % 7);
        }
    }
}

The sizes in the table are the raw bytes. The Base64 input is a third larger, and throughput is counted in input bytes. It only decodes valid Base64, so it never touches the bug.

We recommend reading Hardening the Box: Minecraft Server Security Below the Game to continue reading our selection of content. Java4Shell is the latest reason the box under the game deserves as much attention as the game itself.

Hardening the Box: Minecraft Server Security Below the Game Minecraft host hardening: the JDWP flag that grants remote code execution, why RCON leaks its password, SSH defaults, and BMC exposure. SudoSecurity · Santhdium

The Rest of the Box

A Minecraft host rarely runs only Minecraft. Before you call it done:

  • Proxies. Velocity and BungeeCord are Java too. Patch or flag them like the backend servers.
  • Panels and build tools. Jenkins is on Calif's pre-auth list. So is Keycloak, which shows up in front of self-hosted panels and dashboards. Red Hat's bulletin says Keycloak "decodes Base64 data on requests that arrive before authentication, so a login requirement does not protect an affected instance."
  • Bundled JVMs. Anything that ships its own Java, from Elasticsearch to some launchers, needs that vendor's update. Your distro's Java doesn't reach inside it.

If you run Keycloak or another self-hosted identity provider for your community, The SSO Tax covers why so many homelabs end up running one.

What This Doesn't Cover

I didn't trigger the bug, and this article doesn't include Calif's trigger input or any exploit detail. My test VM has the affected CPU, which made it a good place to check flags and versions, and a bad place to run anything else. I didn't audit Paper, Velocity, Geyser or any plugin for Base64 handling, and I make no claim either way about whether a Minecraft server is exploitable.

Image versions were changing by the hour when I wrote this. The table is what Docker Hub served on November 19. Bedrock servers aren't Java and aren't affected. Calif mentions a client-side exploit, but I didn't look at the Minecraft client or launcher.

The Actual Point

Minecraft 26 put every server on Java 25, and every Java 25 before 25.0.5.1 has the bug. Run the CPU check. If it prints avx512vbmi, check java -version in the place your server actually runs. That's your container, not your host.

Distro Java is fixed. Container Java is lagging. Add -XX:-UseBASE64Intrinsics, confirm it with jcmd, and take it back out once your image reports 25.0.5.1.

Bug details and quotes are from Calif's disclosure, the OpenJDK November 17, 2026 advisory, Red Hat's RHSB-2026-018, Adoptium's Java4Shell guidance, and Cloudflare's Java4Shell page. Fixed Temurin publish times are from the Adoptium API, and distro status is from the Debian security tracker and Ubuntu's CVE data. The CPU check command is reproduced from Red Hat's bulletin. The compose snippet uses the JVM_XX_OPTS variable from the itzg JVM options documentation. The benchmark is original code using java.util.Base64. Image versions, the CPU check, the jcmd output and the benchmark were run on November 19, 2026 on a 2-vCPU KVM guest, with Docker Hub images pulled that day, and every output is reproduced from those runs.

$ tail -f /forums

Discussion

Comments live on the community forums — sign in there to reply.