Skip to content
Back to the blog

CVE-2026-114938: Pre-auth heap overflow in Java 17, 21, 25, and 27

Breaches & Vulns

Nov 17, 2026 · 20 min read

CVE-2026-114938, nicknamed Java4Shell, is a memory corruption flaw in the hardware-accelerated Base64 decoder of OpenJDK. An unauthenticated remote attacker who can get crafted Base64 data decoded by a vulnerable JVM can overwrite 62 or 63 bytes of the Java heap. The decoder, not the attacker, chooses those bytes, but Calif, which found the flaw, reports code execution without login on six common applications. Other labs have so far reproduced crashes and a memory read, not code execution. It affects Java 17.0.6 and later, 21, 25, and 27. Oracle rates it 8.1 under CVSS 3.1, with high attack complexity and no login needed, and Oracle and OpenJDK fixed it on November 17, 2026.

As of November 19, 2026, Oracle, OpenJDK, Amazon Corretto, Azul Zulu, Eclipse Temurin, Microsoft, SapMachine, BellSoft Liberica, Ubuntu, and Red Hat have shipped fixes, while the official Temurin Docker images, some Debian packages, and some Red Hat container images still lag. No exploitation in the wild has been confirmed, and the CVE is not in CISA KEV, but a trigger for the overflow is public and GreyNoise, watchTowr, and Cloudflare have reported exploit-shaped requests.

Updates

  • November 19, 2026: Fixes are out from Oracle, OpenJDK, and most vendors. We added vendor fixed builds, the full CPU check, vendor-confirmed mitigations, detection signs, and other labs’ results, and explained how Calif turns a fixed overflow into code execution. We launched a free Java4Shell checker that tells you whether a service is affected and drafts the change request.
  • November 18, 2026: Credited Calif as the discoverer and added its code execution claim, the OpenJDK advisory’s 8.1 score, Java 27, and the Java SE 8 Performance Pack.
  • November 17, 2026: First published, before Oracle’s patch release.

Vulnerability details

FieldValue
CVECVE-2026-114938 (record published by Oracle)
NicknameJava4Shell
SeverityHigh: Oracle scores it 8.1 under CVSS 3.1 (high attack complexity, no privileges needed). Calif scores it 9.2 under CVSS 4.0 (Critical), Red Hat 9.8, and Amazon 8.8
CWENot assigned. Reported as an integer underflow leading to a heap buffer overflow (consistent with CWE-191 and CWE-122)
ComponentHotSpot’s x86 Base64 decode intrinsic, AVX-512 path, used by java.util.Base64 decoders
Affected versionsJava 17.0.6 to 17.0.21.0.3, and 21, 25, and 27 before their .1 builds, in every OpenJDK distribution. Also the Java SE 8 Performance Pack (8u511b33-perf) and Oracle GraalVM. Standard Java 8 and 11 are not affected
Fixed versionBuilds ending in .1: 17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1, released November 17 by Oracle and OpenJDK (upstream fix JDK-8393212). Other distributions use their own labels: see the products table
Preconditionsx86-64 CPU with AVX-512F, AVX-512BW, AVX-512 VBMI, and BMI2 (Intel Ice Lake or later, AMD Zen 4 or later) and the accelerated decoder active, and attacker-controlled data reaching a java.util.Base64 decoder. No authentication or user interaction needed
CISA KEVNot listed as of November 18, 2026 (catalog)
ExploitationNo confirmed exploitation in the wild. A public trigger reproduces the overflow, and exploit-shaped requests have been seen. Calif reports RCE on six applications but is withholding its exploit chains

