Java4Shell (CVE-2026-114938) deep dive: who is exposed and how to fix it

An arithmetic slip in HotSpot's AVX-512 Base64 decoder writes past the end of an array. The mechanism, the real exposure conditions and the fix per distribution.

Capa com o código CVE-2026-114938, as notas CVSS 8.1 e 9.2 e as versões corrigidas 17.0.21.1, 21.0.13.1 e 25.0.5.1 ao lado de um alvo desenhado em traço branco com um ponto vermelho
Um erro de sinal em poucas instruções de máquina, dentro de um caminho que só existe em alguns processadores.

CVE-2026-114938, nicknamed Java4Shell, was published on 17 November 2026, together with Oracle's November security patch release and an advisory from the OpenJDK Vulnerability Group. It is an out-of-bounds heap write inside the HotSpot JVM: on x86-64 processors with the AVX-512 VBMI extension, the accelerated version of the java.util.Base64 decoder can write up to 63 bytes past the end of the output array when it receives malformed input. It affects OpenJDK from 17.0.6 onwards and the 21, 25 and 27 lines.

The nickname echoes Log4Shell, and the first days of coverage struck the same tone. This article takes another route: it explains the mechanism from the published technical analyses, shows the four conditions that must all be true at once for an application to be exposed, and lists the fixed versions per distribution, including what has not shipped yet. The goal is to let you assess your own applications with data, not headlines.

Summary

ItemDetail
ComponentHotSpot, JIT compiler (Oracle and Corretto classify it as hotspot/compiler)
FlawOut-of-bounds heap write in the AVX-512 Base64 decode stub
CVSS 3.1 (Oracle, CVE record)8.1 — AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 4.0 (Calif, which found the flaw)9.2, no vector published
Privileges / interactionNone / none, according to Oracle
Hardwarex86-64 with avx512f, avx512bw, avx512vbmi and bmi2. ARM64 is not affected
WorkaroundJVM flags (-XX:-UseBASE64Intrinsics or -XX:UseAVX=2), not officially supported by Oracle
Active exploitationNone confirmed; not in CISA KEV as of 18 Nov 2026
Published17 Nov 2026, 1 p.m. Pacific
CreditQuang Luong (Calif.io) and Albert Yang, per Oracle's advisory as quoted by Tenable

The problem in one sentence

In an edge case at the end of the input, the output size goes negative, and the instruction meant to limit the write reads that negative as "write everything".

Where the flaw lives

When a piece of Java code gets "hot", HotSpot's C2 compiler swaps some standard library routines for versions written directly in machine instructions, the intrinsics. The Base64 decoder is one of them: on processors with AVX-512 VBMI, C2 replaces the Java loop of decodeBlock() with a vector stub that handles 64 bytes at a time. That stub lives in stubGenerator_x86_64.cpp.

The optimisation entered OpenJDK mainline through JDK-8268276, proposed in June 2021 for JDK 18. According to Equixly's analysis, which flags this as its own inference, it was brought to the 17 line in November 2022 and reached the public in OpenJDK 17.0.6, in January 2023. Calif, Tenable and Red Hat converge on the same marker: 17.0.6 onwards.

Two details shrink the surface, and they are worth keeping in mind:

  • Only the basic and URL decoders go through the stub (Base64.getDecoder() and Base64.getUrlDecoder()). The MIME decoder (getMimeDecoder()) takes another path, according to Datadog and Equixly.
  • Only after the JIT compiles the decoder. In cold code, the JVM runs the Java version, which has no defect. On a server with traffic, though, the Base64 decoder usually gets hot quickly.

The mechanism

The stub processes the input in 64-byte blocks and handles the final chunk, 1 to 63 bytes, in a separate step. Datadog, Equixly and Calif's write-up describe the same sequence:

  1. The output size of the final chunk is computed as (n / 4) * 3 and then decreased by 1 for each = padding character.
  2. With a final chunk of 1 to 3 bytes, (n / 4) * 3 is zero. If it ends in =, the result becomes -1 or -2. There is no check for a negative value.
  3. The mask that limits how many bytes may be written is built with the BZHI instruction, which uses only the lowest 8 bits of the count. -1 becomes 255 and -2 becomes 254. Any value of 64 or more leaves the whole mask set.
  4. The masked store (VMOVDQU8) then writes 64 bytes, and 62 or 63 of them land past the end of the array allocated on the Java side.
  5. Only then does validation notice the input is invalid and throw IllegalArgumentException. The caller gets the same exception a patched JVM would throw. The memory damage has already happened and stays there.
