How To

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs

Recent Intel and AMD cloud instances run a hand-written AVX-512 routine every time a JVM Base64 decodes an attacker-controlled string. Java4Shell, tracked as CVE-2026-114938, is a heap out-of-bounds write in that routine. Red Hat rates it critical, because an unauthenticated request can turn a decode into memory corruption and remote code execution.

Original content from computingforgeeks.com - post 191816

The bug sits in the HotSpot compiler, so it reaches every current release line: OpenJDK 17 (from 17.0.6), 21, 25 and 27, on any x86-64 CPU that exposes the AVX-512 VBMI instructions. Java 11 is not affected, Java 8 only in Oracle’s 8u511b33-perf build, and ARM64 not at all. By 24 November, Ubuntu, Debian 12 and 13, RHEL, AlmaLinux and Rocky Linux 8, 9 and 10, Amazon Linux and Alpine 3.24 and 3.23 had all shipped fixed packages. The job now is upgrading, restarting every JVM that still maps the old build, and keeping the one-flag stopgap on whatever cannot be patched yet, such as Debian testing (forky) and the JDKs bundled inside applications. Step-by-step patch guides by platform: Ubuntu 26.04, 24.04 and 22.04, Debian 13 and 12, RHEL, Rocky Linux and AlmaLinux, Amazon Linux 2023 and 2 and Alpine Linux and Alpine Java images, plus Windows Server. For a JVM that ships inside an application, follow the guide for Docker and Kubernetes images, Jenkins, Keycloak, Elasticsearch and OpenSearch, Jira and Confluence, Spring Boot apps or a Minecraft server.

We ran every command here in November 2026 on Google Cloud c3 instances (Intel Sapphire Rapids) that expose all four AVX-512 features the decoder uses, on Ubuntu 24.04 and Rocky Linux 10. The Shirudo guard test ran on an Ubuntu 26.04 VM. Red Hat states that pre-authentication remote code execution has been demonstrated. Calif has published a bounded trigger that proves a JVM is vulnerable and crash-level proof-of-concept code is on GitHub, while the application exploit chains are still held back, so the window to inventory and mitigate is now rather than after those circulate.

What CVE-2026-114938 actually corrupts

The flaw is a heap out-of-bounds write in HotSpot’s AVX-512 VBMI Base64 decode intrinsic, the optimized native path behind java.util.Base64.Decoder. When the JIT compiler sees a hot decode loop on a capable CPU, it swaps the portable Java decoder for a hand-written vectorized stub. The security firm Calif reported the bug ahead of Oracle’s scheduled fix and named it Java4Shell. It traced the fault to the way that stub handles malformed padding: the computed output length underflows, the store mask opens wider than the destination buffer, and the vector write lands past the end of it. The component in the OpenJDK advisory is hotspot/compiler, which is why no application code change can dodge it.

The scoring gap between vendors tells you how to think about risk. OpenJDK and cve.org publish a CVSS 8.1 with a high attack-complexity metric, because exploitation needs both a vulnerable CPU and an application that decodes attacker-supplied Base64. Red Hat’s preliminary score is 9.8 with low attack complexity, and its security bulletin RHSB-2026-018 rates the impact critical. Both are defensible: the preconditions are narrow, but Base64 decoding of untrusted input is everywhere a JWT, a SAML assertion, a cookie or an API payload is parsed, so on a public service those preconditions are usually met. We would treat the Red Hat rating as the one that matches a typical internet-facing Java app.

The four CPU flags that decide exposure

You are exposed only when two things are true at once: the JVM is one of the affected lines, and it runs on an x86-64 CPU that advertises avx512f, avx512bw, avx512vbmi and bmi2. ARM64 hosts and older or smaller x86 instances that lack AVX-512 VBMI never generate the vulnerable stub, so they are out of scope even on an affected JDK. Red Hat’s write-up screens on the VBMI flag alone, which is the quick first cut. We grep all four anyway: the vulnerable stub is gated on avx512vbmi together with avx512bw, and on every CPU that carries VBMI the other two features ride along, so a full count of four is the clean positive and anything less rules the host out.

grep -oE '(avx512f|avx512bw|avx512vbmi|bmi2)' /proc/cpuinfo | sort -u

On our Sapphire Rapids instance all four features are present, which is the worst case for this CVE:

