---
title: "Java4Shell: how to tell whether your Java servers are vulnerable"
description: "Java version, AVX-512 VBMI CPU, Base64 intrinsic: the four checks that tell whether Java4Shell (CVE-2026-114938) affects you, and a free script that runs…"
url: https://krakenshield.eu/knowledge/blog/java4shell-am-i-vulnerable/
lang: en
updated: 2026-11-19
publisher: KrakenShield (KRAKEN HOLDING SAS)
overview: https://krakenshield.eu/llms.txt
---
# Java4Shell: how to tell whether your Java servers are vulnerable
> Java version, AVX-512 VBMI CPU, Base64 intrinsic: the four checks that tell whether Java4Shell (CVE-2026-114938) affects you, and a free script that runs…

Guide Published 19 November 2026

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.

By **Nestor** 6 min read

> **Tip**
> Tip
> 
> **Want the answer right now?** Our [free Java4Shell check](https://krakenshield.eu/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 overflow](https://krakenshield.eu/knowledge/glossary/buffer-overflow/) in the accelerated Base64 decoder of the Java virtual machine. Its discoverers report unauthenticated [remote code execution](https://krakenshield.eu/knowledge/glossary/rce/) 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.

> **Nestor Former hacker turned defender:** Do not try to prove your application never decodes Base64. A plain Authorization: Basic header is enough. Check the version and the CPU instead: there, the answer is clear-cut.

## 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](https://krakenshield.eu/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.

> **Nestor Former hacker turned defender:** The verdict is one word per Java: VULNERABLE, UPDATE or OK. Paste the output into your ticket, it doubles as evidence for the audit.

## 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](https://krakenshield.eu/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](https://krakenshield.eu/knowledge/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

- [OpenJDK, vulnerability advisory of 17 November 2026](https://openjdk.org/groups/vulnerability/advisories/2026-11-17)
- [Oracle, November 2026 Critical Patch Update](https://www.oracle.com/security-alerts/cspunov2026.html)
- [Calif, Java4Shell technical analysis](https://calif.io/java4shell)
- [TuxCare, Java4Shell: versions, fix and workaround](https://tuxcare.com/blog/java4shell-cve-2026-114938/)
- [OX Security, Java4Shell: easy to crash, hard to exploit](https://www.ox.security/blog/java4shell-cve-2026-114938-rce-risk/)
- [Cycode, Java4Shell: affected versions and fixes per distribution](https://cycode.com/blog/java4shell-cve-2026-114938/)

[Go further**Code and the software supply chain** Cyber A to Z, chapter 12](https://krakenshield.eu/knowledge/a-to-z/12-code-and-software-supply-chain/) [All articles](https://krakenshield.eu/knowledge/blog/)

## More from the blog

[News **Holiday season scams targeting businesses: Black Friday, parcels, fake suppliers and gift cards**](https://krakenshield.eu/knowledge/blog/holiday-season-scams-business/) [Guide **US or European cybersecurity tools: sovereignty, GDPR and NIS2**](https://krakenshield.eu/knowledge/blog/european-cybersecurity-tools-sovereignty-gdpr/) [Checklist **WordPress security checklist: 12 essential settings to secure a small business site**](https://krakenshield.eu/knowledge/blog/wordpress-security-checklist/)
