1. Home
  2. Knowledge Center
  3. Blog
  4. Java4Shell: am I vulnerable? Check in 4 steps
Guide

Java4Shell: how to tell whether your Java servers are vulnerable

Java4Shell worries every team running Jira, Confluence, Jenkins or Keycloak. Yet many servers cannot be exploited: it takes a specific Java version and a specific CPU. Here is how to check in four steps, or with a single command.

Nestor
ByNestor
6 min read
Nestor explains software supply chains using modules in a robotics workshop.
Tip

Want the answer right now? Our free Java4Shell check runs the four checks of this article in one command, on Linux, macOS or Windows. It changes nothing and sends no data.

Java4Shell in two sentences

On 17 November 2026, OpenJDK and Oracle fixed CVE-2026-114938, nicknamed Java4Shell: a memory overflowBuffer overflowA programming error in which software writes more data than a memory area can hold, overwriting neighbouring data, which can crash the program or let malicious code run. in the accelerated Base64 decoder of the Java virtual machine. Its discoverers report unauthenticated remote code executionRemote code execution (RCE)A vulnerability that lets an attacker run their own commands on a remote machine, usually over the network, which often amounts to taking control of it. on Keycloak, Jira, Confluence, Jenkins, Artifactory or PingFederate, in their default setup.

The good news is that the flaw only strikes when several conditions meet. Many servers cannot be exploited. You still have to check, server by server.

6 of 11
Java applications tested by the discoverers that could be exploited without authentication in their default setup
Source: OX Security, based on Calif (November 2026)

The four conditions

A server is exploitable only when all of these hold:

  1. an affected Java version;
  2. an x86-64 CPU with the AVX-512 VBMI instructions;
  3. the accelerated decoder active in the JVM, which is the default on those CPUs;
  4. an application decoding Base64 from outside: authentication header, token, SAML assertion, uploaded file. Almost every web application does.

The first three take a few minutes to check. The fourth is nearly always true: assume it is.

Step 1: find every Java

The trap is checking only the system Java. Jira, Confluence and many applications ship their own Java, in a jre folder. Every Docker image bundles its own. On a Linux server, start by listing the Java runtimes of running processes, then the installed ones:

ps -eo pid,user,args | grep '[b]in/java'
ls -d /usr/lib/jvm/* /opt/*/jre /opt/*/*/jre 2>/dev/null
java -version

On Windows, look for java.exe in Program Files and check the services: Jira and Confluence often run in a Tomcat service that loads Java without going through java.exe. In Kubernetes or Docker, the question is asked image by image.

Step 2: compare the version

Run every Java you found with the -version option, then compare with this table:

Line Vulnerable releases Fixed release
Java 8 and 11 none (except Oracle’s Java 8 Enterprise Performance Pack) not affected
Java 17 17.0.6 to 17.0.21.0.x 17.0.21.1
Java 21 before 21.0.13.1 21.0.13.1
Java 25 before 25.0.5.1 25.0.5.1
Java 27 before 27.0.1.1 27.0.1.1
Java 18 to 20, 22 to 24, 26 all none: move to 21 or 25

Vendors append their own number: Amazon Corretto 17.0.21.1.2, Azul Zulu 21.0.13.1+2, Debian 21.0.13.1+2-1. Those are fixed releases. Beware of misleading four-part versions: a 17.0.21.0.2 is not fixed. And on Red Hat or Ubuntu, a backported fix may keep an older number: trust the distribution’s security advisory.

Step 3: check the CPU

The vulnerable code only exists on x86-64 CPUs with the AVX-512 F, BW, VBMI and BMI2 instructions. In practice: Intel Xeon Ice Lake, Sapphire Rapids and later, and AMD Zen 4 and later (EPYC Genoa, Ryzen 7000). Xeon Skylake and Cascade Lake, AMD Zen 3 and older, and every ARM64 server (Graviton, Ampere) are not affected.

On Linux, one command is enough: if it prints nothing, the CPU has no VBMI.

grep -o -w avx512vbmi /proc/cpuinfo | head -1

In the cloud, the instance family gives a first hint: on AWS, m6i, c6i and r6i (Ice Lake), m7i (Sapphire Rapids) and m7a (Zen 4) have it, m5 and m6a do not. But some families mix several CPU generations: check on the machine itself.

Step 4: check what the JVM really does