TL;DR

  • Java 17 (from 17.0.6), 21, 25, and 27 runtimes on x86 hardware with AVX-512 VBMI are vulnerable to unauthenticated heap corruption if they decode untrusted Base64. Crashing them is easy; Calif reports RCE on six applications, which no other lab has reproduced yet.
  • Not affected: ARM servers (AWS Graviton, Ampere, Apple Silicon), x86 CPUs without AVX-512 VBMI, and standard Java 8 and 11. The Java SE 8 Performance Pack is affected.
  • Install your vendor’s fixed build and restart every JVM, or start it with -XX:-UseBASE64Intrinsics until a fix ships. Both need only a restart, so a load-balanced farm can be patched node by node without downtime.
  • Inventory Java runtimes now, including bundled JDKs and container base images, and prioritize internet-facing services that decode Base64 from clients.
  • Check products that bundle their own Java, such as Atlassian Data Center and the Jenkins and Keycloak container images: they need an update from their vendor.

Who is not affected

If your Java services run on ARM, this flaw does not affect them. The bug is in x86-only code, and an ARM JVM uses a different decoder: our probe found no stray writes on Temurin 17.0.21 for arm64 across 794 crafted inputs.

  • ARM hosts: AWS Graviton, Ampere Altra, Azure Cobalt, Google Axion, and Apple Silicon.
  • x86 CPUs without AVX-512 VBMI: Intel Xeon Skylake, Cascade Lake, and Cooper Lake; AMD EPYC before Zen 4 (Naples, Rome, Milan); Intel desktop CPUs from Alder Lake on, which ship with AVX-512 disabled.
  • x86 under emulation: Rosetta and QEMU expose AVX2 at most, so amd64 containers on an Apple Silicon Mac cannot reach the bug.
  • Standard Java 8 and 11: they have no Base64 decode intrinsic. The Java SE 8 Performance Pack (8u511b33-perf) is affected: update it to 8u513-perf.
  • JVMs started with -XX:-UseBASE64Intrinsics or -XX:UseAVX=2: the flawed code path is never generated.
  • Code that never uses the basic or URL decoder of java.util.Base64: the MIME decoder skips the flawed path, and Jackson, JJWT, Nimbus JOSE+JWT, and Apache Commons Codec have their own decoders.

The CPUs at risk are Intel Xeon from Ice Lake on (Sapphire Rapids, Emerald Rapids, Granite Rapids) and AMD from Zen 4 on. On Linux, grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$' prints all four required flags on them.

What is CVE-2026-114938?

To speed up java.util.Base64, HotSpot replaces the Java decoding loop with a hand-written assembly routine, called an intrinsic, once the JIT compiles it. On x86 CPUs with AVX-512, that routine decodes 64 bytes or more at a time and then handles the leftover bytes and padding separately.

According to Calif’s technical write-up, the padding handling in that tail step has an integer underflow. A malformed input ending in = makes the decoder write 62 or 63 bytes past the end of its output buffer on the Java heap, corrupting adjacent objects. Heap corruption of this kind is the usual starting point for code execution.

The version boundary fits this explanation. The AVX-512 Base64 decoding optimization was backported to the JDK 17 update branch in November 2022, which would place it in OpenJDK 17.0.6, released January 2023. Calif and Red Hat have since confirmed 17.0.6 as the first affected Java 17 build.

Three factors limit exposure:

  • The vulnerable path runs only on x86-64 CPUs with AVX-512 VBMI (Intel Ice Lake or later, AMD Zen 4 or later). ARM hosts, including AWS Graviton, and x86 CPUs without AVX-512 VBMI, such as Skylake and Cascade Lake Xeons, should not reach it.
  • The input must reach java.util.Base64. Libraries with their own pure-Java decoders, such as Apache Commons Codec, do not use the intrinsic.
  • The intrinsic replaces the Java code only after the JIT compiles the decoder. On a busy server that happens within seconds, so this is a weak limit in practice.

The optimization was proposed for mainline JDK in June 2021, so Java 21, 25, and 27 carry the same code: the 21 and 25 update branches and mainline have the same tail step. Java 8 and 11 have no Base64 decode intrinsic, and OpenJDK confirms they are not affected. The Java SE 8 Performance Pack is the exception.