avx512bw
avx512f
avx512vbmi
bmi2

The same check on the lab instance, with the model line for context, looks like this:

Terminal output confirming avx512f, avx512bw, avx512vbmi and bmi2 on an Intel Xeon 8481C

A count of fewer than four means this host cannot run the vulnerable path and you can deprioritize it. The CPU families that do carry the full set are Intel Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, and AMD Zen 4, Zen 5 and Zen 6. In the clouds that maps to the newer compute lines rather than the burstable tiers:

  • Google Cloud: Red Hat’s bulletin flags C3, C3D, C4, C4D, N4, N4D, M3 and M4 as the families most likely to be affected. The older E2 and burstable tiers are not on that list, so grep each host rather than assume.
  • AWS and Azure: the same bulletin names AWS C6i, M6i, R6i and C7i, M7i, R7a, and Azure Dsv5, Dsv6, Dasv6, Dasv7 and the related D-series v5 to v7 SKUs. Match your instance type against that list, then confirm with the flag check.
  • Bare metal and on-prem: any recent server Xeon Scalable or EPYC qualifies. A fleet mixing old and new hardware will have some hosts in scope and some not, which is the reason to grep rather than assume.

The flag grep tells you the hardware can run the stub. The JVM flag tells you it will, and we come back to that below with PrintFlagsFinal, which on this same host reports the decode intrinsic enabled by default.

Every JVM on the box, not just the one in your PATH

Running java -version tells you about the one JVM in your shell’s PATH and nothing about the three others the host is actually running. A realistic server has a packaged JDK, one or two application servers with their own bundled runtime, and a container or two that each pin a different build. Enumerate the running processes first, resolve each one back to its real binary, then ask the JVM itself what it is:

ps -C java -o pid,cmd
ls -l /proc/<pid>/exe
sudo jcmd <pid> VM.version

The /proc/<pid>/exe symlink is the reliable step, because it points at the exact binary the process is executing even when the service launched from a wrapper script or an unusual path. The jcmd VM.version call then prints the build string straight from the live VM:

    PID CMD
   5503 /usr/lib/jvm/java-21-openjdk-amd64/bin/java Sleeper
lrwxrwxrwx 1 victor victor 0 Nov 18 04:23 /proc/5503/exe -> /usr/lib/jvm/java-21-openjdk-amd64/bin/java
5503:
OpenJDK 64-Bit Server VM version 21.0.13.0.3+1-1-24.04.1-Ubuntu
JDK 21.0.13

Here the three steps run together against a single application JVM:

Terminal showing ps -C java, /proc/pid/exe and jcmd VM.version to identify a running OpenJDK 21 process

The build string maps straight onto the affected range, so a line reading 17, 21, 25 or 27 on an AVX-512 VBMI host is in scope. The processes that bite teams are the ones a package manager never touches, because they ship their own JRE under their own install directory:

  • Bundled application runtimes: the Jira and Confluence installers, Elasticsearch and Logstash each carry a private JDK, and the official Jenkins and Keycloak container images pin their own. Upgrading the OS package leaves those untouched, so you have to find and flag each one separately. Our Java4Shell guides for Jira and Confluence, Elasticsearch, OpenSearch and Logstash, Keycloak and Jenkins cover each of those, and game servers are in the same position: our Minecraft server Java4Shell guide covers Paper, the itzg Docker image and Pterodactyl.
  • Container images: a base image pins its own JDK build. The host can be fully patched while a running container still maps the vulnerable code, so the inventory has to run inside the image, not just on the node. Our Java4Shell guide for Docker and Kubernetes lists which base images are fixed and how to check every pod, and our Spring Boot Java4Shell guide covers images built with buildpacks, Jib or a Dockerfile, where a cached builder can keep the vulnerable runtime.
  • Developer and CI toolchains: SDKMAN installs, Gradle and Maven daemons and build agents often run an older line than the system JDK and sit on the same capable hardware.

Write the full list down before you change anything. Every entry needs either a patched build or the stopgap flag, and a JVM you did not find is a JVM you did not fix. On Windows hosts, our PowerShell Java4Shell finder builds that list from the registry, PATH, services, running processes and a disk scan, and marks each runtime fixed or vulnerable.

The stopgap before a patched build lands

