Java4Shell is the kind of bug that makes you go and count how many copies of Java you really have. It sits in the Java runtime itself, not in some library you can grep for, and the researchers showed it working before login on Jenkins, Jira, Confluence, Keycloak, Artifactory and PingFederate. CISA put out an alert on 17 November telling everyone to patch immediately.
The fix itself is simple. The hard part is finding every JVM, because half of them hide inside products that ship their own copy. This post is the order I'd work in: find the runtimes, check whether the CPU makes them exposed, patch, apply the stopgap flag where you can't patch yet, and restart.
Quick answer
Java4Shell (CVE-2026-114938) is a memory-corruption bug in the AVX-512 Base64 decoder of the HotSpot JVM. You are exposed when an unpatched OpenJDK-based runtime from 17.0.6 onward (including 21, 25 and 27) runs on an x86-64 CPU with AVX-512 VBMI, such as Intel Xeon Ice Lake or newer and AMD Zen 4 or newer. Update to Oracle's fixed builds (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1) or your vendor's equivalent. If you can't patch today, start Java with -XX:-UseBASE64Intrinsics. Either way, restart every Java process, or nothing changes.
What Java4Shell actually is
Java has a fast, hand-written assembly version of its Base64 decoder that uses AVX-512 instructions on newer Intel and AMD chips. According to Qualys' write-up, feeding it a small, deliberately broken Base64 string makes it overrun its buffer by 62 bytes, and only after that damage does Java notice the input is invalid. That's enough to corrupt the heap, read secrets out of it and, with work, run code.
Base64 is everywhere in web apps: Basic auth headers, tokens, file uploads. That's why the bug often runs before anyone has logged in. The researchers at Calif rate it 9.2 on CVSS v4, Oracle gives it 8.1 on CVSS v3.1, and the CISA alert also warns that crafted input can simply crash the JVM.
| Access needed | Products shown exploitable by the researchers |
|---|---|
| None (before login) | Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins, PingFederate |
| A normal user account | Apache Kafka broker, Apache Solr, Elasticsearch, Gerrit, Spinnaker |
The researchers say that list isn't complete. As of 17 November there was no public confirmation of attacks in the wild, but the root cause is public and they said details leaked before the patch. I wouldn't plan around "nobody's using it yet".
Step 1: Are you affected? Two conditions, both must be true
| Check | You're exposed if | You're in the clear if |
|---|---|---|
| Java version | It's 17.0.6 or newer (17, 21, 25 or 27) and not yet updated. One odd extra: Oracle's Java 8 Enterprise Performance Pack build 8u511b33-perf | It's older than 17.0.6 (plain Java 8 and 11 are fine), or it already has the fix |
| CPU | It's an x86-64 chip with the AVX-512 VBMI instructions, which means Intel Xeon from Ice Lake up to Granite Rapids, or AMD Zen 4 and later (EPYC and Ryzen) | It's ARM64, or an older x86-64 chip without AVX-512 VBMI |
The brand of Java doesn't save you. Temurin, Corretto, Zulu, Liberica, SapMachine, Microsoft's and Red Hat's builds, GraalVM and Oracle's own all share the same OpenJDK code, so check the version number, not the logo.
On Linux you can check the CPU in one line. The host meets the hardware condition only if all four flags print:
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
On Windows, look up the CPU model in Task Manager > Performance and check which generation it is. One warning from Qualys that I agree with: use the CPU result to decide the order of work, not to close the ticket. A VM on an old host today can land on a Sapphire Rapids host next month after a migration or a resize.
Step 2: Find every Java runtime, not just the one in PATH
This is the step people skip. Updating the system Java package does nothing for the copy bundled inside Jira's install folder, a vendor appliance or a Docker image. So look in three places.
The obvious one
java -version
Every java binary on the disk
Linux:
sudo find / -xdev -type f -name java -perm -u+x 2>/dev/null | while read j; do echo "$j"; "$j" -version 2>&1 | head -1; done
Windows (PowerShell as admin, it takes a while on a big disk):
Get-ChildItem -Path C:\ -Filter java.exe -Recurse -ErrorAction SilentlyContinue |
ForEach-Object { $_.FullName; & $_.FullName -version 2>&1 | Select-Object -First 1 }
What is actually running right now
The installed version and the running version can differ until a restart, so check live processes too:
ps -eo pid,args | grep -i '[j]ava'
# then, per PID, with the same JDK's jcmd:
jcmd <PID> VM.version
For containers, check the image, not the host: docker exec <container> java -version. Your own Dockerfiles probably start FROM eclipse-temurin:21 or similar, so they need a rebuild once the base image is patched.
Step 3: Patch to a fixed build
Oracle shipped fixed builds on 17 November 2026:
| Oracle Java SE line | Fixed build |
|---|---|
| 8 Enterprise Performance Pack | 8u513-perf |
| 17 | 17.0.21.1 |
| 21 | 21.0.13.1 |
| 25 | 25.0.5.1 |
| 27 | 27.0.1.1 |
Other vendors publish on their own schedule, and their version numbers don't always match Oracle's. Amazon had Corretto 17.0.21.1.2 out on day one. For Temurin, Zulu, Microsoft and the rest, open the vendor's own advisory and confirm it names CVE-2026-114938 before you call it fixed. On Linux the distro package is usually the quickest route:
# Debian / Ubuntu
sudo apt update && apt list --upgradable 2>/dev/null | grep -i jdk
sudo apt install --only-upgrade openjdk-17-jre-headless openjdk-21-jre-headless
# RHEL / Rocky / Alma
sudo dnf upgrade 'java-*-openjdk*'
Only upgrade the packages you actually have. For products with a bundled JDK (Jira, Confluence, Jenkins in some installers), the product vendor ships the fix, so watch their security advisories rather than your OS updates.
Step 4: Can't patch yet? Turn off the vulnerable decoder
There's a real stopgap, and it's one JVM flag. It switches off the fast Base64 decoder where the bug lives, so Java falls back to its normal one:
-XX:-UseBASE64Intrinsics
Where you put it depends on the app. For a systemd service, add it to the JAVA_OPTS (or the app's own options variable) in the unit or its environment file. If you want it on every JVM on a box, the JVM reads the JAVA_TOOL_OPTIONS environment variable at start-up:
export JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics"
# the JVM prints: Picked up JAVA_TOOL_OPTIONS: -XX:-UseBASE64Intrinsics
There's a second option, -XX:UseAVX=2, which disables a wider set of CPU optimisations. It costs more performance, and it only works on Intel and AMD. Java on ARM won't even start with it. Use the first flag unless you have a reason not to.
After the restart, confirm the flag is really live on the running process:
jcmd <PID> VM.flags | tr ' ' '\n' | grep -i base64
The catch: nothing changes until the JVM restarts
This is the mistake I'd expect most people to make. You install the patched package, the scanner says the new version is on disk, and the old JVM keeps running with the vulnerable code for another three months because nobody restarted Jenkins. Both the patch and the flag only take effect when the process starts again.
The other trap is trusting the reverse proxy. Request buffering in nginx or a load balancer breaks some exploit chains, but Qualys is clear that it is not a general mitigation. And input size limits won't help much either, because the malicious Base64 string is short.
What to patch first
- Internet-facing identity providers: Keycloak, PingFederate. Everything else trusts their tokens.
- Internet-facing Jira, Confluence, Jenkins and Artifactory. Build servers sign and ship your software.
- Any other public Java service that handles logins, tokens or uploads.
- Internal systems: Kafka, Solr, Elasticsearch, Gerrit, Spinnaker.
If a console doesn't need to be on the open internet, put it behind a VPN until it's patched. That's a ten-minute change that buys a lot of time.
How to roll it back
A JDK update can break an app that was pinned to a specific build, so keep the old package available until you've tested. On Debian and Ubuntu, apt list --installed | grep jdk before you start gives you the exact version to go back to with sudo apt install openjdk-17-jre-headless=<old-version>. If the flag is the problem (a Base64-heavy app getting slower), remove it from JAVA_OPTS or JAVA_TOOL_OPTIONS and restart. Just remember that rolling back puts you back in the exposed state, so treat it as temporary.
A few things I learned
- Bundled JDKs are the real risk. The system Java is the easy one. The copy inside an appliance or a vendor install folder is the one nobody patches.
- Restart or it didn't happen. Check the running process with
jcmd, not the package manager. - CPU flags change. Don't mark a VM safe because today's host has an older Xeon.
- The flag is a bridge, not a fix. Put a date on every system still running on the workaround.
If you run WordPress or other PHP sites as well, I covered the recent WordPress CVE-2026-119977 and why so much is getting popped lately in why is everything getting hacked. For GitLab and CI servers, see my Ruby2Shell patch notes. If you'd like a second pair of hands going through your servers, that's part of my IT and infrastructure services.
Frequently asked questions
Is Java 8 or Java 11 affected by Java4Shell?
Standard Java 8 and Java 11 are not affected, because the vulnerable decoder arrived in 17.0.6. The one exception is Oracle Java SE 8 Enterprise Performance Pack build 8u511b33-perf, which Oracle lists as vulnerable. The fixed version of that line is 8u513-perf.
What is the fixed version for Java4Shell CVE-2026-114938?
Oracle's fixed builds are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, released on 17 November 2026. Other vendors such as Temurin, Corretto and Zulu number their builds differently, so check that your vendor's advisory names CVE-2026-114938 before treating a build as fixed.
What does -XX:-UseBASE64Intrinsics do?
It turns off the AVX-512 accelerated Base64 decoder in the HotSpot JVM, which is where the Java4Shell bug lives. Java falls back to its normal decoder and everything else runs as before. Base64-heavy apps may slow down a little. It only takes effect after the JVM restarts.
Am I safe if my server runs on ARM or an older Intel CPU?
ARM64 servers and x86-64 CPUs without AVX-512 VBMI don't run the vulnerable code, so they aren't exploitable today. Still patch them. Virtual machines can move to newer hosts after a migration or resize, and the same image may run on affected hardware later.
Does updating Java with apt or Windows Update fix Jira and Jenkins?
Not always. Many products ship their own bundled JDK, which operating system updates never touch. Check the java binary each application actually runs, either in its install folder or with jcmd on the live process, and apply the product vendor's update for bundled runtimes.