Vertical diagram in five steps. Malformed Base64 input with a short final chunk ending in an equals sign reaches the decoder. The Java side allocates the output array based on the input size. In the AVX-512 stub, the output size of the final chunk goes negative. The BZHI instruction reads only 8 bits and sets the whole mask, and the 64-byte write goes 62 to 63 bytes past the end of the array, the step in red. Finally the JVM throws IllegalArgumentException, but neighbouring memory has already been overwritten
The exception comes after the write. To the application it looks like just invalid input.

What gets written past the limit

This is the point where the analyses diverge most. Datadog and Equixly state that the bytes written out of bounds are fixed, set by the decoder rather than chosen by whoever sends the input: the stub fills the empty lanes with a constant character before decoding, and the result is a repeating pattern. The sender controls only the part that lands inside the array.

Hence two readings of the impact:

  • Datadog: denial of service is "the more readily achievable impact". In their test, the write corrupted the header of a neighbouring array and the JVM crashed later, during garbage collection. Reliable remote execution needs work specific to each application and environment.
  • Equixly: the realistic outcome is a JVM crash; code execution is "unproven".
  • Calif: describes a two-stage chain, first a heap memory leak (which it calls JavaBleed, with a risk of exposing keys and tokens) and then code execution. It says it has working chains against real products, but each product needs its own exploit and a failed attempt can bring the application down.

The two positions do not exclude each other. Writing fixed bytes does not rule out an exploitation chain; it makes one harder and more target-dependent. What can be said: crashing the JVM is the plausible scenario; code execution has been demonstrated by Calif in specific environments and is not public.

Assess your applications before you run

The flaw is real and deserves a fix in the next short window. But it only materialises when four conditions are true at the same time. Answer them in order: a "no" to any of them takes the application off the attack path, and the patch goes into the normal routine.

Decision diagram with four stacked questions. First: is the JVM OpenJDK 17.0.6 or newer, 21, 25 or 27? Second: is the processor x86-64 with AVX-512 VBMI? Third: does any code pass external data into the Java basic or URL Base64 decoder? Fourth: is that path reachable over the network without login? Only when all four answers are yes is the application in the most serious scenario, highlighted in red. A no at any step leads to fixing in the normal routine
Four questions, in order. A no to any of them changes the priority.

1. Which JVM is actually running?

Affected: OpenJDK 17.0.6 to 17.0.21, the whole 21 line up to 21.0.13, the whole 25 line up to 25.0.5 and the whole 27 line up to 27.0.1, in every distribution (Temurin, Corretto, Zulu, Microsoft, Liberica, SapMachine, Red Hat, Oracle). From Oracle, also Java SE 8 Enterprise Performance Pack 8u511-perf and GraalVM for JDK 17 and 21.

Regular Java 8 and 11 are not affected: the intrinsic was never added to those lines, according to Red Hat, Amazon and Equixly. Some third-party tables listed 8u511 and 11.0.33 because they copied Oracle's whole patch list; Astra itself warns that list is "not tied" to this CVE.

Ask the process, not the PATH. Applications often ship their own JDK, and the system java may not be the one running:

readlink -f /proc/<PID>/exe     # the process's real binary
jcmd <PID> VM.version           # version of the running JVM

In a container, the version is the base image's. Products that bundle their own JDK (Elasticsearch is the example HeroDevs gives) are not fixed by updating the host's Java.

2. Does the processor have AVX-512 VBMI?

This is the question that shrinks the list the most. According to Calif and Equixly, the extension is present on Intel Xeon from Ice Lake onwards (Sapphire Rapids, Emerald Rapids, Granite Rapids) and on AMD from Zen 4 onwards. It is absent on Xeon Skylake, Cascade Lake and Cooper Lake; AMD EPYC Naples, Rome and Milan; Intel desktop from Alder Lake (AVX-512 disabled); and all ARM64 — AWS Graviton, Ampere Altra, Azure Cobalt, Google Axion and Apple Silicon are out. Emulation through Rosetta or QEMU exposes AVX2 at most.

grep -o -m1 avx512vbmi /proc/cpuinfo   # no output = this machine lacks the vulnerable path

In the cloud, check the node, not the instance type you remember. Kubernetes pools with several machine generations and instances that move between hosts can mix CPUs with and without VBMI. Run the check on the nodes where the application actually schedules, or treat the whole pool as affected.

3. Does external data reach java.util.Base64?

Base64 shows up everywhere, but not all Base64 goes through the JDK decoder. The analyses name these paths as using java.util.Base64:

  • HTTP Basic: the Authorization header is decoded before the password is checked. Equixly names Spring Security; HeroDevs and Kevin Breen (Immersive), via Tenable, name Tomcat's BasicAuthenticator; HeroDevs also names Jetty's.
  • JWT with the auth0 java-jwt library, which decodes header and payload with java.util.Base64.
  • SAML, webhooks, Base64 fields in JSON, XML or forms, and uploads, when the application uses the JDK decoder.

