Patching Java4Shell Across a Fleet Built Three Different Ways

CVE-2026-114938 is fixed in Temurin 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. Getting 17 services onto the fix took a runtime inventory, a vendor map, a replaced base image and a manual trigger in eight repositories.

By VVV Ops ·

Adoptium published its guidance for CVE-2026-114938, the OpenJDK flaw nicknamed java4shell, on 18 November 2026, with fixed Temurin builds 17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2 and 27.0.1.1+4. Installing a fixed JDK is the easy part. For one client, 17 Java services had to pick it up, and their images reached the JRE by at least three routes: Temurin images, Paketo buildpacks that ship Liberica, and one base image that no longer existed.

This post is about that second part: finding out what runs, getting each build path onto the fix, and proving it landed. For the pipeline-side controls that catch the next CVE earlier, see integrating security into the CI/CD pipeline. For how a JVM sizes itself inside a container, see container fundamentals.

What the advisory says

The Adoptium guidance describes a memory corruption vulnerability in OpenJDK 17 and later that lets an unauthenticated remote attacker run code on x64 systems. The CPU has to support the AVX-512 VBMI instruction set for a system to be affected. Temurin 8 and 11 are not affected.

Two more lines from the same page matter for a fleet. Until a service can be upgraded, -XX:-UseBASE64Intrinsics on the Java command line disables the affected code path. And Temurin container images "are available once all of the binaries of a particular JDK version are published," so a Dockerfile that pulls a Temurin tag gets the fix only after the image for its JDK line is out and the service is rebuilt.

Start from what is running

Our engineer started with a runtime inventory: every nginx and Java image running in dev, in production and on EC2 hosts, checked against the open CVEs (nginx HTTP/2, this Java one, plus Ruby and PHP), with exploitability rated per host. A per-host column is useful for this CVE in particular, since the advisory ties it to a CPU feature.

Repositories say what should be running. An inventory of running images also covers the EC2 hosts, and the images built long ago from tags that have since moved. The nginx side of the same inventory ended with nginx at 1.30.7 in nine repositories.

Three ways the JRE gets into an image

He then verified a vendor map for the fleet: which JVM each service ships and which build path puts it there. Each path takes the fix differently.

| Build path | Where the JRE comes from | What a fix takes | |---|---|---| | Dockerfile on a Temurin image | the base image tag | a fixed Temurin image for the JDK line, then a rebuild | | Paketo buildpacks | the JVM buildpack; the Paketo Java docs name Liberica as the default | a builder that carries the fixed JVM, then a rebuild | | Removed base image | nothing, the image is gone | a new base image |

For the Temurin services he identified the fixed builds. For the buildpack services he traced the Paketo buildpack chain that installs Liberica, and proved the fix by rebuilding one service in dev.

The third row was a service built on openjdk:17-alpine. That base had been removed, so it moved to Temurin 17. The openjdk page on Docker Hub has said for a long time that the image is deprecated and that only early-access builds kept receiving updates after July 2022. A patch campaign is where images like that surface, because a rebuild is the first time in a while anyone has asked for the base.

A rebuild also exercises the whole build, and other things break. One service's build failed on a stale Chrome apt pin, unrelated to Java. The pin was refreshed and the service redeployed to dev on the fixed JRE. Budget for this. In a fleet that rebuilds rarely, some share of the patch work will be build repairs that have nothing to do with the CVE.

Seventeen services, seventeen redeploy paths

The Java patch report listed 17 services, and they did not redeploy the same way. Our engineer wrote down, per repository, how that service gets to dev, as a memo for the developers.

In eight repositories he added a manual trigger to the version-bump pipeline. In GitHub Actions that is the workflow_dispatch event, which puts a "Run workflow" button in the UI once the workflow file is on the default branch:

# Illustrative: keep the workflow's existing triggers and add workflow_dispatch.
on:
  push:
    branches: [main]
  workflow_dispatch:

The trigger produced five dev deploys, which he watched through. One hit a GitHub release-creation fault, and he worked around it for that service.

What counts as verified

The fix was verified in dev for five services. Two more were redeployed to dev on the fixed JRE, and the service that lost its base image now runs on Temurin 17. That is where this write-up stops. The production rollout is not part of it.

We would not count a service as patched on the strength of a green pipeline or a scanner result alone. The check we would want for each service is the runtime version inside the running container, read from the container itself (for example java -version through kubectl exec), compared against the fixed version for its JDK line. Services that cannot be rebuilt soon can take the -XX:-UseBASE64Intrinsics flag from the advisory in the meantime, with a ticket to remove it.

If your Java services reach their JRE by more routes than you can list from memory, ask us for a vendor map and we will begin with the inventory of what is running today.

Tags: patching java4shell across a fleet, CVE-2026-114938, java4shell temurin, paketo buildpacks liberica, security automation, container security