Until your distribution ships a rebuilt package, the mitigation is to disable the vulnerable intrinsic and let the JVM fall back to its portable Base64 decoder. The flag is -XX:-UseBASE64Intrinsics, it is a supported product flag rather than a diagnostic one, and it takes a restart of each JVM to apply. Confirm the starting state and the change with PrintFlagsFinal, which prints the flag’s value and where it came from:

java -XX:+PrintFlagsFinal -version | grep UseBASE64Intrinsics
java -XX:-UseBASE64Intrinsics -XX:+PrintFlagsFinal -version | grep UseBASE64Intrinsics

The default run shows the intrinsic enabled from {default}, and the second run shows it disabled from {command line}. That second line is the proof the mitigation took, and it is the one to capture for your change record:

     bool UseBASE64Intrinsics                      = true                                      {product} {default}
     bool UseBASE64Intrinsics                      = false                                     {product} {command line}

Both runs side by side make the before and after state obvious:

PrintFlagsFinal showing UseBASE64Intrinsics true by default and false with the mitigation flag

Passing the flag on a command line is fine for a process you control directly, but most of the JVMs you just inventoried start from a service unit or a vendor launcher you would rather not edit. The portable way to reach most of them is the JAVA_TOOL_OPTIONS environment variable, which every HotSpot JVM reads at startup unless its launcher strips it first. Elasticsearch and OpenSearch do exactly that: they print warning: ignoring JAVA_TOOL_OPTIONS and start with the intrinsic still on, so they need ES_JAVA_OPTS, OPENSEARCH_JAVA_OPTS or a jvm.options.d file instead, as our Elasticsearch and OpenSearch Java4Shell guide shows. For everything else, set it for a service with a systemd drop-in:

sudo systemctl edit myapp.service

Add the variable in the drop-in editor, then reload and restart so the service picks it up:

[Service]
Environment="JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics"

When the JVM starts with that variable set, it echoes a Picked up JAVA_TOOL_OPTIONS line and PrintFlagsFinal now reports the flag’s source as {environment}. That is how you confirm a bundled runtime you cannot pass flags to directly has still taken the mitigation, and why you check the flag on every product rather than assume the variable reached it:

Picked up JAVA_TOOL_OPTIONS: -XX:-UseBASE64Intrinsics
     bool UseBASE64Intrinsics                      = false                                     {product} {environment}

On Rocky Linux the environment variable carries the flag into the JVM cleanly:

JVM picking up JAVA_TOOL_OPTIONS and reporting UseBASE64Intrinsics false from the environment on Rocky Linux

The cost of the flag is a slower Base64 decode, because the JVM falls back from the vectorized stub to the portable Java decoder. We did not measure the throughput difference, and it only matters on workloads that decode large volumes. We would take that trade on any internet-facing service without hesitation and measure the impact later, on the services where decode is genuinely hot.

Shirudo’s java-base64 guard as a second stopgap

When OpenAI and Cisco launched Shirudo on 23 November, the demo that got the attention was a Codex-written shield attached to a running Elasticsearch process, stopping Java4Shell without a restart. That shield ships in the Shirudo repository as upatches/java-base64, and it isn’t eBPF at all. It’s a Java agent that rewrites java.util.Base64$Decoder.decode0 so it throws IllegalArgumentException on the input shape that drives the AVX-512 stub past its buffer: at least 65 characters, a tail of one to three characters past a whole number of 64-character blocks, ending in padding. Shirudo’s own contribution is signing that jar, measuring it into the TPM and, on its managed hosts, injecting it through JAVA_TOOL_OPTIONS, and that half needs Shirudo’s patched bpf-next kernel, which no distribution ships. Our Shirudo hands-on covers that side.

We wanted to know what a team can use today, so we built the agent on its own on an Ubuntu 26.04 VM with the stock kernel and no Shirudo stack. The build needs a JDK of release 24 or newer for the Class-File API, and the --jar-only switch stops before the signed package step. The repository’s own test program then decodes a string of the bad shape:

sudo apt install -y git openjdk-25-jdk-headless
git clone https://github.com/shirudo-dev/shirudo.git
cd shirudo
upatches/java-base64/build.sh --jar-only
upatches/test/build.sh
java -javaagent:upatches/java-base64/java-base64.jar -jar upatches/test/badDecoder.jar