And paths that do not go through it, according to Equixly: Jackson, JJWT, Nimbus JOSE+JWT (what Spring Security uses for JWT) and Apache Commons Codec have their own decoders. For your own code, the search is simple: Base64.getDecoder() and Base64.getUrlDecoder() receiving something that came from outside.

There is also an outbound path: according to Calif, researcher samczsun showed an exploit against a Java client connecting over TLS to an attacker-controlled server. Services that call arbitrary destinations (outbound webhooks, crawlers, user-configurable integrations) count too.

4. Is that path reachable without login?

This is what separates "fix this week" from "fix today". Calif published a list, which it calls non-exhaustive, of products in default configuration:

Exposure according to CalifProducts
Before loginKeycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, PingFederate
After loginApache Kafka (broker), Apache Solr, Elasticsearch, Gerrit, Spinnaker
Sample applicationsApache Struts, Spring Boot

As of 18 November we found no official statement from Atlassian, Jenkins, Keycloak, Elastic or the Apache projects about the list. And because the flaw is in the JVM, no release of Spring, Tomcat, Jetty or those products "fixes" the CVE: the fix is always the runtime.

Putting the answers together

Affected JVMAVX-512 VBMIExternal input to the decoderNo loginPriority
YesYesYesYesFix now; workaround until the patch arrives
YesYesYesNoFix this week; risk depends on who has a login
YesYesNo or unknown—Fix in the next window; "unknown" counts as yes if the application uses authentication libraries
YesNo——Normal routine; reassess if the machine pool changes
No (8, 11, ARM64)———Out of scope for this CVE

Why the scores don't match

Anyone who opens more than one source will see different numbers for the same flaw. That does not mean someone is wrong: each scored what it considered the worst case, with different CVSS versions.

CVE-2026-114938 score by sourceCVSS
CVE-2026-114938 score by source
Score
Oracle and CVE record (3.1)8.1
Amazon Linux (3.1)8.8
Calif (4.0)9.2
Red Hat (3.0)9.8

Oracle via the CVE record and Debian; ALAS; calif.io; Red Hat. Checked on 18 Nov 2026

The core difference is AC (attack complexity). Oracle set it to high, consistent with what Datadog and Equixly observed: the written bytes are not chosen and exploitation depends on the target. Red Hat set it to low, which leads to 9.8. Amazon scored it with PR:L (low privileges), assuming an authenticated user. Ubuntu currently rates it medium priority. For deciding, the table in the previous section says more about your case than any of these scores.

The fix

Oracle and OpenJDK published the fixed versions on 17 November, with a bump in the fourth version number:

LineAffectedFixed (OpenJDK / Oracle)
1717.0.6 to 17.0.2117.0.21.1
21up to 21.0.1321.0.13.1
25up to 25.0.525.0.5.1
27up to 27.0.127.0.1.1
Oracle 8 Performance Pack8u511-perf8u513-perf

The advisories do not detail the diff and we had no access to the fix commit. From the analyses, the point to fix is the output size computation for the final chunk, which must not go negative before it becomes a mask.

Status per distribution on 18 Nov 2026

DistributionStatus
Oracle Java SEFixed: 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1
Amazon CorrettoFixed on 17 Nov: 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4. Corretto 8 and 11 not affected; 22, 23, 24 and 26 no fix planned
Amazon LinuxFixed packages (ALAS2-2026-4123 and ALAS2023-2026-3478 to 3481, among others)
Eclipse TemurinNo fixed build published; Adoptium's support page schedules jdk-17.0.21.1, jdk-21.0.13.1, jdk-25.0.5.1 and jdk-27.0.1.1 for November
Red Hat (RHEL 8, 9, 10 and build of OpenJDK 17, 21, 25)Bulletin RHSB-2026-018: fixes being "expedited", no errata published. UBI and derived images should be rebuilt once the base updates
DebianFixed in sid only (17.0.21.1+2-1, 21.0.13.1+2-1, 25.0.5.1+2-1, 27.0.1.1+4-1); bookworm and trixie still vulnerable
Ubuntu"Needs evaluation" on every release; medium priority
Azul ZuluNo mention of the CVE in Azul's tracker as of 18 Nov
Official Docker Hub imagesWe found no eclipse-temurin or amazoncorretto tags with 17.0.21.1, 21.0.13.1 or 25.0.5.1

Lines that are already out of support (18 to 20, 22 to 24, 26) will not get a fix: the path is to move to a fixed LTS.

What changes for operators

