What is Java4Shell?
Calif's write-up discloses the flaw as Java4Shell, the name it uses for CVE-2026-114938 [2]. It is a memory-corruption flaw in OpenJDK's Base64 decoder, the code that turns Base64 text back into data. Red Hat says the flaw affects OpenJDK 17.0.6 and later, and that it allows an unauthenticated remote attacker to achieve arbitrary code execution [1]. Red Hat rates it Critical [1].
The severity score depends on who you ask. Aikido reports that Calif rates the flaw 9.2 (Critical) under CVSS 4.0 [3]. Calif says that ARM64 CPUs are not affected [2].
Which Java versions are affected?
Aikido's list says that Java 17, 21, 25 and 27 builds from every vendor are affected until that vendor ships a fixed version [3]. Standard Java 8 and 11 are not affected. The exception is Oracle's Java SE 8 Enterprise Performance Pack build, 8u511-perf, which Oracle lists as affected [3].
Aikido's table also lists Oracle Java SE 18, 19 and 20 as end of life, with an upgrade target for each [3]. Check the version your application actually runs, not only the one in your build file.
Which fixed release do I need?
Aikido's table gives the affected range and upgrade target for each Oracle Java SE line [3]:
| Java line | Affected range | Upgrade to |
|---|---|---|
| 17 | releases before 17.0.21.1 | 17.0.21.1 |
| 18, 19, 20 (end of life) | 18–18.0.2.1, 19–19.0.2, 20–20.0.2 | 21.0.13.1 |
| 21 | releases before 21.0.13.1 | 21.0.13.1 |
| 22, 23, 24 (end of life) | 22–22.0.2, 23–23.0.2, 24–24.0.2 | 25.0.5.1 |
| 25 | releases before 25.0.5.1 | 25.0.5.1 |
| 26 (end of life) | 26–26.0.2.1 | 27.0.1.1 |
| 27 | releases before 27.0.1.1 | 27.0.1.1 |
The Temurin build strings are different. Aikido lists Temurin 17 as affected through 17.0.21+9, with the fix at 17.0.21.1+2 [3]. Compare your build string with the vendor's fixed string, not with the Oracle version number.
Oracle released its patch at 1:00 pm PT on 17 November 2026, according to the Calif write-up [2]. For a line that is not in the table, check your vendor's advisory for the fixed build [3].
Who else ships fixes?
Java is not only Oracle and Temurin. Calif lists the other distributions it considers vulnerable: Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine, Red Hat OpenJDK, Oracle OpenJDK, Oracle Java SE and Oracle GraalVM [2]. If your runtime comes from one of these, use that vendor's fixed build.
Aikido reports that Amazon Corretto has published fixed builds, and that Red Hat is expediting fixes for RHEL [3]. If you run RHEL, watch for the Red Hat package update rather than building your own Java.
Am I exposed?
You are exposed only when three things are true. The host must run on an x86-64 CPU that supports AVX-512 VBMI, the JVM must not be started with -XX:UseAVX=2, and attacker-controlled data must reach the Base64 decoder [1][3]. Aikido gives Intel Xeon from Ice Lake onward and AMD Zen 4 or newer as examples of CPUs that support the instruction set [3]. ARM64 hosts are not affected [2].
The Calif write-up includes a shell check of the CPU flags for avx512vbmi. It says the output must include all four flags: avx512f, avx512bw, avx512vbmi and bmi2 [2]. Check the host, not only the container image: containers share the CPU of the host they run on.
How do I fix it?
Upgrade each affected runtime to the fixed release for its Java line, using the table above. Calif says plainly that all Java users should update immediately [2]. Aikido adds that you should patch affected runtimes, including those bundled in applications and containers [3]. A runtime inside a container image needs the same update as a server install [3].
What if I cannot upgrade yet?
Calif lists two JVM flags as mitigations. The first is -XX:-UseBASE64Intrinsics, which disables hardware-accelerated Base64 encoding and decoding. The second is -XX:UseAVX=2, which disables AVX-512 and applies only on x86-64 hosts. OpenJDK on ARM does not recognise the second flag and will fail to start [2].
Aikido is clear that neither flag replaces the patch [3]. Its write-up also notes that code which decodes a lot of Base64 may run slower with the flags applied [3]. Treat them as a temporary step while you schedule the upgrade, and measure the cost on the workloads that decode the most Base64.
Why do the severity scores differ?
Three sources give three different ratings. Aikido reports that Calif rates the flaw 9.2 (Critical) under CVSS 4.0 [3]. Oracle scores the flaw 8.1 under CVSS 3.1, with high attack complexity [3]. Red Hat rates it Critical, with a CVSS 3.0 base score of 9.8 [1]. Red Hat notes that CVSS scores for open source components depend on vendor-specific factors such as the version or build chain, so its score can differ from NVD and other vendors [1].
Use the rating your own vendor or scanner reports for your build. Do not compare the numbers across sources as if they measured the same thing.
How far has exploitation gone?
Red Hat's security statement says that public research has demonstrated working exploits against multiple widely deployed Java applications in their default configurations [1]. Aikido, writing on 18 November, said it had seen no confirmed reports of exploitation [3]. Both statements can be true at once: a working exploit in research is not the same as attacks seen in the wild.
Aikido also reports that there is no universal exploit, because each target needs its own chain, and that other researchers had so far reproduced crashes and memory leaks rather than code execution [3]. That is not a reason to wait. The exposure is real on the affected builds, and the fix is available.
What should I do this week?
- List every Java runtime you run, including those bundled inside applications and container images [3].
- Compare each runtime with the fixed release for its line, using the table above [3].
- Run the CPU flag check on the hosts that run Java [2].
- Upgrade the exposed x86-64 hosts first. Apply a flag workaround only where you cannot upgrade yet. On x86-64 hosts either flag works; on ARM64 use
-XX:-UseBASE64Intrinsics[2][3]. - After the upgrade, confirm the new build string on each host, not only the package version.