With the agent loaded, the guard announces itself, refuses the 66-character candidate and logs its shape without the input bytes. Run the same program without the agent and it exits 1 with the JDK’s own complaint, Last unit does not have enough valid bits, because every string the guard targets is malformed Base64 the decoder rejects anyway. That’s why valid traffic passes: a correct 68-character string decoded to 49 bytes with the guard loaded.

OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
Base64 guard installed on java.util.Base64$Decoder.decode0
badDecoder: refused by the guard
Base64 guard rejected candidate: length=66, padding=1, remainder=2, alphabet=standard

Appending the check class to the bootstrap class path is what triggers the class data sharing warning, so it costs a little startup time, not correctness. The more useful property is that the jar also attaches to a JVM that is already running, which the flag can’t do without a restart, and it’s the same route the Elasticsearch demo used. Our stand-in for a real service was a jwebserver started on 127.0.0.1:8099, found by PID:

PID=$(pgrep -x jwebserver | head -1)
java -jar upatches/java-base64/java-base64.jar "$PID"

In the target JVM’s own log, the install shows up with no restart, after the JDK’s standard notices about native access and dynamically loaded agents. These are the last three lines, with the seven warning lines above them trimmed:

WARNING: Dynamic loading of agents will be disallowed by default in a future release
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
Base64 guard installed on java.util.Base64$Decoder.decode0

A real service adds conditions the lab target didn’t, and each one makes the attach fail rather than half work:

  • Who attaches: run the attach as the service’s own user or as root, the same rule jcmd follows, and with a java that is itself 24 or newer.
  • Where the jar lives: the target JVM opens the jar by the absolute path the attacher passes, so a copy under a 750 home directory is unreadable to a service account. Put it somewhere like /opt/java-base64/, and for a JVM in a container, at that path inside the container. The agent also writes a helper jar to the target’s temp directory, so a container without a writable /tmp refuses it.
  • JVMs that refuse agents: a JVM started with -XX:+DisableAttachMechanism or -XX:-EnableDynamicAgentLoading, or a jlinked runtime without java.instrument, won’t take it at all.

Take the PID of your own service from the ps -C java listing earlier, which catches anything launched as java, though not a launcher like jwebserver. The attach command prints nothing when it works, so a non-zero exit is your failure signal, and the install line lands on the target’s stderr, which for a systemd service means its journal. Count the service as covered only once that line is there.

Where it falls down is the runtime the agent needs. It’s compiled to Java 24 class files, so it needs a JDK 24 or newer, while Java4Shell also reaches the 17 and 21 lines. On those JVMs the same -javaagent option doesn’t fail quietly: the JVM aborts during startup with exit code 134 and a core dump. These lines come from the JDK 21 run, the first exception line and the fatal error with the stack frames between them trimmed. JDK 17 prints the same error with a limit of 61.0:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/shirudo/base64guard/Base64GuardAgent has been compiled by a more recent version of the Java Runtime (class file version 68.0), this version of the Java Runtime only recognizes class file versions up to 65.0
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed

Copying Shirudo’s delivery route without Shirudo is the trap here. A host-wide JAVA_TOOL_OPTIONS carrying this jar would stop every JVM older than 24 on the box at its next restart, most bundled runtimes included. The flag and the jar below were both tested on the same VM, and Shirudo itself needs its own kernel:

  • The -XX:-UseBASE64Intrinsics flag: accepted on all three release lines we tested (17, 21 and 25), it takes the vulnerable stub out of the code path entirely, and it costs a restart plus a slower decoder.
  • The java-base64 guard jar: runs on JDK 24 or newer, which in practice means 25, attaches without a restart and keeps the vectorized decoder for valid input, but it filters one input shape rather than removing the bug, so it’s only as good as that shape check.
  • Shirudo itself: adds signing, TPM measurement and a kernel that refuses unsigned BPF, but only on a target with its bpf-next kernel and a TPM 2.0, so it isn’t a production option yet.

We’d keep the flag as the fleet-wide stopgap. The guard jar earns a place only on a JDK 25 service that can’t take a restart before its fixed build lands, and there it should be attached by PID rather than through an environment variable. It goes away with the restart that installs the patched JVM. One limit on our evidence: the JVMs in this lab already carried the November fixed builds, so we proved the guard refuses the bad shape, not that it stops a live exploit on a vulnerable build. That part rests on the OpenAI and Cisco demo.

Fixed builds and where each distro stands