Technical analysis

The flaw is in the last step of HotSpot’s AVX-512 Base64 decoder, and we confirmed it in the OpenJDK source. It writes 62 or 63 bytes past the output array, and the attacker does not control those bytes. Calif shows that, with effort, an attacker can control what sits next to the array.

The path to the bug

Base64.Decoder.decode() allocates an array of exactly the decoded length and calls decodeBlock, which the JIT replaces with a hand-written x86 routine. That routine takes its AVX-512 path only when all of these hold:

  • the CPU has AVX-512 VBMI and AVX-512 BW;
  • the input is longer than 128 bytes on Java 17, or 31 bytes on Java 21 and 25;
  • the decoder is the basic or URL one, not the MIME one.

The path decodes 256- and 64-byte blocks, then the last 1 to 63 bytes in one masked step.

The arithmetic

For a tail of n bytes, the routine sets the output size to (n / 4) × 3, rounded down, and subtracts 1 for each trailing =. A tail of 1 to 3 bytes gives 0, so a trailing = makes it −1 or −2. The store mask comes from the bzhi instruction, which reads only the low 8 bits (255 or 254): any value of 64 or more clears nothing, so all 64 bytes are stored.

Tail of the inputOutput size computedRoom left in the arrayBytes written past it
=, X=, or XY=−1262
== or X==−2163

The trigger

An input that ends in =, whose length is 1 to 3 more than a multiple of 64, with only valid Base64 characters before the tail, triggers it above the threshold. The smallest are 65 to 67 bytes on Java 21 and 25, and 129 to 131 bytes on Java 17; 128 characters plus = works on all three.

What gets written

The routine fills the input it does not load with the letter a, and the one or two characters an attacker supplies decode into the bytes that still fit. What lands past the end is therefore always the same: 9A, then 69 A6 9A fifteen times, then sixteen 9A bytes (with two =, one A6 comes first).

What the caller sees

The routine returns 1 or 2 bytes fewer than a correct decode, but Java resumes at the same input position. It throws IllegalArgumentException, exactly as a patched JVM does for the same invalid input, so nothing in the response differs.

Where the bytes land

The array was just allocated in the thread’s allocation buffer, so the bytes after it are usually free space that the next allocation overwrites. An array that ends at the buffer’s edge puts them over a live object and replaces its header (the mark word and class pointer); the JVM then crashes when the garbage collector or other code touches that object. Calif’s exploit makes this deliberate: it sizes its requests so the array is allocated outside the thread’s buffer, next to arrays it has sprayed there.

How a fixed overflow can still lead to RCE

Code execution from a heap overflow normally needs control over what is written or where. Here the bytes are fixed, and a header full of 9A 69 A6 names no valid class, which is why early readings, ours included, pointed to a crash.

Calif’s write-up shows a way around it. It arranges the heap so the overflow lands on a neighboring array and enlarges it, then uses that array to write bytes of its choosing and a second array to read memory back, a step it calls JavaBleed. It reports code execution without login on default installs of Keycloak, Jira, Confluence, Artifactory, Jenkins, and PingFederate, and with a login on Kafka, Solr, Elasticsearch, Gerrit, and Spinnaker. There is no universal exploit: each target needs its own memory layout and timing, and Calif is withholding its exploit chains.

Reproduced by other labs

We have read the source of the 17, 21, and 25 update branches and mainline, but not yet run it on hardware. Other labs have. Upwind reproduced the overflow on an AWS Ice Lake host, where it damaged the next object and crashed Java. Blackpoint crashed a Spring Boot app with about 28,300 malformed login requests in roughly 20 seconds, without logging in, and in a local test read a secret stored next to the overflow. Neither reproduced code execution.

What is the impact?

The worst case is code execution as the user running the JVM, which Calif reports on six common applications without login. Independent labs have so far shown pre-auth crashes and memory reads. Java backs a large share of API servers, gateways, and identity providers, so that process often holds database credentials, signing keys, and tokens for downstream services.

