Java4Shell: from a same-day fix to a patched container

On 17 November 2026, a critical bug in the Java runtime was disclosed, and the fix was available the same day. Even so, plenty of containers stayed vulnerable for days afterwards. A fixed JDK and a fixed container image are two separate releases, each with its own delay, and the delays add up. This post walks through the bug, who shipped what and when, and how to check your own systems.

What Java4Shell is

CVE-2026-114938, nicknamed Java4Shell, was found by the security firm Calif with the help of AI-assisted research and reported to Oracle.

The bug sits in an intrinsic: a piece of hand-written, CPU-specific assembly that the HotSpot JVM uses instead of plain Java code to speed up common operations. On x86-64 CPUs with the AVX-512 VBMI instruction set, HotSpot uses such a routine for Base64 decoding. Malformed Base64 input can make that routine write past the end of a heap buffer. Calif turned this memory corruption into remote code execution and demonstrated attacks against Jira, Jenkins and Keycloak without logging in.

Severity. OpenJDK and NVD score it 8.1 (CVSS 3.1); Calif rated it 9.2 under CVSS 4.0. CISA urged organisations to patch immediately. As of 28 November it was not in CISA’s catalogue of known exploited vulnerabilities.

You are exposed only if three things are true at once:

  1. The runtime is affected: Java 17.0.6 or later, 21, 25 or 27, up to the fixed builds below. Java 26 left support in September 2026 and won’t get a fix.
  2. The CPU has AVX-512 VBMI. That covers many recent Intel and AMD server CPUs, including common cloud instance families such as AWS C7i/M7i/R7i and Google Cloud C3/C4.
  3. The application decodes attacker-controlled Base64. That is more common than it sounds: HTTP Basic authentication headers and many token formats are Base64.

Not affected: Java 8 and Java 11, which don’t contain the vulnerable decoder, and ARM64 machines. Oracle also lists its Java 8 Performance Pack and GraalVM for JDK 17 and 21 as affected.

How the fix travelled

Security bugs in OpenJDK are handled by the OpenJDK Vulnerability Group, a private forum where trusted members, including Oracle and the major distributors, receive reports, develop fixes and agree on a release date. The work stays secret until that date, which is why all vendors can release together.

Java4Shell’s fix shipped in the monthly security release of 17 November 2026, a date Oracle had already scheduled. Without the new monthly cadence, it would have waited for the quarterly release on 19 January 2027. The same release fixed ten other CVEs across Java 8 to 27.

The fixed OpenJDK versions are:

Java Fixed from
17 17.0.21.1
21 21.0.13.1
25 25.0.5.1
27 27.0.1.1

Step 1: the JDK releases

Build Java 17 Java 21 Java 25 Java 27 Shipped
OpenJDK 17.0.21.1 21.0.13.1 25.0.5.1 27.0.1.1 17 Nov
Oracle JDK 17.0.21.1+4 21.0.13.1+4 25.0.5.1+4 27.0.1.1+4 17 Nov
Amazon Corretto 17.0.21.1.2 21.0.13.1.2 25.0.5.1.2 27.0.1.1.4 17 Nov
Azul Zulu (free and paid) 17.70.201 21.54.201 25.38.201 27.30.201 17 Nov
Eclipse Temurin 17.0.21.1+2 21.0.13.1+2 25.0.5.1+2 27.0.1.1+4 18 Nov
Red Hat build of OpenJDK 17.0.21.1 21.0.13.1 25.0.5.1 — 18 Nov (RHEL packages 19 Nov)
Microsoft Build of OpenJDK 17.0.21.1 21.0.13.1 25.0.5.1 — 18 Nov

Everyone shipped within about a day. Temurin’s builds came in over 18 November; on that day Adoptium had first published Java 27 for x86-64 Linux, while 17, 21 and 25 were still being tested.

One licensing footnote: Oracle JDK 21 updates have been under the paid OTN licence since October 2026, so the free way to get a fixed Java 21 is an OpenJDK build such as Temurin, Corretto or Zulu.

Step 2: the Docker images

A container brings its own JDK. Patching the host with apt upgrade or dnf upgrade does nothing for it. The image has to be rebuilt on the fixed JDK, and for Docker’s official images that means the maintainer submits an update to Docker’s official-images repository, Docker merges it, and Docker Hub then builds and publishes the new images, usually within hours.

Here is when each update was merged into Docker’s official-images repository (Berlin time):

Image Updated Delay after the JDK fix
amazoncorretto 17 Nov, 22:27 Same day
azul-zulu 18 Nov, 03:35 Overnight
sapmachine 18 Nov, 17:29 About 1 day
eclipse-temurin (17, 21, 25, 27) 20 Nov, 18:35 About 3 days
eclipse-temurin arm64 (17, 21) 30 Nov ARM64 isn’t affected

Images built on top of these took longer still. maven:3-eclipse-temurin-21, for example, still contained the vulnerable 21.0.13+9 when it was built on the morning of 20 November.

Other image sources:

  • Docker Hardened Images began publishing fixed Corretto, SapMachine and Zulu images straight away; the Temurin-based ones had to wait for Adoptium.
  • Vendor-run images such as Microsoft’s (mcr.microsoft.com/openjdk/jdk), Google’s distroless Java images, Red Hat UBI OpenJDK images, azul/zulu-openjdk and BellSoft Liberica were all fixed when checked on 19 November.
  • The official ibm-semeru-runtimes image hasn’t changed since before the disclosure. Semeru uses the OpenJ9 JVM instead of HotSpot, which may mean it never contained this intrinsic, but check IBM’s security bulletin rather than assuming.

Why the delays add up

Your real exposure is the sum of every step in your chain:

  1. OpenJDK publishes the fix (day 0).
  2. Your JDK vendor publishes binaries (day 0 to 1).
  3. The base image is rebuilt (day 0 to 3).
  4. Images built on that base image are rebuilt (later still).
  5. You rebuild your own application image.
  6. You redeploy, and every node actually pulls the new image.

Am I affected? How to check

Which JDK does a running container use? This works even in images without a shell, because it runs java directly:

docker exec <container> java -version  #only java 8uXXX
docker exec <container> java --version 

Which JDK is in an image, without starting your application:

docker run --rm --entrypoint java eclipse-temurin:21-jre -version

Takeaways

  • Treat the JDK and the image as two dependencies with their own release clocks. A fixed JDK doesn’t mean a fixed container.
  • Expect monthly patches. The next releases are 19 January 2027 (quarterly) and 16 February 2027 (monthly).
  • Automate rebuilds. Rebuild application images when their base image changes, and deploy by digest so you know exactly what is running.
  • Pick base images partly on patch speed. This time, amazoncorretto and azul-zulu were fastest among the official images, and Temurin’s images took about three days.
  • Watch images built on other images. Tool images such as maven and tomcat inherit their base image’s delay and add their own.
  • Keep an inventory of every JVM you run, including the ones inside vendor appliances and CI tooling.
  • Document stopgap flags and remove them afterwards.

Sources