Dexaloop › Tech › Security and privacy

Security and privacy · How-to

Java4Shell: how to check if your Java servers are affected, and how to fix them

CVE-2026-114938 needs two things to line up, a recent Java build and a recent x86-64 processor, so checking both tells you quickly whether a server is at risk.

By DexaloopPublished 23 November 20269 min readSources listed below

Key takeaways

  • Java4Shell (CVE-2026-114938) is a memory corruption bug in the Base64 decoder of the x86-64 HotSpot JVM. CISA says crafted Base64 input could allow unauthenticated remote code execution.
  • Calif, which reported it, says OpenJDK 17.0.6 and newer are affected, but only on x86-64 CPUs that have all four flags avx512f, avx512bw, avx512vbmi and bmi2. Red Hat says ARM64 is not known to be affected.
  • On each line, the November 2026 fix is the build with 1 as the fourth number (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1), as Ubuntu and Debian ship. Oracle lists 17.0.21.0.3 and the matching .0.3 builds as affected, so 17.0.21 alone is not enough.
  • If you cannot update yet, Calif and Red Hat give -XX:-UseBASE64Intrinsics as an interim flag. Check it is live with jcmd, and remove it after patching.
  • Java bundled inside apps, containers and appliances counts too. CISA warns these may not show up in software inventories.
On this page
  1. What you need before you start
  2. The four checks at a glance
  3. What Java4Shell is, in plain words
  4. Who is affected
  5. Step 1: Find every Java runtime
  6. Step 2: Check the Java version
  7. Step 3: Check the CPU flags
  8. Step 4: Update to a fixed build, then restart
  9. If you cannot update yet: the workaround flag
  10. Containers, virtual machines and bundled Java
  11. Troubleshooting
  12. What is confirmed and what is not settled