APIs decode Base64 from clients all the time, and much of it happens before authentication completes:

  • HTTP Basic credentials in the Authorization header are decoded before the password is checked. Spring Security decodes them with java.util.Base64.
  • JWT header and payload segments are Base64URL-decoded, often before the signature is verified. Auth0 java-jwt does this with java.util.Base64; JJWT and Nimbus JOSE+JWT (the library Spring Security uses) have their own decoders.
  • SAML messages, webhook payloads, and Base64 fields in request bodies reach the flaw only if the code decodes them with java.util.Base64. Jackson, which maps JSON into byte[] fields, uses its own decoder.
  • Outbound TLS connections. Calif reports a client-side exploit, shared by samczsun: a Java program that connects to a malicious TLS server can be compromised even if it runs no service of its own, through a path it has not published.

Any of these can carry a crafted value to the decoder without a valid account. Whether a given service is exploitable depends on which library does the decoding, and only the basic and URL decoders of java.util.Base64 reach it.

Plan for denial of service first: crashing a vulnerable JVM is easy, while code execution needs work tailored to each target. Most attempts change nothing: the stray bytes usually land in free memory that the next allocation overwrites. When they hit a live object, they wipe its header and the JVM is likely to crash, so repeated attempts can take services down. The host does not need to be internet-facing either: internal services that decode data from other systems are in scope for lateral movement.

Which products are affected?

Oracle and OpenJDK fixed CVE-2026-114938 on November 17, 2026. Fixed upstream builds end in .1, and the same version without it is still vulnerable. Status as of November 19, 2026:

ProductAffectedFixed build
Oracle Java SE 1717.0.6 to 17.0.21.0.317.0.21.1
Oracle Java SE 21, 25, and 2721.0.13.0.3, 25.0.5.0.3, and 27.0.1.0.3 and earlier21.0.13.1, 25.0.5.1, and 27.0.1.1
Oracle Java SE 8 Performance Pack8u511b33-perf8u513-perf
Oracle GraalVM for JDK 17 and 2117.0.21.0.3 and 21.0.13.0.317.0.21.1 and 21.0.13.1
Oracle GraalVM Enterprise Edition21.3.20.0.321.3.20.1
Amazon Corretto 17, 21, 25, and 27Earlier builds, from 17.0.6 on Java 1717.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, and 27.0.1.1.4. Docker tags are unchanged, so pull again
Azul Zulu 17, 21, 25, and 27Earlier builds, from 17.0.6 on Java 1717.70.201, 21.54.201, 25.38.201, and 27.30.201
Eclipse Temurin 17, 21, 25, and 2717.0.6 to 17.0.21+9, and 21, 25, and 27 before the fix17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2, and 27.0.1.1+4, released November 18. The official Docker images still ship the vulnerable October builds
SAP SapMachine 17, 21, 25, and 27Earlier builds17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1 released; release notes do not name the CVE
Ubuntu OpenJDK packages17, 21, and 25 (and 27 on 26.10)Fixed November 18 (USN-9155-1 to USN-9158-1); 20.04 and 18.04 through Ubuntu Pro
Debian OpenJDK packages17, 21, and 25openjdk-21 and openjdk-25 fixed in stable (trixie; DSA-6639-1 and DSA-6640-1); openjdk-17 in bookworm still vulnerable
Red Hat: RHEL 8, 9, and 10, Red Hat build of OpenJDK, and UBI images17, 21, and 25RHEL 8, 9, and 10 fixed November 19, Red Hat build of OpenJDK November 18 (RHSB-2026-018); some container images, including ubi10/openjdk-21, still pending
Microsoft Build of OpenJDK17.0.6 and later, 21, and 2517.0.21.1, 21.0.13.1, and 25.0.5.1 released; release notes point to the OpenJDK advisory instead of naming the CVE
BellSoft Liberica17.0.6 and later, 21, 25, and 2717.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1, released November 18

