Docker patches Java4Shell and the NGINX HTTP/2 with Docker Hardened Images
Docker
- November 19, 2026
About this episode
OpenJDK and Oracle disclosed Java4Shell (CVE-2026-114938) on November 17, and NGINX released fixes for two HTTP/2 flaws the next day. Docker began publishing fixed images for both in the Docker Hardened Images (DHI) catalog starting that same day.
What we know about Java4Shell is that it’s a memory-corruption bug in the Java runtime that can let an attacker with no credentials run code inside a Java application. Many container images contain a Java runtime, including application images that bundle their own, so it affects teams well beyond the ones that write Java.
Docker Hardened Images are the trusted foundation your applications should run on, because a flaw in the runtime inside an image is fixed only when that image is rebuilt, and Docker rebuilds its hardened images as soon as upstream fixes become available. Fixed images for the Amazon Corretto, SapMachine and Azul Zulu runtimes and for NGINX are in the catalog today, with Eclipse Temurin following as soon as Adoptium completes its fixed builds.
TL;DR- Affected: Java 17.0.6 and later, including Java 21, 25, 26 and 27, from every OpenJDK vendor.
- Only on some hardware: the bug is reachable only when the JVM runs on an x86-64 CPU with AVX-512 VBMI. The same image can be exposed on one host and not on another.
- Fixes are arriving vendor by vendor. Corretto, SapMachine and Zulu builds in DHI are fixed. Temurin, which many DHI application images use, is not released yet.
- Check the version the runtime reports. A tag or a recent rebuild date does not tell you which Java build is inside an image. java -version does.
- Until your image runs a fixed build, start Java with -XX:-UseBASE64Intrinsics. Set it yourself and check that it took effect. Make sure it reaches every JVM, not only the first one. The second half of this post shows how.
- The NGINX HTTP/2 flaws are fixed in the catalog. The Docker Hardened Images for NGINX are rebuilt on NGINX 1.30.7 and 1.31.9. Pull the image again, or move a pinned tag to one of those versions, and redeploy.
To decode Base64 quickly, the HotSpot JVM uses a hand-written routine built on AVX-512 instructions. That routine miscalculates a length when the input ends in unexpected padding and writes up to 62 bytes past the end of a buffer on the Java heap. Calif, the researchers who found it, turned that into heap disclosure and remote code execution.
They demonstrated code execution before authentication against default installations of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and after authentication against Kafka, Solr, Elasticsearch, Gerrit and Spinnaker. They note there is no universal exploit: each application needs its own, and they have not published those. As of November 18 there are no public reports of exploitation in the wild.
Oracle rates the issue 8.1 (High) under CVSS 3.1. The researchers rate it 9.2 (Critical) under CVSS 4.0. CISA has issued an alert urging immediate patching.
How to find out if you’re exposed- Java version. The JVM is 17.0.6 or later and does not yet include the fix. The fixed OpenJDK versions are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. Vendors add their own suffixes, but in the builds we checked, the build string printed by java -version contains one of those four numbers when the runtime is fixed.
- CPU. The host is x86-64 and supports AVX-512 VBMI: Intel Xeon from Ice Lake onward, AMD EPYC and Ryzen from Zen 4 onward. ARM64 hosts are not affected.
- Reachability. Data an attacker controls reaches Java’s Base64 decoder. That includes Authorization headers, tokens, SAML messages and file uploads. A Java client that opens a TLS connection to a malicious server is also in scope. For anything that accepts network input, assume this is true.
All three of these must be true
To check a host’s CPU, run this on the host or Kubernetes node. Hardened runtime images have no shell, so it will not run inside the container.
grep -m1 ‘^flags’ /proc/cpuinfo | tr ‘ ‘ ‘\n’ | grep -E ‘^(avx512f|avx512bw|avx512vbmi|bmi2)$’
The host is affected if all four flags are printed.
Two other ways to check, for when a shell on the node is hard to get.
Ask the JVM. This works in hardened images:
docker run –rm –entrypoint java <image> -XX:+PrintFlagsFinal -version | grep -w UseAVX
UseAVX = 3 means the JVM is using AVX-512 on that host. Treat the host as affected until the full check says otherwise. A value of 0 to 2 means AVX-512 is not in use. On ARM64 nothing is printed. The answer applies only to the host the command ran on.
Ask Kubernetes. kubectl get nodes -L kubernetes.io/arch,node.kubernetes.io/instance-type shows the architecture and instance type of every node. If you run Node Feature Discovery, nodes with the instruction set carry the label feature.node.kubernetes.io/cpu-cpuid.AVX512VBMI=true.
Check build runners and CI workers as well. They run Java, and they talk to the network.
Ask the JVM. This works in hardened images:
docker run –rm –entrypoint java <image> -XX:+PrintFlagsFinal -version | grep -w UseAVX
UseAVX = 3 means the JVM is using AVX-512 on that host. Treat the host as affected until the full check says otherwise. A value of 0 to 2 means AVX-512 is not in use. On ARM64 nothing is printed. The answer applies only to the host the command ran on.
Ask Kubernetes. kubectl get nodes -L kubernetes.io/arch,node.kubernetes.io/instance-type shows the architecture and instance type of every node. If you run Node Feature Discovery, nodes with the instruction set carry the label feature.node.kubernetes.io/cpu-cpuid.AVX512VBMI=true.
Check build runners and CI workers as well. They run Java, and they talk to the network.
Where Docker Hardened Images standJava runtime in DHI
DHI status
Amazon Corretto 17, 21, 25, 27
Fixed. The published images report 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2 and 27.0.1.1.4.
SapMachine 21, 25, 27
Fixed. The published images report 21.0.13.1+2, 25.0.5.1+2 and 27.0.1.1+4.
Azul Zulu 17, 21, 25, 27
Fixed. The published Zulu images we checked report 17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2 and 27.0.1.1+4.
Eclipse Temurin 17, 21, 25, 27
Waiting for Adoptium to complete its release. On November 18 Adoptium had published 27.0.1.1+4 for x86-64 Linux only. 17.0.21.1, 21.0.13.1 and 25.0.5.1 were still in testing. Adoptium tracks progress in adoptium/temurin#326. Our published images still report 17.0.21+9, 21.0.13+9, 25.0.5+8 and 27.0.1.0.2+1, which are vulnerable.
Java 26 (any vendor)
Java 26 reached end of support in September 2026, so no fix is expected from any vendor, and it is not among the fixed lines in the OpenJDK advisory. If you run it, treat it as affected and keep the flag set. We recommend moving to Java 25 or updating to Java 27. If you cannot migrate yet, ask us whether Extended Lifecycle Support can cover your version. It is the Docker Hardened Images Enterprise add-on for software past its upstream end of life.
Java 8 and 11
Not affected by this CVE and no action is needed for it. The same November update fixes other issues in these lines, so update when new images arrive.
Application images that bundle Java, such as Keycloak, Jenkins, Kafka, Elasticsearch and Solr
They follow the bundled runtime, which for many of them is Temurin, and they are rebuilt once the runtime they use is fixed. Until then, set the flag yourself.
Set the mitigation flag yourself on every JVM that is still waiting for a fixed runtime, and check what each image already sets before you do. Treat the flag as a stopgap, because a JVM is protected only if the flag reaches it when it starts, and a deployment setting or a start script can override it or drop it. A fixed runtime is the only thing that closes the issue, so move to the fixed image as soon as it is published.
Next Steps: If you are not running Docker Hardened Images yetThe CPU check and the mitigation flag in the steps below apply to any image that runs a HotSpot-based OpenJDK build. The version strings in this post come from Docker Hardened Images, so for an image from another source, confirm the fixed build in that source’s advisory.
The fixed build can only come from whoever builds your image, because the Java runtime and the system packages your application runs on come from the image underneath it. That dependency is why a hardened image is a necessary step toward a trusted software supply chain. With Docker Hardened Images, tracking each vendor’s fix and rebuilding on it is work Docker does for you. The images are minimal and secure by default, and they are built to serve as a trusted and verifiable upstream for your builds. You can move a service onto one by following the migration guide.
If you have Docker Hardened Images deployed- 1. Find the Java in your deployments, by version. Look for DHI Java runtime images, DHI application images that bundle Java, and your own images built on either. Include JVMs you add in your own layers. Ask each runtime for its version. This works on hardened images, which have no shell:
docker run –rm –entrypoint java <image> -version
Compare the result with the fixed versions above. Temurin-21.0.13+9 is vulnerable. Corretto-21.0.13.1.2 is fixed.
Do not rely on a vulnerability scan alone for this. The public vulnerability databases were still incomplete for this CVE on November 18. - Set the flag. For most deployments, set JAVA_TOOL_OPTIONS on the container:
docker run -e JAVA_TOOL_OPTIONS=”-XX:-UseBASE64Intrinsics” <your-image>
env:
– name: JAVA_TOOL_OPTIONS
value: “-XX:-UseBASE64Intrinsics”
Three cases need more care, and the next section covers them: images that already set Java option variables (our FIPS images do), environments that also run Java 8, and anything that starts more than one JVM.
Prefer this flag to -XX:UseAVX=2, the other published mitigation. UseAVX does not exist on ARM64, and a JVM given it there will not start. Applications that decode very large volumes of Base64 may run slower with the flag. Test before a wide rollout.
The flag addresses this CVE only. The same OpenJDK release fixes nine other CVEs, including two rated 7.4 that affect every Java line from 8 to 27. Only the fixed image addresses those. - Restart, then verify. The flag is read only at JVM startup. It cannot be changed in a running JVM, so every JVM has to be restarted. Then look for this li