Back to Blog
Incident Analysis
By 
Raven Research
December 1, 2026

Java4Shell CVE-2026-114938: Out-of-Bounds Write in HotSpot’s Base64 Decoder

What Happened

CVE-2026-114938 is an out-of-bounds write in HotSpot’s AVX-512 Base64 decoder. A crafted Base64 string can make that stub write past its output buffer and corrupt memory next to it.

The result can be a crash. When the application goes on to use the corrupted state, the same bug can become remote code execution. Oracle scored it 8.1 and shipped fixes in the November 2026 Critical Patch Update, published on 17 November 2026.

The bug lives in the JVM, not in application code. Any service that hands untrusted Base64 to the JDK decoder can reach it: tokens, cookies, authentication headers, SAML messages. The application does not have to implement its own parser for the path to exist.

See Raven Block the Exploit at Runtime

‍

Why This Decoder Is Sensitive

A sensitive library handles untrusted input in a way that can affect the security of the process. Parsers, decoders, deserializers, and native code on the network path all qualify.

Raven classifies libraries into families. HotSpot’s Base64 intrinsic falls into two of them:

  • Customs Officer — it decodes untrusted input.
  • Smuggler — it is native code inside the JVM, reached from ordinary Java calls such as Base64.getDecoder() and Base64.getUrlDecoder().

The stub’s only job is to turn Base64 text into bytes. It has no legitimate reason to create a process, open a shell, or run a command. Raven treats code with that shape as higher-risk by default, before a CVE exists.

In the builds researchers tested, the basic decoder and the URL decoder take the vulnerable intrinsic. The MIME decoder does not. Libraries that decode Base64 themselves, or that reject a value before it reaches the JDK, never enter this path.

When the Stub Exists

HotSpot generates this decoder only on x86-64, and only when the CPU reports the instructions the stub uses: AVX-512F, AVX-512BW, AVX-512 VBMI, and BMI2. That is Intel Ice Lake and Sapphire Rapids, AMD Zen 4, and newer.

AVX-512 by itself is not enough. Skylake-X and Cascade Lake report avx512f and still do not generate this stub, because they do not report avx512vbmi.

ARM64 runtimes never take this path. Stock Java 8 and Java 11 do not either. Oracle’s Java 8 Enterprise Performance Pack does, because it runs on a newer JVM.

The intrinsic is on by default when the CPU qualifies. Emulation does not create the flag: a VM that hides AVX-512 does not run the stub.

Who Is Affected

Oracle’s November 2026 update lists these ranges:

Release line Affected First fixed release
Java 8 performance pack 8u511-perf 8u513-perf
Java 17 17.0.6 through builds before 17.0.21.1 17.0.21.1
Java 21 Builds before 21.0.13.1 21.0.13.1
Java 25 Builds before 25.0.5.1 25.0.5.1
Java 27 Builds before 27.0.1.1 27.0.1.1

GraalVM for JDK 17 and 21 is in the same update. Eclipse Temurin, Amazon Corretto, Azul Zulu, and the other OpenJDK builds ship the fix on their own schedule. A container that vendors its own JVM stays exposed until that image is rebuilt and the process is restarted.

Two conditions still have to be true at the same time. The runtime has to be in the table above, and it has to be scheduled onto a CPU that generates the stub. A vulnerable JDK on ARM, or on an older x86 host, is not on this path.

How Raven Application Detection and Response (ADR) Stops It

Because the decoder is already a sensitive library, a preventive policy can be in place before this CVE is published:

This decoder is not allowed to trigger process creation or command execution.

Normal Base64 decoding never needs those capabilities, so the policy leaves legitimate traffic alone. Tokens, cookies, and SAML messages still decode. The policy is not a rule about Base64 strings. It is a rule about what that code is allowed to cause.

The overflow is a memory write inside the JVM. A process-creation policy does not stop the write, and it does not stop a crash. What it stops is the step that turns the corruption into a breach. When that corrupted state is used to run a command, the new process is attributed to the decoder's call stack, and the syscall is blocked.

A signature cannot do that attribution. A WAF sees an ordinary request: Base64 in a header or a cookie is normal traffic. A dependency scanner can name a JDK version, and only after the CVE exists. Neither is watching which library was on the stack when the JVM asked the operating system for a process. Raven ADR sits in the process, so the stack is the evidence and the block happens at the syscall.

The policy does not have to mention CVE-2026-114938. The same rule holds for the next bug in this decoder, or in another decoder with the same shape: native code, untrusted input, and no legitimate reason to execute a command. Patching removes this bug. The policy covers the copies still running the old JVM, including containers that have not been rebuilt and restarted.

What to Do

Update the JVM and restart it. Include runtimes baked into container images, not only the JDK on the host. After the base image changes, rebuild and redeploy.

Where a fixed build cannot ship yet, two public JVM flags stop the vulnerable intrinsic. Both require a restart.

  • -XX:-UseBASE64Intrinsics disables the Base64 intrinsic and leaves the rest of AVX-512 in place. This is the narrower workaround.
  • -XX:UseAVX=2 limits the JVM to AVX2, so the stub is never generated. This also changes other AVX-512 work in the process, so measure it. Keep it on x86-64. ARM64 JVMs do not run this code and do not take this flag.

Confirm the intrinsic is off with java -XX:+PrintFlagsFinal -version and look for UseBASE64Intrinsics.

Patching removes the bug. The runtime policy covers the window until every copy of the JVM is actually restarted on the new build.

Summary

HotSpot’s Base64 decoder is sensitive because it is native code that decodes untrusted input, and it has no legitimate need to execute a command.

The vulnerable stub exists only on x86-64 CPUs that report AVX-512 VBMI.

A runtime policy can block process creation from that decoder before an exploit succeeds, and a JDK update closes the bug itself.

Virtually Patch the Runtime Before the Next CVE

Patching closes Java4Shell, but it does not eliminate the exposure window before every JVM is updated, every container is rebuilt, and every process is restarted. It also cannot protect against the next decoder vulnerability before a CVE or vendor fix exists.

Raven automatically virtually patches up to 99% of vulnerabilities at runtime, with or without a CVE. It prevents dangerous behavior from sensitive code without changing application code, redeploying workloads, or disrupting applications.

See how Raven's virtual patching protects applications at runtime.

Share this post