The OpenJDK advisory of 17 November 2026 names this CVE and lists the affected lines, giving the last affected builds as 27.0.1.0.3, 25.0.5.0.3, 21.0.13.0.3 and 17.0.21.0.3 and earlier. The advisory itself prints no fixed build numbers, but the OpenJDK update repositories now carry GA tags for jdk-17.0.21.1, jdk-21.0.13.1, jdk-25.0.5.1 and jdk-27.0.1.1, and the first vendor packages that close this CVE are built from them. The builds you actually run come from your distribution. Amazon Linux, Alpine 3.24 and 3.23, Ubuntu and RHEL shipped them first, by 19 November. Debian 12 and 13, AlmaLinux and Rocky Linux followed, so every supported release of those families now has fixed packages in its repositories, even where the advisory is not listed yet. The Debian, AlmaLinux and Rocky Linux rows and the Red Hat VEX date below were rechecked live on 24 November 2026; everything else is as of 19 November unless the row says otherwise:

Distro / sourceNewest build seenFix statusSource checked
OpenJDK upstreamGA tags jdk-17.0.21.1, jdk-21.0.13.1, jdk-25.0.5.1, jdk-27.0.1.1Fixed releases tagged; last affected 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3openjdk.org advisory 2026-11-17; openjdk update repositories on GitHub
Amazon Linux 2023Corretto 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4Fixed: ALAS2023-2026-3478 to 3481 (see our Amazon Linux guide)alas.aws.amazon.com
Amazon Linux 2 (EOS)java-17-amazon-corretto 17.0.21.1.2Fixed in amzn2-core: ALAS2-2026-4123alas.aws.amazon.com
Alpine 3.24 / 3.23openjdk17 17.0.21.1_p2-r0, openjdk21 21.0.13.1_p2-r0, openjdk25 25.0.5.1_p2-r0Fixed on both branches; 3.22 still on 17.0.19 and 21.0.11 with no fix committed (see our Alpine guide)dl-cdn.alpinelinux.org APKINDEX; security.alpinelinux.org
Ubuntu 26.04 / 24.04 / 22.04 (20.04 and 18.04 via Ubuntu Pro)openjdk-17 17.0.21.1+2, openjdk-21 21.0.13.1+2, openjdk-25 25.0.5.1+2Fixed 2026-11-18: USN-9155-1 to USN-9158-1; CRaC builds still vulnerable (see our Ubuntu guide)ubuntu.com/security/notices; apt-cache madison
Debian 12 bookwormopenjdk-17 17.0.21.1+2-1~deb12u1 (bookworm security)Fixed: DLA-4917-1 (bookworm is in Debian LTS, so the fix came as a DLA, not a DSA); see our Debian guidesecurity-tracker.debian.org, checked 2026-11-24
Debian 13 trixieopenjdk-21 21.0.13.1+2-1~deb13u1, openjdk-25 25.0.5.1+2-1~deb13u1 (trixie security)Fixed: DSA-6639-1 (openjdk-21) and DSA-6640-1 (openjdk-25)security-tracker.debian.org, checked 2026-11-24
Debian forky (testing)openjdk-21 21.0.13.0.3+1-1, openjdk-25 25.0.5+8-1Still vulnerable as of 2026-11-24; fixed in sid (17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2, 27.0.1.1+4), keep the flag until it migratessecurity-tracker.debian.org, checked 2026-11-24
Rocky Linux 8java-17-openjdk 17.0.21.1.2-2.1.el8_10, java-21-openjdk 21.0.13.1.2-1.1.el8_10Fixed: RLSA-2026:100563 (17) and RLSA-2026:100567 (21), published 2026-11-19; the 100567 title says “Rocky Linux 8 and 9” but its affected products list only Rocky 8apollo.build.resf.org; dl.rockylinux.org AppStream, checked 2026-11-24
Rocky Linux 9java-17-openjdk 17.0.21.1.2-2.2.el9, java-21-openjdk 21.0.13.1.2-1.2.el9, java-25-openjdk 25.0.5.1.2-1.1.el9Fixed builds on the AppStream mirror; no Rocky 9 RLSA listed in Apollo yet as of 2026-11-24, so dnf updateinfo --cve may still return nothingdl.rockylinux.org AppStream; apollo.build.resf.org, checked 2026-11-24
Rocky Linux 10java-21-openjdk 21.0.13.1.2-1.2.el10, java-25-openjdk 25.0.5.1.2-1.1.el10Fixed builds on the AppStream mirror; no Rocky 10 RLSA listed in Apollo yet as of 2026-11-24dl.rockylinux.org AppStream; apollo.build.resf.org, checked 2026-11-24
AlmaLinux 8java-17-openjdk 17.0.21.1.2-2.1.el8, java-21-openjdk 21.0.13.1.2-1.1.el8Fixed: ALSA-2026:100563 (17) and ALSA-2026:100567 (21), published 2026-11-19errata.almalinux.org; repo.almalinux.org, checked 2026-11-24
AlmaLinux 9java-17-openjdk 17.0.21.1.2-2.2.el9.alma.1, java-21-openjdk 21.0.13.1.2-1.2.el9.alma.1, java-25-openjdk 25.0.5.1.2-1.1.el9.alma.1Fixed: ALSA-2026:100564 (17), ALSA-2026:100567 (21) and ALSA-2026:100571 (25), published 2026-11-19errata.almalinux.org; repo.almalinux.org, checked 2026-11-24
AlmaLinux 10java-21-openjdk 21.0.13.1.2-1.2.el10.alma.1, java-25-openjdk 25.0.5.1.2-1.1.el10.alma.1Fixed: ALSA-2026:100568 (21) and ALSA-2026:100572 (25), published 2026-11-19errata.almalinux.org; repo.almalinux.org, checked 2026-11-24
RHEL 8 / 9 / 10java-17-openjdk 17.0.21.1.2, java-21-openjdk 21.0.13.1.2, java-25-openjdk 25.0.5.1.2Fixed 2026-11-19: RHSA-2026:100563 and 100564 (17), 100567 and 100568 (21), 100571 and 100572 (25); portable and Windows builds in RHSA-2026:100565 to 100573. UBI openjdk images not yet rebuilt (see our RHEL, Rocky and AlmaLinux guide)access.redhat.com/errata; Red Hat CSAF VEX (revised 2026-11-23)
Vendor JDKsTemurin, Microsoft, Liberica, Oracle JDK, Corretto, Zulu, SapMachine .1 buildsFixed builds out 2026-11-17 and 18. The eclipse-temurin Docker images were rebuilt on 2026-11-20 with 17.0.21.1_2, 21.0.13.1_2 and 25.0.5.1_2 (Docker official-images library, checked 2026-11-24); the tomcat, maven and gradle images were not rebuilt as of 19 November (see our Docker and Kubernetes guide for the images that are fixed)api.adoptium.net; vendor release notes; Docker Hub