The workaround and its cost

Until your distribution's fixed build ships, there are two flags. Neither is officially supported by Oracle; both appear in Calif's write-up, Red Hat's bulletin and the Datadog and Equixly analyses.

FlagWhat it turns offCostCaution
-XX:-UseBASE64IntrinsicsOnly the Base64 intrinsicBase64 falls back to the slower Java versionPreferred by Red Hat and HeroDevs
-XX:UseAVX=2All AVX-512 code in the JVMCryptography and other vectorised routines slow downx86-64 only: an ARM64 JVM does not recognise the flag and will not start

In mixed environments (x86 and ARM in the same cluster), the second flag applied globally takes down the ARM pods. Use the first. Check the flag took effect in the running process, not just in the manifest:

jcmd <PID> VM.flags -all | grep -E 'UseBASE64Intrinsics|UseAVX'

Remove the flag after updating the runtime, so you don't carry a performance cost that no longer protects anything.

What does not help

  • Updating Spring, Tomcat, Jetty or the product itself without changing the JDK. The flaw is in the runtime.
  • Updating the host's Java when the application runs in a container or bundles its own JDK.
  • Buffering at the reverse proxy. Calif states explicitly that nginx request buffering is not a general mitigation.

Signals to watch

No indicators of compromise have been published. Equixly suggests watching for unexplained JVM crashes and new hs_err_pid*.log files, noting that the crash usually shows up later, during garbage collection, rather than at request time. A single crash is not proof of an attack; a series of them on exposed services after 17 November deserves investigation.

Exploitation and PoC

As of 18 November, no source we consulted reports active exploitation, and the CVE was not in the CISA KEV catalogue according to Tenable, HeroDevs and Aikido. Calif published a local reproducer that only tells whether a JVM and processor combination shows the defect, and keeps its per-product chains private "until everyone has had a chance to upgrade". GitHub repositories claiming to be "PoCs" appeared soon after; according to Horizon3, the most visible one is just a version checker. Kevin Breen of Immersive says he built an exploit for one specific application, without releasing it.

The flaw borrows Log4Shell's name, not its mechanics: there, one string was enough on any machine; here, the processor, the version and the code path all have to line up.

Timeline

DateEventSource
Jun 2021AVX-512 optimisation of the Base64 decoder proposed for JDK 18 (JDK-8268276)Equixly
Jan 2023OpenJDK 17.0.6 ships with the intrinsicEquixly (inference), Calif, Tenable
22 Oct 2026CVE reservedHeroDevs
17 Nov 2026Details leak before the fix; Calif confirms on XTenable, HeroDevs
17 Nov 2026, 1 p.m. PTOracle, OpenJDK and Calif publish; Corretto and Amazon Linux ship the same dayCalif, Corretto changelogs, ALAS
17–18 Nov 2026Red Hat publishes its bulletin; Debian fixes in sid; Ubuntu under evaluationRed Hat, Debian, Ubuntu

Checklist

  1. Inventory the running JVMs, per process and per image: the real version (jcmd <PID> VM.version), not the java on the PATH. Include products with a bundled JDK.
  2. Split by architecture: ARM64 and x86 without AVX-512 VBMI drop off the urgent list. Check on the real nodes.
  3. Flag applications exposed without login that use Basic auth, java-jwt, SAML or other inbound Base64 with the JDK decoder. Start with the products on Calif's list that you run.
  4. Update to 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1 (or your distribution's equivalent build) as soon as it is available.
  5. Until then, apply -XX:-UseBASE64Intrinsics to the applications from step 3 and confirm with jcmd <PID> VM.flags -all.
  6. Rebuild the images once the base image carries the fixed JDK; updating the host is not enough.
  7. Remove the flag once the fixed runtime is live.
  8. Track KEV and the advisories for the products you use: the priority changes if active exploitation or a public exploit appears.

Where Leavory fits

Much of this CVE will reach you through the base image: the JDK lives inside the container, and the fix only exists for your application once the image is rebuilt on a new base. Leavory Image Scan scans up to five images, public or private, every day, with actively exploited vulnerabilities at the top, so you can see when an image in use still carries the old JDK. And Security Gate is a pipeline step that fails the build when a critical or high CVE has been public for longer than your team allows: past the deadline you set, an image with the vulnerable JDK does not move on to production.

Sources

Written by

Leavory Team Leavory team

Engineering and security at Leavory

The people who build Leavory. We write about what we learn running vulnerability management, pipelines and Kubernetes for our customers and for ourselves.

LinkedIn

See Leavory in action.

Tell us which platform you use, and an engineer, not a sales bot, will reach out to schedule a demo.

Which platform do you use?

A real conversation with an engineer.