1. Home
  2. Java4Shell check
Free tool · Java4Shell

Is your Java server vulnerable to Java4Shell?

Java4Shell (CVE-2026-114938) is a memory corruption in the accelerated Base64 decoder of OpenJDK, fixed on 17 November 2026. It only strikes when two conditions meet: an affected Java version and an x86-64 CPU with AVX-512 VBMI. No remote test can see either of them: our script reads both on the machine, in a few seconds, and gives the verdict.

  • 17, 21, 25, 27affected Java lines, plus the unsupported releases 18 to 26
  • AVX-512 VBMIrequired instructions: Intel Ice Lake and later, AMD Zen 4 and later
  • 8.1 to 9.2CVSS severity per Oracle and the discoverers, unauthenticated code execution reported

Run the check on your server

The script changes nothing and sends nothing: it looks for the installed and running Java runtimes, asks each one for its version and the instructions it really uses, then reads the options of the Java processes. Run it on every server that hosts a Java application.

Linux and macOS

With sudo, the script also sees the services started by other accounts (Jira, Confluence, Jenkins, Keycloak…).

One line
curl -fsSL https://krakenshield.eu/tools/java4shell-check.sh | sudo sh
Reading the script before running it
curl -fsSLO https://krakenshield.eu/tools/java4shell-check.sh
less java4shell-check.sh
sudo sh java4shell-check.sh

Download the script (java4shell-check.sh)SHA-256 fingerprint : 1936f94a65dac2be3cb5808887346bca0564a79fe60ac8cd6af98de3e77b41b7

Windows (PowerShell)

Open PowerShell as administrator to also read the Tomcat services of Jira or Confluence. The language follows Windows.

One line
irm https://krakenshield.eu/tools/java4shell-check.ps1 | iex
Reading the script before running it
Invoke-WebRequest https://krakenshield.eu/tools/java4shell-check.ps1 -UseBasicParsing -OutFile java4shell-check.ps1
notepad java4shell-check.ps1
powershell -ExecutionPolicy Bypass -File .\java4shell-check.ps1

Download the script (java4shell-check.ps1)SHA-256 fingerprint : a9e3343fc26c5d4903852c8baeb8c42c98c4fc73ec2482f65292d3f93ef220da

Docker and Kubernetes containers

An image ships its own Java: check every image or pod. The CPU seen is the host’s.

One line
docker run --rm --entrypoint sh IMAGE -c "$(curl -fsSL https://krakenshield.eu/tools/java4shell-check.sh)"
Reading the script before running it
kubectl exec POD -- sh -c "$(curl -fsSL https://krakenshield.eu/tools/java4shell-check.sh)"

Read-only: nothing installed, nothing changed, no data sent. The script is short and commented, read it before running it.

Sample result

A Linux server on an Intel Xeon Ice Lake with an unpatched Java 17, running Jira:

KrakenShield · Java4Shell check (CVE-2026-114938) v1.0.0
Machine : Linux x86_64, Intel(R) Xeon(R) Gold 6338 CPU @ 2.00GHz
CPU : AVX-512 VBMI present, the vulnerable path can be used

Java runtimes found: 2
[VULNERABLE] /opt/atlassian/jira/jre/bin/java
    Version 17.0.20+8 (Temurin-17.0.20+8) · affected version, the JVM uses AVX-512 VBMI (UseAVX=3, UseBASE64Intrinsics=true).
    → Update to 17.0.21.1 or later, then restart the applications.
[OK] /usr/lib/jvm/java-11-openjdk-amd64/bin/java
    Version 11.0.25+9 · Java 11 is not affected.

Running Java processes: 1
  PID 1873 (jira, jira) : VULNERABLE, no mitigation option

Result: VULNERABLE (1 runtime exploitable on this CPU).

How to read the verdict

  • VULNERABLE

    Affected version and a CPU with AVX-512 VBMI, intrinsic active. Update today; meanwhile, add the -XX:-UseBASE64Intrinsics option and restart.

  • UPDATE

    Affected version, but not exploitable on this CPU (or mitigation option active). Update anyway: a virtual machine can be moved to a newer host.

  • CHECK

    The script could not read the version or the CPU features. Run java -version by hand and compare it with the fixed releases.

  • OK

    Java not affected (8, 11, 17.0.0 to 17.0.5) or already fixed (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 and later).

Java4Shell in short

Java4Shell (CVE-2026-114938) is a heap overflow in the accelerated version of the HotSpot JVM Base64 decoder, used by java.util.Base64. This optimised version only exists on x86-64 CPUs with the AVX-512 F, BW, VBMI and BMI2 instructions.

Affected releases: Java 17.0.6 to 17.0.21.0.x, 21 before 21.0.13.1, 25 before 25.0.5.1, 27 before 27.0.1.1, and every 18, 19, 20, 22, 23, 24 and 26 release, which will get no fix. Java 8 and 11 are not affected, except Oracle’s Java 8 Enterprise Performance Pack. Neither are ARM64 servers.

An application only has to decode a Base64 string supplied by the attacker: authentication header, token, SAML assertion, uploaded file. The discoverers report unauthenticated code execution on Keycloak, Jira, Confluence, Jenkins, Artifactory and PingFederate in their default setup.

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

How to protect your servers

  1. 1

    Install the 17 November fixes

    Move to 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1 (or later), then restart every application: a running JVM keeps the old version in memory. Do not forget bundled runtimes (the jre folder of Jira or Confluence, Docker images).

    sudo apt update && sudo apt install --only-upgrade openjdk-17-jre-headless
    sudo dnf upgrade java-17-openjdk
  2. 2

    Meanwhile: turn off the accelerated decoder

    This option only disables the Base64 intrinsic and leaves the other optimisations alone. Add it to every JVM launch or to the environment of the service, then restart.

    JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics"
  3. 3

    Check that the option is active

    On a running process, jcmd shows the value really applied. Then run the script again: the process should show up with the mitigation option.

    jcmd <PID> VM.flags -all | grep -E "UseAVX|UseBASE64Intrinsics"
Java4Shell check

Frequently asked questions

Why a script rather than an online test?

The flaw depends on the Java version and on the server CPU, two facts invisible from the Internet. A remote test could only guess, or send crafted data at the risk of crashing the application. The script reads both on the machine, without changing anything.

Does the script send anything to KrakenShield?

No. It makes no network connection: it runs the Java runtimes it finds with -version, reads /proc/cpuinfo or the Windows information, and prints the result in the terminal. You can download it and read it before running it.

My CPU has no AVX-512 VBMI, should I still update Java?

Yes. A virtual machine or container can be moved to a newer host without you knowing, especially in the cloud. And a vulnerable version remains a finding in an audit or a security questionnaire.

How do I know whether my CPU has AVX-512 VBMI?

On Linux: grep -o -w avx512vbmi /proc/cpuinfo | head -1. The JVM tells too with java -Xlog:os+cpu -version (look for avx512_vbmi). Intel Xeon Ice Lake, Sapphire Rapids and later, and AMD EPYC and Ryzen Zen 4 and later have it.

What does "UPDATE" mean?

Your Java is an affected release, but the flaw cannot be exploited on this machine today: CPU without AVX-512 VBMI, ARM architecture or mitigation option active. Plan the update, without extreme urgency.

Sources

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.