Read the table with three caveats in mind before you act on it:

  • Debian security suite only: the fixed bookworm and trixie builds sit in the security suite, so a host that does not pull bookworm-security or trixie-security stays on the vulnerable point-release build. Forky has no fix yet.
  • Amazon Linux CVE filter: the fixed Corretto is out, but dnf upgrade --cve CVE-2026-114938 finds nothing because the advisories in the repository metadata carry no CVE reference. Our Amazon Linux patch guide has the commands that do work.
  • Red Hat’s CVE API lags: Red Hat’s securitydata API still listed the RHEL 8, 9 and 10 packages as Affected hours after the RHSAs shipped. Go by the RHSA pages and Red Hat’s CSAF VEX file instead.
  • Installed build, not available update: a build at or below the last affected line is still exposed, so once a rebuild lands, confirm the installed package actually moved.

Until your distribution ships, keep the flag set everywhere the hardware qualifies.

Patch and re-verify on Ubuntu and Debian

Ubuntu shipped fixed builds for every supported release on 18 November (USN-9155-1 to USN-9158-1). Our Ubuntu Java4Shell patch guide has the fixed version for each release, the apt commands, Ubuntu Pro for 20.04, and how to find JVMs still running the old build after the upgrade. Debian followed: DLA-4917-1 fixes openjdk-17 on bookworm (17.0.21.1+2-1~deb12u1), and DSA-6639-1 and DSA-6640-1 fix openjdk-21 and openjdk-25 on trixie (21.0.13.1+2-1~deb13u1 and 25.0.5.1+2-1~deb13u1), per the Debian security tracker on 24 November. The check below is from before those notices. It is the same test that tells you whether a host has picked up the fixed build.