Check the full build string, not just the version: Temurin’s vulnerable October build is 17.0.21+9, and the fixed one is 17.0.21.1+2. Applications and appliances that bundle their own JDK need a fix from that vendor.

Which actions should security teams take?

Not sure where a service stands? Our Java4Shell checker asks six questions and gives you a verdict, a plan, and a one-page change request for whoever has to approve the work.

1. Upgrade

Install your vendor’s fixed build, then restart every Java process. The fix needs only a restart, so services behind a load balancer can be patched node by node without downtime.

  • Vendor builds carry their own version labels. Check each vendor’s advisory for the fixed build instead of matching Oracle’s build number.
  • Replacing files on disk does not change a JVM that is already running. Confirm the running build with jcmd <PID> VM.version.
  • Rebuild container images after the base image is updated. Images pinned to older digests stay vulnerable. The same image can be vulnerable on one host and safe on another, because the CPU decides.

2. Reduce exposure until you can patch

Restrict external access to Java services you do not need to expose, including admin interfaces, with firewalls, security groups, and IP allowlists. A WAF or API gateway can block the trigger on the paths it inspects. Every trigger is invalid Base64: it ends in an equals sign, but its length is not a multiple of 4, a shape valid Base64 never has. A proxy that buffers request bodies, as nginx does by default, blocks some attacks but not all. Neither a WAF nor a proxy covers outbound TLS connections.

This rule matches it in the Authorization header and works in both RE2- and PCRE-based WAFs. JWTs carry no padding at all (RFC 7515), so a JWT that contains = can be rejected as well.

text
^Basic\s+(?:\S{4})*\S{0,2}=$

Red Hat and Calif recommend a JVM flag as an interim mitigation until a fixed build is installed. In Upwind’s lab, -XX:-UseBASE64Intrinsics stopped the overflow on every affected version tested. Our reading of the HotSpot source agrees: with -XX:-UseBASE64Intrinsics the routine is never generated, and with -XX:UseAVX=2 it is built without its AVX-512 part. Remove the flag once the fixed build is installed:

text
# Option A: disable the Base64 intrinsics only
-XX:-UseBASE64Intrinsics

# Option B: cap AVX at level 2, which disables all AVX-512 code paths
-XX:UseAVX=2

Option A is narrower, and Red Hat lists it as the preferred option. Option B also slows cryptography and other vectorized code, and works only on x86: Java on ARM64 does not recognize it and will not start. Do not use -XX:DisableIntrinsic=_base64_decodeBlock on its own either; Upwind warns it stops Java from starting. Apply either through the service’s JVM arguments or JAVA_TOOL_OPTIONS, restart, and confirm with java -XX:+PrintFlagsFinal -version | grep -E 'UseAVX|UseBASE64Intrinsics'.

3. Find exposed instances

To find hosts in scope:

  • Check the runtime each service actually uses. java -version reports only the first Java on the path, and many applications bundle their own JDK. Use readlink -f /proc/<PID>/exe and jcmd <PID> VM.version on running processes.
  • Check the CPU. Hosts without AVX-512 VBMI should not reach the vulnerable path. grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$' must print all four flags for a host to be exposed.
  • Check containers and pipelines. Look at the base image in each Dockerfile so an old JDK is not reintroduced on the next deployment.
  • Prioritize internet-facing services that accept Basic credentials, JWTs, SAML, or Base64-encoded uploads.

Upwind suggests three signs of attempts, while warning that none proves a compromise and their absence does not prove a server is safe: Base64 values of 32 characters or more that end in = and whose length is not a multiple of 4, especially in Authorization headers; bursts of IllegalArgumentException from java.util.Base64$Decoder; and unexplained hs_err_pid crash logs or bursts of restarts.

