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.
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
| Item | Detail |
|---|---|
| Component | HotSpot, JIT compiler (Oracle and Corretto classify it as hotspot/compiler) |
| Flaw | Out-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 / interaction | None / none, according to Oracle |
| Hardware | x86-64 with avx512f, avx512bw, avx512vbmi and bmi2. ARM64 is not affected |
| Workaround | JVM flags (-XX:-UseBASE64Intrinsics or -XX:UseAVX=2), not officially supported by Oracle |
| Active exploitation | None confirmed; not in CISA KEV as of 18 Nov 2026 |
| Published | 17 Nov 2026, 1 p.m. Pacific |
| Credit | Quang 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()andBase64.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:
- The output size of the final chunk is computed as
(n / 4) * 3and then decreased by 1 for each=padding character. - With a final chunk of 1 to 3 bytes,
(n / 4) * 3is zero. If it ends in=, the result becomes -1 or -2. There is no check for a negative value. - The mask that limits how many bytes may be written is built with the
BZHIinstruction, 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. - 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. - 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.

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.

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
Authorizationheader is decoded before the password is checked. Equixly names Spring Security; HeroDevs and Kevin Breen (Immersive), via Tenable, name Tomcat'sBasicAuthenticator; HeroDevs also names Jetty's. - JWT with the auth0
java-jwtlibrary, which decodes header and payload withjava.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 Calif | Products |
|---|---|
| Before login | Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, PingFederate |
| After login | Apache Kafka (broker), Apache Solr, Elasticsearch, Gerrit, Spinnaker |
| Sample applications | Apache 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 JVM | AVX-512 VBMI | External input to the decoder | No login | Priority |
|---|---|---|---|---|
| Yes | Yes | Yes | Yes | Fix now; workaround until the patch arrives |
| Yes | Yes | Yes | No | Fix this week; risk depends on who has a login |
| Yes | Yes | No or unknown | — | Fix in the next window; "unknown" counts as yes if the application uses authentication libraries |
| Yes | No | — | — | 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.
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:
| Line | Affected | Fixed (OpenJDK / Oracle) |
|---|---|---|
| 17 | 17.0.6 to 17.0.21 | 17.0.21.1 |
| 21 | up to 21.0.13 | 21.0.13.1 |
| 25 | up to 25.0.5 | 25.0.5.1 |
| 27 | up to 27.0.1 | 27.0.1.1 |
| Oracle 8 Performance Pack | 8u511-perf | 8u513-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
| Distribution | Status |
|---|---|
| Oracle Java SE | Fixed: 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 |
| Amazon Corretto | Fixed 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 Linux | Fixed packages (ALAS2-2026-4123 and ALAS2023-2026-3478 to 3481, among others) |
| Eclipse Temurin | No 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 |
| Debian | Fixed 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 Zulu | No mention of the CVE in Azul's tracker as of 18 Nov |
| Official Docker Hub images | We 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.
| Flag | What it turns off | Cost | Caution |
|---|---|---|---|
-XX:-UseBASE64Intrinsics | Only the Base64 intrinsic | Base64 falls back to the slower Java version | Preferred by Red Hat and HeroDevs |
-XX:UseAVX=2 | All AVX-512 code in the JVM | Cryptography and other vectorised routines slow down | x86-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
| Date | Event | Source |
|---|---|---|
| Jun 2021 | AVX-512 optimisation of the Base64 decoder proposed for JDK 18 (JDK-8268276) | Equixly |
| Jan 2023 | OpenJDK 17.0.6 ships with the intrinsic | Equixly (inference), Calif, Tenable |
| 22 Oct 2026 | CVE reserved | HeroDevs |
| 17 Nov 2026 | Details leak before the fix; Calif confirms on X | Tenable, HeroDevs |
| 17 Nov 2026, 1 p.m. PT | Oracle, OpenJDK and Calif publish; Corretto and Amazon Linux ship the same day | Calif, Corretto changelogs, ALAS |
| 17–18 Nov 2026 | Red Hat publishes its bulletin; Debian fixes in sid; Ubuntu under evaluation | Red Hat, Debian, Ubuntu |
Checklist
- Inventory the running JVMs, per process and per image: the real version (
jcmd <PID> VM.version), not thejavaon thePATH. Include products with a bundled JDK. - Split by architecture: ARM64 and x86 without AVX-512 VBMI drop off the urgent list. Check on the real nodes.
- 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. - 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.
- Until then, apply
-XX:-UseBASE64Intrinsicsto the applications from step 3 and confirm withjcmd <PID> VM.flags -all. - Rebuild the images once the base image carries the fixed JDK; updating the host is not enough.
- Remove the flag once the fixed runtime is live.
- 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
- Calif, technical write-up and product list: https://calif.io/java4shell/
- Datadog Security Labs, technical analysis (17 Nov 2026): https://securitylabs.datadoghq.com/articles/java4shell-remote-code-execution-in-openjdk-cve-2026-114938/
- Equixly, analysis of the stub and exposure conditions (17 Nov 2026): https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/
- Tenable, FAQ (17 Nov 2026): https://www.tenable.com/blog/java4shell-cve-2026-114938-frequently-asked-questions-about-openjdk-rce-vulnerability
- Horizon3.ai: https://horizon3.ai/attack-research/vulnerabilities/cve-2026-114938/
- HeroDevs, exposure in Spring Boot, Tomcat and Jetty: https://www.herodevs.com/blog-posts/java4shell-cve-2026-114938-spring-boot-tomcat-jetty
- watchTowr, FAQ: https://watchtowr.com/intelligence/java4shell-cve-2026-114938-faq/
- Red Hat, CVE page and bulletin RHSB-2026-018: https://access.redhat.com/security/cve/CVE-2026-114938 and https://access.redhat.com/security/vulnerabilities/RHSB-2026-018
- Amazon Linux Security Center: https://explore.alas.aws.amazon.com/CVE-2026-114938.html
- Amazon Corretto 17, 21, 25 and 27 changelogs: https://github.com/corretto/corretto-17/blob/develop/CHANGELOG.md, https://github.com/corretto/corretto-21/blob/develop/CHANGELOG.md, https://github.com/corretto/corretto-25/blob/develop/CHANGELOG.md, https://github.com/corretto/corretto-27/blob/develop/CHANGELOG.md
- Debian Security Tracker: https://security-tracker.debian.org/tracker/CVE-2026-114938
- Ubuntu: https://ubuntu.com/security/CVE-2026-114938
- OSV (Debian record, with Oracle's text and vector): https://osv.dev/vulnerability/DEBIAN-CVE-2026-114938
- Adoptium, release calendar: https://adoptium.net/support/
- Aikido, version table per distribution: https://www.aikido.dev/blog/java-17-rce-vulnerability-cve-2026-114938
- Astra Security: https://www.getastra.com/blog/security-advisory/cve-2026-114938/