On Debian 12 and 13 the move now is to upgrade from the security suite, restart every service, and keep the flag only on forky until its build migrates. Our Debian Java4Shell guide covers the stopgap on Debian 12 and 13, including why /etc/environment does not reach systemd services. Before the notices, the newest build in Ubuntu’s noble-security was the vulnerable one, and its changelog did not mention the CVE:

apt-cache madison openjdk-21-jre-headless
zgrep -c 114938 /usr/share/doc/openjdk-21-jre-headless/changelog.Debian.gz

The madison output lists only the current security build, and the changelog grep returns 0, which together said there was no fixed package to install on noble at the time:

openjdk-21-jre-headless | 21.0.13.0.3+1-1~24.04.1 | http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
openjdk-21-jre-headless | 21.0.13.0.3+1-1~24.04.1 | http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
0

The screenshot keeps that pre-fix state as the reference for what an unpatched host looks like:

Ubuntu 24.04 apt-cache madison and changelog grep showing the newest OpenJDK build predates the CVE-2026-114938 fix

That capture predates the fixed packages. With the DLA and DSAs out, run the ordinary apt-get install --only-upgrade for the openjdk packages, then re-run the inventory from earlier and confirm each JVM reports the fixed build before you remove the flag. Upgrading the package replaces the files on disk but does not restart a long-running JVM, so bounce each service after the upgrade. If you are standing up a clean host instead, our guides to installing OpenJDK 21 on Ubuntu and installing OpenJDK on Debian cover the repository setup you will be upgrading against.

Patch on RHEL, Rocky and AlmaLinux

Red Hat shipped fixed RPMs for RHEL 8, 9 and 10 on 19 November (RHSA-2026:100563 and 100564 for java-17-openjdk, 100567 and 100568 for java-21-openjdk, 100571 and 100572 for java-25-openjdk). On RHEL, upgrade the openjdk packages you have installed and restart every service that runs them; our RHEL, Rocky and AlmaLinux Java4Shell guide tests that on RHEL 8, 9 and 10. AlmaLinux published its rebuilds on 19 November (ALSA-2026:100563 and 100567 for AlmaLinux 8, 100564, 100567 and 100571 for 9, 100568 and 100572 for 10). Rocky Linux published RLSA-2026:100563 and 100567 for Rocky 8 on 19 November, and by 24 November the fixed java-17, java-21 and java-25 builds were on the Rocky 9 and 10 AppStream mirrors, though Apollo listed no Rocky 9 or 10 advisory yet. On Rocky 9 and 10 an empty advisory check therefore does not mean there is nothing to install. The capture below is from Rocky 10 before any rebuild existed:

rpm -q java-21-openjdk java-25-openjdk
dnf updateinfo list --cve CVE-2026-114938

On 18 November the rpm query showed the vulnerable builds and the updateinfo list returned no rows, so there was nothing to apply and the flag stayed in place:

java-21-openjdk-21.0.13.0.9-1.2.el10.x86_64
java-25-openjdk-25.0.5.0.8-1.0.el10.x86_64
Last metadata expiration check: 0:00:01 ago on Wed 18 Nov 2026 04:29:24 AM UTC.

That empty list next to the vulnerable builds was the 18 November state. Today the same rpm query should print the .1.2 builds from the table, and a host that still shows 21.0.13.0.9 or 25.0.5.0.8 needs the upgrade:

Rocky Linux 10 rpm query and dnf updateinfo returning no advisory for CVE-2026-114938

One Rocky Linux 10 detail is worth knowing before you plan the rollout. The repositories carry only the 21 and 25 lines, with no java-17-openjdk package at all, so a host that needs a 17 runtime pulls it from elsewhere and patches on that vendor’s schedule. The mitigation flag is unaffected by SELinux, which stays in enforcing mode throughout, because -XX:-UseBASE64Intrinsics changes a JVM runtime setting and touches no policy or labels. With the rebuilds now on the mirrors, run the ordinary dnf upgrade for the installed openjdk packages and restart each service so it maps the new libraries.

For a fresh build on this family, our walkthroughs for installing OpenJDK on RHEL, Rocky and AlmaLinux and specifically installing Java on Rocky and AlmaLinux set up the same package streams you will be upgrading.

Running the Calif trigger against the current builds