Unexplained JVM crashes, such as new hs_err_pid*.log files, may indicate exploitation attempts. Do not expect the log to name Base64: the crash comes later, when the garbage collector or other code reads the damaged object.

Timeline

DateEvent
November 19, 2026Red Hat ships fixes for RHEL 8, 9, and 10. GreyNoise, watchTowr, and Cloudflare report probing and exploit attempts
November 18, 2026Ubuntu, Eclipse Temurin, BellSoft Liberica, and the Red Hat build of OpenJDK ship fixed builds
November 17, 2026Oracle and OpenJDK release fixes, and Amazon Corretto and Azul Zulu ship the same day. Calif discloses Java4Shell and reports RCE on six applications. Red Hat publishes RHSB-2026-018, and CISA urges immediate patching. Upwind and Blackpoint reproduce crashes and a memory read on hardware, but not code execution
November 17, 2026South Korea’s National Intelligence Service tells public institutions to inspect Java runtimes
November 16, 2026Advisory attributed to South Korea’s NCSC flags the flaw, rated 9.2 under CVSS 4.0
November 12, 2026Oracle publishes the November CSPU pre-release announcement: 11 Java SE patches
November 4, 2026The September 9 pull request is closed unmerged after eight weeks without activity
September 9, 2026A malformed input that triggers the overflow is posted publicly in a proposed OpenJDK fix
January 2023OpenJDK 17.0.6 ships, the first affected Java 17 build
November 2022AVX-512 Base64 decoding optimization backported to the JDK 17 update branch
June 2021Optimization proposed for mainline JDK

The bigger security pattern

Like the Apache HTTP Server mod_http2 flaw (CVE-2026-119618), this bug sits below the application. Here it triggers while the runtime decodes an input, before any authentication or business logic decides whether the request is valid. No safe black-box test can tell a patched JVM from a vulnerable one here: one trigger gets the same error from both, and only repeated attempts that can crash the service show a difference. The check is an inventory of Java builds and CPUs.

The code also sat in plain sight for almost four years. A performance optimization in the runtime turned a routine operation, decoding a header or token, into an attack surface on every AVX-512 VBMI host that does it. A trigger was even posted publicly on September 9, in a proposed OpenJDK fix that was closed unmerged after eight weeks without activity. Scoping it takes three facts per service: its Java build, whether its CPU has AVX-512 VBMI, and whether it decodes client input with java.util.Base64.

How Equixly helps

Equixly pentests the applications a flaw like this puts at risk, and shows which APIs take Basic credentials, JWTs, or Base64 input from clients: the services to check first for this flaw.

  • Every application. Web apps, APIs, MCP servers, and LLM apps, from one platform.
  • Inside the network too. Space Link runs in your environment, so internal services get tested without being exposed.
  • Every release, no per-test bill. Test on every release.

Not sure if your services are affected? Use our free Java4Shell checker to get a verdict in six questions. To learn more and see the platform in action, book a demo.


Did you like our post? Share it on social!

Related Articles

View all articles

  • Breaches & Vulns

    CVE-2026-115560: PHP session RCE needs no runtime switch

    CVE-2026-115560 is a pre-auth PHP RCE via upload progress in shared session stores with mixed serializers. Fixed in 8.6.0, 8.5.13, 8.4.28, 8.3.37, and 8.2.36.

  • Breaches & Vulns

    Ruby2Shell: Pre-auth heap overflow in Ruby 3.3, 3.4, and 4.0

    Ruby2Shell (GHSA-34m4-m9fh-gqp5) is a pre-auth heap overflow in Ruby that can lead to RCE in Rails and Sinatra apps. Fixed in Ruby 4.0.10, 3.4.13, and 3.3.14.


    • Alexandra WellsAlexandra Wells
    • Eugen SaraciEugen Saraci

    Nov 19, 2026

    Read more: Ruby2Shell: Pre-auth heap overflow in Ruby 3.3, 3.4, and 4.0