Skip to Content

Java4Shell: the fix is easy, finding the hidden JVMs is not

The flaw in OpenJDK's Base64 decoder may be exploitable without logging in on Jenkins, Jira and Keycloak. Speed is decided by whether you know where Java is running
November 18, 2026 · Devertix

On 17 November 2026, Oracle and the OpenJDK Vulnerability Group simultaneously released a fix for the flaw designated CVE-2026-114938, which its discoverers named Java4Shell. The flaw is in an accelerated branch of Java's Base64 decoder that uses AVX-512 instructions. The researchers found Jenkins, Jira, Confluence, Keycloak and Artifactory in their default configuration to be exploitable even without logging in.

9.2CVSS 4.0 score according to the discoverers (Oracle's, under CVSS 3.1, is 8.1)

The fix itself is not complicated: a new Java build and a restart. It is all the harder to find out exactly where Java is running at a mid-sized or large company. In our view, over the coming days this will determine who closes the matter quickly and who stays exposed for weeks.

When a system is affected

Based on Tenable's summary, three conditions have to be met together. The first is an affected Java: the OpenJDK 17, 21, 25 and 27 lines (within 17, from 17.0.6 onwards), and one build of the Oracle Java 8 Enterprise Performance Pack. Regular Java 8 and 11 are not among those affected. The second is the processor: an x86-64 machine with AVX-512 VBMI support, that is, Intel Xeon from Ice Lake to Granite Rapids, or AMD Zen 4 or later. The third is that the application passes data received from outside to Base64 decoding, which in web services often happens even before login.

According to the write-up by Calif, the discoverer, ARM64 machines are not affected. It follows from this (and this is our own inference) that JVMs running on AWS Graviton (ARM64) instances, for example, are not at risk either. There is, however, a less obvious direction too: a Java program can also be attacked if it merely connects as a client over TLS to a malicious server.

According to Qualys's summary, the researchers found the flaw in roughly an hour with the help of artificial intelligence, and about two hours later they already had a working exploit, at a token cost of less than $200. The details leaked before the fix. As of 17 November, Tenable was not aware of any attack in the wild, and the CVE was not yet on CISA's Known Exploited Vulnerabilities (KEV) catalogue.

Figure · which JVM to start with
  1. Java: 17.0.6 or later, or 21, 25, 27 – without the fix?

    What counts is the build of the running process, not that of the package installed on the machine. A JDK bundled into products and container images is not patched by an OS update.

  2. Processor: x86-64 with AVX-512 VBMI support?

    On Linux, the avx512f, avx512bw, avx512vbmi and bmi2 flags must all be present together. This gives an order of priority, not closure: the workload may move to another machine.

  3. Input: does it receive data from outside, or connect as a client to a third-party server?

    Web endpoints, tokens, uploads, TLS connections.

The conditions are based on Tenable's summary of 17 November.

The hard part is the inventory

Java is rarely a single, centrally updated package. Jira, Jenkins or a vendor application often ships with its own runtime, and a container image is frozen at the JDK it was built from. Endor Labs therefore recommends not relying on the output of java -version but looking at the running process: the Java processes with the ps command, the actual binary via the /proc/<pid>/exe link, and the build with the jcmd <pid> VM.version command.

The same is true of the build process. If the base image in the Dockerfile is not updated, the next deployment brings back the old JDK, however carefully the running instances were patched. In the cloud, the processor condition is not constant either: autoscaling or a change of instance type can move the same service onto an AVX-512 machine.

The fix and interim flags

Oracle's fixed builds are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, and 8u513-perf for the Java 8 Performance Pack. According to Qualys, Amazon Corretto 17.0.21.1.2 already contained the fix on 17 November. The other distributions (Temurin, Red Hat, Azul, Microsoft and the rest) release updates on their own schedules, so no conclusions about them should be drawn from Oracle's numbering.

Until a fixed build is available, the discoverers give two JVM flags. Qualys recommends the first, the -XX:-UseBASE64Intrinsics flag, as the primary one. It turns off the accelerated decoder and, according to Qualys, may slow down many applications that process Base64, so it has to be tested. The other is -XX:UseAVX=2, but this can only be used on Intel and AMD machines; on ARM, Java will not even start with it. Both take effect only after a restart and have to be verified on the running process. According to Qualys, a reverse proxy is not a reliable defence.

The case against panic

Oracle gave a score of 8.1 under CVSS 3.1, with high attack complexity. Each product needs a separate exploit, a failed attempt can crash the application (although it can often be repeated), and there is no universal attack code. On this basis we do not expect automated mass exploitation of the Log4Shell kind. This is, however, an opinion, not a guarantee. The details have leaked, and if the discoverers needed two hours after finding the flaw to produce the first working exploit, others will not need much more.

We recommend that the JVM inventory should not be a one-off exercise. A software bill of materials (SBOM) and image scanning built into the DevSecOps process will quickly tell you where an affected build is running the next time a similar flaw appears. It is worth automating the regular rebuilding of base images in the CI/CD pipeline and entrusting the monitoring of running systems to managed security monitoring.

Today's task is simple: on your identity provider and developer tools reachable from the internet (Jira, Jenkins, Artifactory), check the build of the running Java process, and where there is no fixed version, turn on the interim flag.

Sources

DevSecOps

Do you know how many JVMs are running at your company?

Together we go through the container images, the runtimes bundled into products and the order of patching.

Free consultation

New articles and webinar dates by email

We will let you know when a new article is published or a new webinar is announced. You can unsubscribe at any time.

Thank you, you have subscribed to the newsletter.

By subscribing, I confirm that I have read the privacy notice.