Calif published a bounded, self-contained trigger with its write-up. It warms the decoder with valid input until the JIT compiles the AVX-512 stub, decodes one malformed string into a larger array, and then checks the bytes past the decoded output. The decoder still throws IllegalArgumentException on the malformed input, but on a vulnerable build the out-of-bounds bytes have already been written, and the program prints REPRODUCED. An earlier version of this section decoded the malformed string once without the warm-up, saw the exception and concluded the write never happened. That test could not see the bug, and we have replaced it with the results of Calif’s trigger, run unmodified on Google Cloud c3 (Sapphire Rapids) hosts on 19 November:

RuntimeBuildCalif trigger
eclipse-temurin:21-jre and 25-jre, tomcat, maven and gradle images21.0.13+9, 25.0.5+8REPRODUCED
RHEL 9 and RHEL 10 java-21 and java-25 before the RHSAs21.0.13.0.9, 25.0.5.0.8REPRODUCED
Rocky Linux 9 and AlmaLinux 9 java-21 (unfixed)21.0.13.0.9REPRODUCED in 3 of 6 and 3 of 5 runs
RHEL 8 java-21 before the RHSA21.0.13.0.9NOT REPRODUCED in 5 runs, still vulnerable
Any Java 17 build17.0.21 and olderNOT REPRODUCED: the published input is sized for 21 and 25, and Java 17 needs a 128-byte input
Fixed builds (Corretto, distroless, Microsoft, Zulu, RHEL after the RHSAs)17.0.21.1, 21.0.13.1, 25.0.5.1NOT REPRODUCED, 0 of 10 runs on RHEL 10

Read a REPRODUCED as proof that the JVM is exposed, and nothing else in that table as an all-clear. The trigger misses on some vulnerable builds and on some runs, and it cannot see Java 17 at all, so a quiet result proves nothing. Keep the build string and UseBASE64Intrinsics from PrintFlagsFinal as the evidence in your change record, and use the trigger only to show a team that the risk is real on their hardware. Our RHEL, Rocky and AlmaLinux guide, Docker and Kubernetes guide and Keycloak guide have the per-run detail.

What breaks if you reach for the wrong flag

The mitigation is narrow on purpose, and the common mistakes around it are worse than doing nothing. Three are worth calling out before you roll this to a fleet.

  • Do not reach for DisableIntrinsic: some early write-ups suggest disabling the Base64 intrinsic by name through -XX:DisableIntrinsic, which needs the exact internal identifier and a diagnostic-options unlock. We did not test that path. Use the supported -XX:-UseBASE64Intrinsics product flag instead, which our PrintFlagsFinal output confirms is a first-class flag that takes effect with a single switch.
  • Do not swing UseAVX=2 as the fix: Red Hat lists -XX:UseAVX=2 as an x86-only alternative that fails to start on ARM, and lowering the JVM below AVX-512 turns off every other AVX-512 intrinsic as well, not just the Base64 one. We did not measure the throughput cost of that broader change. Target the single -XX:-UseBASE64Intrinsics flag instead.
  • Do not patch only the OS package: the bundled runtimes inside Jira, Jenkins, Keycloak and your container images lag twice, once for the distro and once for the vendor. The flag through JAVA_TOOL_OPTIONS is what reaches them while you wait.

Our recommendation is straightforward. Set -XX:-UseBASE64Intrinsics through JAVA_TOOL_OPTIONS on every JVM whose host shows all four AVX-512 flags, and keep it until your distribution ships the rebuilt package. Then upgrade, restart and remove the flag once the fixed build is confirmed installed. Hosts on ARM64 or on older x86 without VBMI can wait for the normal patch cycle. This is the same find, mitigate and verify loop we used for the recent Git CVE-2026-111760, applied to a flaw that happens to live one layer down, in the JIT compiler rather than the application.

Keep reading

UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch PHP2Shell (CVE-2026-109618, CVE-2026-109619): Check and Patch PHP Php PHP2Shell (CVE-2026-109618, CVE-2026-109619): Check and Patch PHP GL.iNet Security Notice: Check Your Router for Malware and Update Networking GL.iNet Security Notice: Check Your Router for Malware and Update Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch Security Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch Install Arch Linux with LUKS Full Disk Encryption Arch Linux Install Arch Linux with LUKS Full Disk Encryption

Leave a Comment

Press ESC to close