Java4Shell (CVE-2026-114938) is a memory corruption bug in the Base64 decoder of the x86-64 HotSpot Java virtual machine, disclosed on 17 November 2026. A server is at risk when two things are true: it runs Java 17.0.6 or later, and its processor is x86-64 with AVX-512 VBMI. The fix is to update to a patched build, such as 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1 (or your vendor's equivalent), and restart every Java process.

This guide walks through four checks: find every Java runtime, read its version, check the CPU flags, and install the right fixed build. It also covers the interim workaround flag, how to prove it is active, and Java hidden inside containers and bundled apps.

What you need before you start

  • Shell access to each server, with sudo for the commands that read /proc and install packages. The commands here are for Linux.
  • The ability to restart every Java service, because an update only takes effect after a restart.
  • Your vendor's advisory for your Java build, since each vendor names its own fixed versions.

The four checks at a glance

  1. Find every Java runtime, including Java bundled in apps, containers and appliances.
  2. Read the Java version of the exact binary each process runs.
  3. Check the CPU flags for avx512f, avx512bw, avx512vbmi and bmi2.
  4. Update to a fixed build and restart. If you cannot yet, use the workaround flag and prove it is active.
Take each Java process CPU has all four flags? avx512f, avx512bw, avx512vbmi, bmi2 No Not on the vulnerable path Yes Java 17.0.6 or newer? Oracle 8u511b33-perf or GraalVM EE: yes No Other 8 and 11: not affected Yes Fixed build? for example 17.0.21.1 Yes Fixed, once the process is restarted No Update, then restart Until you can: -XX:-UseBASE64Intrinsics then confirm with jcmd
Run this decision for every Java process you find in Step 1. Vendors name their own fixed versions, so confirm in your vendor's advisory.

What Java4Shell is, in plain words

Base64 is a way to turn binary data into plain text, so it can travel inside web requests, tokens, certificates and config files. Java decodes Base64 constantly, often on data that arrives from the network before anyone logs in.

To make that fast, the Java virtual machine (HotSpot) swaps the plain Java code for hand-tuned processor instructions on CPUs that support them. These are called "intrinsics". Calif, the security firm that found the bug independently and reported it to Oracle, says the faulty code is the accelerated decoder used on x86-64 chips with AVX-512 VBMI. The CVE record classes it as a heap-based buffer overflow (CWE-122, added by CISA).

CISA's alert puts the risk simply: "Specially crafted Base64 input could crash the JVM and allow for unauthenticated remote code execution." Calif names Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins and PingFederate as reachable before login, and says its lists are not exhaustive.

Severity scores differ by who is scoring. Oracle, as the CVE authority, gives it 8.1 under CVSS 3.1. Red Hat rates it 9.8 (Critical), and Calif gives 9.2 under CVSS 4.0. The main difference is how hard each thinks the attack is.

Who is affected

Your setupStatusSource
OpenJDK 17.0.6 or newer (17, 21, 25, 27 lines) on x86-64 with AVX-512 VBMIAffected until patchedCalif, Red Hat
Builds of OpenJDK such as Amazon Corretto, Eclipse Temurin, Azul ZuluAffected, same conditionsCalif
Oracle Java SE 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3Listed as affectedCVE record (Oracle)
Oracle Java SE 8u511b33-perf (Enterprise Performance Pack)Listed as affectedCVE record (Oracle)
Oracle GraalVM for JDK 17.0.21.0.3 and 21.0.13.0.3; Oracle GraalVM Enterprise Edition 21.3.20.0.3Listed as affectedCVE record (Oracle)
Standard OpenJDK 8 and 11Not affectedRed Hat
ARM64, or x86-64 without AVX-512 VBMINot known to be affectedRed Hat, Calif

The third row is the trap. A version that starts 17.0.21 is not automatically fixed. Oracle lists 17.0.21.0.3 as affected; the November 2026 fix is the build where the fourth number is 1.

Step 1: Find every Java runtime

CISA's advice is to inventory JDKs and runtimes, including those bundled with third-party applications, container images and appliances, because they "may not appear as separate entries in software inventories." Jira, Jenkins, Keycloak and many vendor appliances ship or pin their own Java.

On Linux, list the Java processes that are running now and the binary each one uses:

ps -eo pid,args | grep '[j]ava'
sudo readlink -f /proc/<pid>/exe

Replace <pid> with each process number. The second command prints the full path of the java program that process is really running, which may not be the one on your PATH.

Step 2: Check the Java version

Run the exact binary you found in Step 1 with -version:

/path/to/that/java -version

Read the full version string. Affected: 17.0.6 and later on the 17 line, and the 21, 25 and 27 lines, up to the fixed build. Not affected: standard 8 and 11. If you installed Java from your Linux distribution, also check the package version, as shown in Step 4.

Step 3: Check the CPU flags

The bug only runs on x86-64 processors that support AVX-512 VBMI. Calif's check on Linux prints the matching flags from /proc/cpuinfo:

grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'

Calif says the output "must include all four flags": avx512f, avx512bw, avx512vbmi and bmi2. If any is missing, that host does not take the vulnerable path. Red Hat's bulletin gives a one-line version that prints a verdict, either "VULNERABLE" or "Unaffected":

grep '^flags[[:blank:]]' /proc/cpuinfo | awk -vRS='[[:space:]]+' -vORS=' ' '/^(avx512f|avx512bw|avx512vbmi|bmi2)$/ && !flags[$0]++; END{printf ": %s hardware!\n", length(flags)==4?"VULNERABLE":"Unaffected"}'

Calif lists the mainstream chips that meet the condition: Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, and AMD EPYC and Ryzen on Zen 4 or newer.

A worked example

Say a Jenkins server on Ubuntu 24.04 runs openjdk-17, and java -version shows 17.0.19. The CPU check prints all four flags. Both conditions are true, so the server is exposed. After updating to Ubuntu's fixed package and restarting Jenkins, java -version should show 17.0.21.1. If the same server ran on an ARM64 instance, the CPU check would print nothing, so it would not be on the vulnerable path.

Step 4: Update to a fixed build, then restart

The pages for Oracle's November 2026 patch update and the OpenJDK advisory did not load when we checked, so the table below uses vendor pages we could read. Each vendor names its own builds. Always confirm in your vendor's advisory.

Java lineUbuntu and Debian fixed package (upstream part)Amazon Corretto (17 Nov 2026)Oracle, as reported by Tenable
1717.0.21.1+217.0.21.1.217.0.21.1
2121.0.13.1+221.0.13.1.221.0.13.1
2525.0.5.1+2not checked25.0.5.1
2727.0.1.1+427.0.1.1.427.0.1.1
8 Performance Packnot applicablenot applicable8u513-perf

Sources: Ubuntu's CVE page, the Debian security tracker, the Corretto 17, 21 and 27 changelogs, and Tenable's FAQ for Oracle's numbers.

Distribution examples, as each tracker showed on 23 November:

  • Ubuntu 24.04 LTS: openjdk-17 fixed in 17.0.21.1+2-1~24.04.1, openjdk-21 in 21.0.13.1+2-1~24.04.1, openjdk-25 in 25.0.5.1+2-1~24.04.1. On 20.04 and 18.04 the fixes are in ESM Apps.
  • Debian: fixed in the security suites, for example openjdk-17 17.0.21.1+2-1~deb12u1 in bookworm and openjdk-21 21.0.13.1+2-1~deb13u1 in trixie. Debian testing (forky) still showed openjdk-21 21.0.13.0.3+1-1 as vulnerable.
  • Red Hat: lists RHEL 8, 9 and 10 and its OpenJDK 17, 21 and 25 builds as affected. Its bulletin said to update "as soon as errata are available", so check the CVE page for current errata.

On Debian or Ubuntu, a typical update and check looks like this:

sudo apt update && sudo apt install --only-upgrade openjdk-17-jre-headless
apt-cache policy openjdk-17-jre-headless

Use the package names you actually have installed. Then restart every Java service. A running JVM keeps the old code in memory until it stops, so updating the files on disk is not enough. Run Step 2 again against the running process to confirm.

Keeping track of which release lines get fixes is easier if you know your runtime's support window. Our guides to Node.js LTS vs Current and .NET 8 end of support explain the same idea for other platforms.

If you cannot update yet: the workaround flag

Calif and Red Hat give two Java startup options that keep the vulnerable code from running:

  • -XX:-UseBASE64Intrinsics turns off only the accelerated Base64 path. Red Hat calls this the preferred option.
  • -XX:UseAVX=2 turns off all AVX-512 instructions. Use it on x86-64 only: Red Hat and Calif warn that a JVM on ARM64 will fail to start with it.

Add the option wherever your service sets Java options, for example JAVA_OPTS, a systemd unit, or a container environment variable, then restart. Red Hat's Keycloak example uses JAVA_OPTS_APPEND. Then prove it took effect in the running JVM, not just in your config:

jcmd <pid> VM.flags -all | grep -F UseBASE64Intrinsics

Red Hat says the expected output is bool UseBASE64Intrinsics = false. The real line will have extra spaces and an origin tag in braces; what matters is that it ends in false. Run jcmd as the user that owns the Java process (for example with sudo -u). Inside a container, run it through docker exec, podman exec or kubectl exec.

Two cautions. Tenable notes that "Neither Oracle nor the OpenJDK Vulnerability Group mentions these options in its advisory", so treat them as a stopgap. And Red Hat says to remove the flag once the permanent fix is in. CISA also suggests limiting and validating Base64 input at the application boundary, enforcing input size limits, and limiting unauthenticated access while you patch.

Containers, virtual machines and bundled Java

  • Containers: the Java version lives in the image, but the CPU is the host's. Check the Java version in every image, and run the CPU check on each host type. Rebuild images on a fixed base image and redeploy; patching the host's Java does nothing for a container.
  • Virtual machines and cloud instances: run the CPU check inside the guest. The flags it shows are the ones the JVM sees.
  • Bundled apps and appliances: if a product ships its own Java, you usually cannot swap it yourself. Watch that vendor's advisory. Red Hat, for example, lists its build of Keycloak and Single Sign-On 7.6 on OpenJDK 17 as affected.

The same "find the copy that is actually running" problem came up with our Plex security update guide.

Troubleshooting

  • The version starts 17.0.21 but you are unsure it is fixed. Check the fourth number. Oracle lists 17.0.21.0.3 as affected, and the November 2026 fix is the build where it is 1, such as 17.0.21.1.
  • java -version shows the new version, but the service seems unchanged. A running JVM keeps the old code in memory until it stops. Restart the service, then run Step 2 against the running process.
  • The CPU check prints nothing. If any of the four flags is missing, that host does not take the vulnerable path. ARM64 hosts are not known to be affected.
  • You patched the host, but the app runs in a container. Patching the host's Java does nothing for a container. Rebuild the image on a fixed base image and redeploy.
  • The workaround flag does not seem to apply. Run jcmd <pid> VM.flags -all | grep -F UseBASE64Intrinsics against the running JVM. Red Hat says the expected output is bool UseBASE64Intrinsics = false.
  • The JVM will not start after you added -XX:UseAVX=2. Red Hat and Calif warn that a JVM on ARM64 fails to start with it. Use that option on x86-64 only.
  • You cannot find the Java at all. It may be bundled inside an app or appliance. Watch that vendor's advisory, as you usually cannot swap it yourself.

What is confirmed and what is not settled

PointStatus
The bug is in the x86-64 HotSpot Base64 decoder and can allow unauthenticated RCEConfirmed by CISA
Affected range starts at OpenJDK 17.0.6, needs AVX-512 VBMIStated by Calif and Red Hat
Distribution fixed packages (Ubuntu, Debian) and Corretto buildsConfirmed on each vendor's page
Oracle's own fixed build numbersReported by Tenable; Oracle's page did not load for us
Exploitation in the wildCVE record: CISA assessment "none". Tenable: GreyNoise saw attempts as of 18 November, none confirmed successful. Tenable also reports that VulnCheck offers a working exploit to its customers
Product-specific exploit chainsCalif says it is withholding them until users have had time to upgrade

Questions

What is Java4Shell?

Java4Shell is the name for CVE-2026-114938, a memory corruption bug in the Base64 decoder of the x86-64 HotSpot JVM, disclosed on 17 November 2026. CISA says specially crafted Base64 input could crash the JVM and allow unauthenticated remote code execution. Calif, which found it independently and reported it to Oracle, published the write-up; Calif notes it had earlier been raised in an Adoptium support issue.

Which Java version fixes Java4Shell?

Ubuntu and Debian ship fixed OpenJDK packages based on 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. Amazon Corretto lists the CVE as fixed in 17.0.21.1.2, 21.0.13.1.2 and 27.0.1.1.4. Tenable reports the same four numbers for Oracle's builds. Other vendors use their own version strings, so check your vendor's advisory.

Is Java 8 or Java 11 affected?

Red Hat says OpenJDK 8 and 11 are not affected, and Calif gives the affected range as 17.0.6 and newer. The exception is Oracle's Java SE 8 Enterprise Performance Pack: Oracle lists 8u511b33-perf as affected.

Are ARM64 servers affected?

Calif says ARM64 CPUs are not affected, and Red Hat says ARM64 systems and x86-64 CPUs without AVX-512 VBMI are not known to be affected.

What does -XX:-UseBASE64Intrinsics do?

It turns off the hardware-accelerated Base64 code path where the bug sits. Calif and Red Hat give it as an interim workaround, and Red Hat calls it the preferred one. Tenable notes that Oracle and the OpenJDK Vulnerability Group do not mention it in their advisories. Remove it once you have patched.

Is Java4Shell being exploited?

The CVE record, as read on 23 November, shows CISA's assessment as exploitation "none". Tenable reported that GreyNoise saw exploitation attempts as of 18 November, without confirmed successful attacks, and that the CVE was not in CISA's Known Exploited Vulnerabilities catalog. Tenable also reports that VulnCheck offers a working exploit to its customers.

Sources

Written from the sources above and checked against them before publishing. Found a mistake? Email support@dexaloop.com and we will correct it.

More in Security and privacy