▶Prefer to watch? This short video runs this page's main commands in a real lab, with on-screen captions and a synthetic voiceover (an AI voice trained on the author's own recording). Click to play, or watch it on YouTube.
Java4Shell: a memory-corruption bug in OpenJDK's Base64 decoder
CVE-2026-114938 disclosed November 17, 2026 Oracle CVSS 3.1: 8.1 (High) researchers' CVSS 4.0: 9.2 (Critical)
Java has a fast path for decoding Base64 on modern x86-64 processors. A specially shaped input makes that fast path write past the end of its output buffer. The researchers who found it, Calif, say they turned it into remote code execution without logging in on Jira, Confluence, Keycloak, Jenkins, Artifactory and PingFederate, because those programs decode Base64 from the network before they check who you are. Calif is not publishing those exploits.
This page is for the people who have to answer one question today: which of our Java services can this reach, and what do we do before the distribution ships a fix? It shows how to find out without sending any crafted input to anything, an interim setting that switches the fast path off, and how to patch. Facts that change by the hour, such as which distributions have fixed packages, are dated.
How sure are we? The existence of the bug, the affected processor feature and the vendor fix versions are consistent across every source I read. Exploitation reports are not: one security firm and the researchers' own write-up say no attacks have been confirmed in the wild, and another reports exploitation attempts and private working exploits. Whether the interim flags really stop the overflow has been tested by one lab, but neither Oracle nor OpenJDK has validated them. The sections below say which is which.
Two things I could not do: Oracle's and OpenJDK's own advisory pages returned an error to my fetch (403), so versions below come from their downstream reports and the researchers; and I could not retrieve the government alert that two sources describe. Where a statement depends on those, it says so.
Everything run below was run on 2026-11-18 in a lab container (Ubuntu 24.04 with OpenJDK 21.0.13.0.3 running a tiny web service under systemd) on a machine whose processor has no AVX-512, so this lab is not exploitable and nothing here tries to exploit it. No step sends a crafted string to Java: everything is read from CPU flags, version strings, JVM flags and logs.
What it is, in plain English
Base64 is how programs carry binary data as text: login headers, tokens, uploads, certificates. Java decodes it with java.util.Base64. On x86-64 processors that have a particular instruction set, AVX-512 VBMI, the HotSpot JVM replaces the Java decoding loop with a hand-optimised native routine once the code is hot (an "intrinsic").
When the input ends in an unexpected number of "=" padding characters, that routine works out how many bytes it will write using a number that can go negative, and writes about 62 or 63 bytes past the end of the output array. Java then rejects the input as invalid, but only after the write has happened.
A write that lands on a neighbouring object in the heap can crash the JVM, leak what is next to it, or, with enough work per application, change what the program does. The researchers say the code execution takes a separate exploit for each application; the crash needs no application knowledge at all.
It matters because many programs decode untrusted Base64 before authentication: the Authorization header of a request, a session token, a JWT. That is why the exposed list is mostly "the login page of widely used Java software" rather than an unusual feature.
The bug was introduced when an optimisation (JDK-8268276) was backported into OpenJDK 17.0.6 in 2023, according to one analysis. Java 8 and 11 do not contain the optimisation. ARM64 processors do not use this code.
Who is affected
Needs ALL of: an affected Java build, an x86-64 processor with AVX-512 VBMI, and untrusted Base64 reaching the decoder.
Java builds: OpenJDK 17.0.6 and newer, and the 21, 25 and 27 lines, from every vendor that builds from OpenJDK (Oracle, Eclipse Temurin, Amazon Corretto, Azul Zulu, Microsoft, BellSoft, SapMachine, Red Hat, Debian and Ubuntu packages), plus Oracle GraalVM. Oracle lists these builds as affected "and likely earlier": 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3, and the Java 8 Enterprise Performance Pack 8u511b33-perf.
Not affected: standard Java 8 and Java 11 builds (they do not contain the optimisation), and any JVM on ARM64 (Graviton, Apple silicon, Raspberry Pi).
Processors: Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids; AMD EPYC and Ryzen Zen 4 and newer. Older Intel and AMD parts (and this lab's AMD Ryzen 5 3500U) do not have AVX-512 at all.
One open question: one analysis says that on Java 21 and later the same intrinsic can also be used on processors with only AVX2. The vendors' pages do not say the overflow is reachable there. Treat the processor check below as a way to prioritise, not as a clean bill of health: patch everything.
Containers: a container uses the host's processor, so a Java container on an AVX-512 host is in scope even if the image says nothing about it.
The Java inside other products: many products carry their own JDK (Jenkins and Keycloak installers, bundled Tomcats, IDEs, vendor appliances). Check them separately from the system Java: the same fix, from that vendor.
What is exposed, and the state of exploitation (2026-11-18)
Pre-authentication code execution, shown by the researchers (as reported by The Hacker News): Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, PingFederate. Other sources add Apache Kafka, Solr, Elasticsearch, Gerrit and Spinnaker (some need a login) and "custom frameworks built on Spring Boot, Struts and Tomcat". The lists differ between sources and none is complete.
Also reported: a Java client that connects to a malicious server over TLS can be compromised. The route to the decoder has not been published.
Independent labs reproduced the crash and a memory leak on affected hardware. Reports of full code execution outside the researchers' own work are not confirmed.
In the wild: Sophos (updated 2026-11-18) is not aware of any reports. Horizon3 and Orca say the same. Tenable (also 2026-11-18) reports exploitation attempts seen by GreyNoise, with no confirmed success, and says a vendor and a researcher have private working exploits. No public exploit code existed in any source I read.
Government: Tenable reports that CISA published an alert on November 17 with Canada's Cyber Centre (alert AL26-029) and that the bug was not in CISA's Known Exploited Vulnerabilities catalogue on November 18. I could not retrieve either alert myself.
Take it as: not yet confirmed as exploited, simple enough that attacks will follow, and pre-authentication on widely deployed software. That is the profile of a bug to treat this week, not next quarter.
Step 1: does this machine have the processor feature?
Four flags matter. All four must be present for the fast path to be in play.
grep -oE '(avx512f|avx512bw|avx512vbmi|bmi2)' /proc/cpuinfo | sort -u
lscpu | grep -m1 'Model name'
Lab, an AMD Ryzen 5 3500U (no AVX-512):
bmi2 <- one of four: not in scope on this machine
Model name: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
On an affected server the first command prints four lines: avx512bw, avx512f, avx512vbmi and bmi2. I did not have such a server; this page does not show a made-up output for it.
Run it on the HOST that runs your containers and virtual machines. Inside a container it prints the host's flags; inside a virtual machine it prints what the hypervisor shows the guest, which can hide AVX-512 from the guest.
If you cannot tell, patch anyway. A cloud instance type tells you the processor family; check the provider's instance documentation for Ice Lake, Sapphire Rapids and newer, or AMD Zen 4 and newer.
Step 2: which Java is actually running?
java -version only tells you about the java that comes first on YOUR PATH. The one that matters is the one each service runs.
ps -C java -o pid,user,cmd
sudo ls -l /proc/<pid>/exe # the java binary this process really runs
sudo jcmd <pid> VM.version # the version of that running JVM
Lab, a Java service started by systemd:
PID USER CMD
80 ubuntu /usr/bin/java /opt/demo/Demo.java
/proc/80/exe -> /usr/lib/jvm/java-21-openjdk-amd64/bin/java
OpenJDK 64-Bit Server VM version 21.0.13.0.3+1-1-24.04.1-Ubuntu
JDK 21.0.13
Ubuntu prints the full build, 21.0.13.0.3, which is on Oracle's list of affected builds. Eclipse Temurin's image prints a shorter string (lab: openjdk version "21.0.13", build 21.0.13+9-LTS): a short version string is not proof of a fix. Compare the build against your vendor's table in the next step.
Applications that bring their own JDK do not show up under /usr/lib/jvm. The /proc/<pid>/exe line finds them: look at where it points.
To find Java processes started by other users or inside containers, run the commands as root on the host, and use docker exec for container images that are not run by your host's process view.
Step 3: is that build fixed?
The fixed builds end in .1 (as reported for Oracle's November 2026 update, matching OpenJDK's tags):
OpenJDK / Oracle 17: 17.0.21.1 21: 21.0.13.1 25: 25.0.5.1 27: 27.0.1.1 Java 8 Performance Pack: 8u513-perf
Amazon Corretto: 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4
Azul Zulu: 17.70.201, 21.54.201, 25.38.201, 27.30.201 (reported by one source; check Azul)
Eclipse Temurin: sources disagree on whether fixed builds have shipped: check the Temurin download page
Distributions as reported on 2026-11-18: Alpine 3.23 and 3.24 fixed (as reported); Debian fixed only in unstable (sid); Ubuntu, RHEL, Rocky and Alma had no fix yet. Check your own, below.
What the lab found on 2026-11-18 (my own commands, not a report):
Ubuntu 24.04 and 22.04 archive: openjdk-17 17.0.21.0.3, openjdk-21 21.0.13.0.3, openjdk-25 25.0.5.0.3 <- the "affected" builds, not the .1 builds
Debian 12 bookworm: openjdk-17 17.0.21+9-1~deb12u1 (no 21 or 25 in this release)
Debian 13 trixie: openjdk-21 21.0.13+9-1~deb13u2, openjdk-25 25.0.5+8-1~deb13u1
Eclipse Temurin 21 image: 21.0.13+9
apt update, then apt list --upgradable | grep openjdk: no OpenJDK update offered in the Ubuntu 24.04 lab
Distribution numbers look different from upstream ones (Ubuntu appends -1~24.04.1, Debian +9 and so on). Compare the numeric part: 21.0.13.0.3 is below 21.0.13.1; 21.0.13+9 (Debian, Temurin) is an older line again and is not fixed.
Check a package on your own distribution:
apt-cache policy openjdk-21-jre-headless | head -3 # Debian, Ubuntu
rpm -q java-21-openjdk java-25-openjdk # RHEL, Rocky, Alma, Fedora
apk list -I | grep openjdk # Alpine
A distribution can fix this by patching its older numbering rather than jumping to a .1 build (vendors backport). Look for CVE-2026-114938 in the package changelog:
zgrep -c 114938 /usr/share/doc/openjdk-21-jre-headless/changelog.Debian.gz # Debian, Ubuntu: 0 means not mentioned
rpm -q --changelog java-21-openjdk | grep -c 114938 # RHEL family
Step 4: what does the JVM think of the Base64 fast path?
The setting that controls it is a normal product flag, UseBASE64Intrinsics. Ask a running JVM:
sudo jcmd <pid> VM.flags -all | grep UseBASE64Intrinsics
java -XX:+PrintFlagsFinal -version | grep -E 'UseBASE64Intrinsics|UseAVX '
Lab:
bool UseBASE64Intrinsics = true {product} {default}
int UseAVX = 2 {ARCH product} {default}
On this processor, which has no AVX-512, the flag is true by default and the JVM chose AVX level 2. So the flag value alone does not tell you the AVX-512 path is active; the processor check in Step 1 does that part.
No flag on the command line (the "default" in braces) means nobody has changed it.
Step 5: interim mitigation, until you can patch
Neither Oracle nor the OpenJDK project has published a workaround. The researchers (Calif) and Keycloak recommend switching the optimised decoder off:
-XX:-UseBASE64Intrinsics turns off the hardware-accelerated Base64 intrinsic; Java falls back to its ordinary decoding loop
What is established, and what is not: one lab (Upwind, as reported) found it stopped the overflow on every affected version it tested. Neither Oracle nor OpenJDK has validated it, Sophos says it has not, and Horizon3 says it is not a fix. Expect Base64 decoding to be slower.
A systemd service (the common case). JAVA_TOOL_OPTIONS is read by every JVM that starts with it set:
sudo mkdir -p /etc/systemd/system/demoapp.service.d
printf '[Service]\nEnvironment="JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics"\n' | sudo tee /etc/systemd/system/demoapp.service.d/java4shell.conf
sudo systemctl daemon-reload && sudo systemctl restart demoapp
The restart is required: a running JVM does not reread its options. Then confirm through the running process, not just the file:
PID=$(systemctl show -p MainPID --value demoapp)
sudo jcmd $PID VM.flags -all | grep UseBASE64Intrinsics
sudo jcmd $PID VM.flags | tr ' ' '\n' | grep -i base64
curl -s localhost:8080
Lab:
bool UseBASE64Intrinsics = false {product} {environment}
-XX:-UseBASE64Intrinsics
hello from the demo app
java[224]: Picked up JAVA_TOOL_OPTIONS: -XX:-UseBASE64Intrinsics (in the journal: the JVM announces it)
The service still answers, and the flag shows false from the environment. For a service that is not started by systemd, put the same option wherever that program keeps its JVM options (a Tomcat setenv.sh, a container's environment, an application's own JAVA_OPTS setting), and restart it.
A second flag, -XX:UseAVX=2, is also recommended by the researchers: it stops the JVM using AVX-512 instructions. Use it only on x86-64: a JVM on ARM does not recognise it and fails to start. One analysis says that on Java 21 and later it does not remove the Base64 intrinsic (which then still runs through its AVX2 path), while others call it complete. Because the sources disagree, use the Base64 flag as the primary setting.
Do NOT use -XX:DisableIntrinsic=_base64_decodeBlock on its own: one lab found it stops the JVM from starting.
Remove the setting after the patched Java is running and you have confirmed its version. A mitigation you forget is a puzzle for whoever finds it in a year.
Step 6: the real fix
Install the patched Java build, then RESTART every service that runs on it. A running JVM keeps its old code until it is restarted, so installing the package alone fixes nothing for processes already running.
Debian, Ubuntu: sudo apt update && apt list --upgradable 2>/dev/null | grep -i openjdk
sudo apt install --only-upgrade openjdk-21-jre-headless # when the fixed package appears
RHEL family: sudo dnf updateinfo list --cve CVE-2026-114938 # no rows: not published yet
sudo dnf upgrade 'java-*-openjdk*'
Alpine: sudo apk upgrade openjdk21 # then restart
Vendor builds: Corretto, Temurin, Zulu: download the build whose number is at or above the table in Step 3. Oracle JDK: the November 2026 Critical Patch Update.
Bundled Java: the product vendor's update (Jenkins, Keycloak, Jira and the rest each ship their own).
After restarting, repeat Step 2: sudo jcmd <pid> VM.version for every Java process, and compare against the table. A package that is installed but a process started before the upgrade is still running the old Java:
sudo needrestart -r l # Debian, Ubuntu: lists services still running replaced files (not run in the lab)
Lab, 2026-11-18: sudo apt update, then apt list --upgradable | grep openjdk printed nothing for Ubuntu 24.04, so there was no fixed Ubuntu package to install yet. Check again for yours: that answer will change.
Where no fixed package exists yet, use Step 5, put the services behind something that limits who can reach them, and watch the signs below.
Look for signs of an attempt
None of these proves a compromise, and a clean result does not prove safety. They come from Upwind's reporting through The Hacker News.
find / -name 'hs_err_pid*.log' -mtime -7 2>/dev/null # JVM crash reports from the last week
journalctl -u <service> --since '2 days ago' | grep -c IllegalArgumentException
systemctl show <service> -p NRestarts # unexplained restarts
Lab: no hs_err_pid crash file anywhere, no IllegalArgumentException in the service's journal, and NRestarts=0.
What to look at in your own logs and proxy:
Base64 values of 32 characters or more that end in "=" and whose length is not a multiple of 4, especially in an Authorization header.
A burst of IllegalArgumentException from java.util.Base64$Decoder.
Unexplained crash logs or restart bursts. One lab crashed a test application with about 28,000 malformed login requests in about 20 seconds.
A web application firewall is unlikely to cover every path to the decoder (one source), and request buffering by nginx blocks some attacks but not all (Calif calls it not a general mitigation). Do not rely on either.
Services that are only reachable inside your network are still worth patching: the bug is reachable from any service that decodes untrusted Base64, including internal ones.
Common problems
java -version says 21.0.13 but I cannot tell if it is fixed: some builds print only three numbers. Use jcmd <pid> VM.version on the running process, or java -XshowSettings:properties -version, and compare the full string with Step 3. The lab's Ubuntu build printed 21.0.13.0.3, which is affected.
jcmd says "not ready to participate in attach handshake" or cannot find the process: run it as the same user as the process (or with sudo), and make sure the pid is the Java one. A pgrep -f pattern can match your own shell command, so use systemctl show -p MainPID --value <service> in a script.
I set JAVA_TOOL_OPTIONS in my shell and my service is unchanged: a service started by systemd does not see your shell's environment. Set it in the unit (a drop-in, as in Step 5) and restart.
Everything prints "Picked up JAVA_TOOL_OPTIONS": that is normal. The JVM announces it on stderr, and it can show up in logs or in the output of commands that call Java.
The flag shows true even after I set it: the JVM that is running did not get the setting. Check the restart happened and read the flag from the running process, not from a fresh java -version.
UseAVX=2 and my ARM server will not start Java: that flag does not exist on ARM. Remove it. ARM is not affected anyway.
My container image never mentions AVX-512: the processor does not belong to the image. Run the processor check on the host.
The CPU check finds nothing: then the AVX-512 path is not in play on that machine. Patch it anyway when the update arrives, and watch the open question about AVX2 on Java 21 and later.
Tips
Patch first; the flag is a bridge, not a repair. Write the date and the CVE in a comment next to it so a future cleanup knows when it can go.
Make a list of every Java process in your estate (Step 2), including the ones that bring their own JDK. The ones nobody remembers are the ones that stay vulnerable.
Check the version on the running process and the file on disk separately. A service that was never restarted after an upgrade is the most common way to stay vulnerable by accident.
Prefer ordering the work by exposure: login pages and APIs facing the internet first, then anything that decodes tokens from other systems, then the rest.
Check again tomorrow. Distribution status moves quickly in the first days: the Ubuntu, Debian and Red Hat answers on this page are dated.
Do not test the bug by sending crafted strings to production. A crash from a test is an outage, and the vendor version check tells you what you need.
What was not run
No crafted Base64 string was sent to any JVM and no overflow, crash or exploit was attempted.
The lab processor has no AVX-512, so nothing here shows the behaviour on affected hardware, and I did not show a made-up positive result for the processor check.
The flags were checked for what they set (the JVM reports the flag false and the service answers), not for whether they stop the overflow. That claim is Upwind's, and it is not validated by Oracle or OpenJDK.
I did not measure the slowdown of the Base64 flag.
Distribution fix status other than Ubuntu 24.04 and 22.04, Debian 12 and 13 and Eclipse Temurin 21 was not checked by me; those lines come from reports dated 2026-11-18.
Not run: the rpm, dnf and apk commands in Steps 3 and 6 and needrestart (they are the standard ones for those systems but I did not run them), Oracle JDK, GraalVM, Windows and macOS, and the products that bundle their own Java.
Sources (checked 2026-11-18)
Calif, the researchers' write-up (versions, processors, flags): https://calif.io/java4shell
Tenable FAQ (fixed builds, distribution status, exploitation reports): https://www.tenable.com/blog/java4shell-cve-2026-114938-frequently-asked-questions-about-openjdk-rce-vulnerability
Sophos advisory (no confirmed exploitation, no vendor workaround): https://www.sophos.com/en-us/security-advisories/sophos-sa-20261118-java4shell
The Hacker News (applications, indicators, third-party fixes): https://thehackernews.com/2026/11/java4shell-cve-2026-114938-enables-pre.html
Horizon3.ai (mechanism, CVE record, scores): https://horizon3.ai/attack-research/vulnerabilities/cve-2026-114938/
Wiz: https://www.wiz.io/blog/cve-2026-114938-rce-java4shell-openjdk
Orca Security (affected range, AVX2 note): https://orca.security/resources/research/java4shell-critical-openjdk-base64-decoder-flaw-could-allow-unauthenticated-remote-code-execution/
ComputingForGeeks (distribution checks): https://computingforgeeks.com/java4shell-cve-2026-114938/
Not loaded by me (error 403 or not retrievable): Oracle's November 2026 advisory, OpenJDK's advisory and the CISA alert. Fixed-build numbers are as reported by the sources above.
Sources disagree on exploitation evidence, on whether Temurin has shipped a fix, on the applications reached without login, and on whether UseAVX=2 is complete; this page says so where it matters instead of picking one.