The most reliable way is to ask Java itself. The first command lists the instructions the JVM uses (look for avx512_vbmi), the second shows whether the accelerated decoder is active:

java -Xlog:os+cpu -version | grep -o 'avx512_vbmi\b'
java -XX:+PrintFlagsFinal -version | grep -E ' (UseAVX|UseBASE64Intrinsics) '

If UseAVX is 3 and UseBASE64Intrinsics is true, with an affected version, the server is vulnerable. For an application already running, jcmd shows the values really applied: jcmd 1873 VM.flags -all | grep -E "UseAVX|UseBASE64Intrinsics" (replace 1873 with the process ID).

The shortcut: one script does it all

These four steps, multiplied by the number of servers and bundled runtimes, quickly take a morning. Our free Java4Shell check automates them: it finds the Java runtimes of the server (system, applications, running processes, Windows services), queries each one and prints a clear verdict.

curl -fsSL https://krakenshield.eu/tools/java4shell-check.sh | sudo sh

On Windows, in PowerShell: irm https://krakenshield.eu/tools/java4shell-check.ps1 | iex. The script is short, readable and makes no network connection: download it and read it before running it if your policy requires.

You are vulnerable: what now?

  1. Update Java to 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1, including bundled runtimes and Docker images, then restart every application: a running JVM keeps the old version in memory.
  2. Meanwhile, add the -XX:-UseBASE64Intrinsics option to every JVM launch, or JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics" to the service environment, then restart. It only disables the accelerated decoder.
  3. Start with what is exposed to the Internet: Jira, Confluence, Jenkins, Keycloak, Artifactory. Our non-destructive penetration test can help you inventory them.
  4. Watch for crashes: every JVM crash leaves an hs_err_pid*.log file. A series of crashes on an exposed application may signal attempts.

Your CPU has no AVX-512 VBMI? Update anyway, without extreme urgency: the next virtual machine migration could change the picture. To follow this kind of flaw as it happens, see our CVE watch, which ranks each flaw by its real priority.

Key takeaways

  1. Java4Shell needs two conditions at once: an affected Java version (17.0.6 and later, 21, 25, 27 before the 17 November 2026 fixes) and an x86-64 CPU with AVX-512 VBMI.
  2. Java 8 and 11 are not affected, nor are ARM64 servers. Releases 18 to 26 other than 21 and 25 will never get a fix.
  3. No online test can see it: the check happens on the server, including for the Java runtimes bundled with applications and Docker images.
  4. A CPU without AVX-512 VBMI protects you today, not tomorrow: a virtual machine can move to another host. Update in every case.
  5. Until the fix, the -XX:-UseBASE64Intrinsics option turns off the vulnerable code without disabling the other optimisations.

Frequently asked questions

How can I quickly tell whether I am vulnerable to Java4Shell?

Run our free script on the server: it reads the version of every installed or running Java, checks whether the JVM uses the AVX-512 VBMI instructions and gives a verdict. It changes nothing and sends nothing. By hand, compare java -version with the fixed releases, then look for avx512vbmi in /proc/cpuinfo.

Which Java versions fix Java4Shell?

The releases published on 17 November 2026: 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, or their equivalents from Amazon Corretto, Azul Zulu and Oracle. Linux distributions ship their packages at their own pace: check your distribution’s security advisory.

My CPU has no AVX-512 VBMI, am I safe?

On that machine and today, yes: the vulnerable code is not used. But a virtual machine can be moved to a newer host, especially in the cloud. Plan the update anyway.

Does the -XX:-UseBASE64Intrinsics option slow my applications down?

Only Base64 decoding falls back to the plain Java version, slightly slower. For most applications the difference is invisible. It is a stopgap: the update is still required.

Is Java4Shell being exploited?

As of 19 November 2026, no active exploitation is reported and the full exploit chains are not public. Crashing a vulnerable JVM is easy, though: the outage risk is immediate.

Sources

Go furtherCode and the software supply chainCyber A to Z, chapter 12

More from the blog

From theory to practice

So how does your system measure up?

Create your account and get an A+ to F grade for your domains’ encryption in minutes, with every finding explained and the fix to apply.

Run the audit from your account: an A+ to F grade for your domains’ encryption in minutes, with every finding explained and the fix to apply.

Belinda

Contact us

A question, a project, a partnership? Write to us: the team answers by email, usually within one business day.

Your details are only used to answer you. Do not include passwords or vulnerability details.