Vulnerability Description and Technical Mechanics
CVE-2026-114938 is an integer underflow and heap-based buffer overflow in OpenJDK’s hardware-accelerated Base64 decoder (introduced in Java 17.0.6) that affects x86-64 CPUs with AVX-512 VBMI support.
When Base64.getDecoder() or Base64.getUrlDecoder() processes malformed trailing = padding, an unchecked size calculation underflows below zero and tricks a CPU vector store mask into writing 62 to 63 bytes past the end of the output buffer. Although Java subsequently rejects the bad input with an IllegalArgumentException, the out-of-bounds write completes first, leaving corrupted objects on the heap that can trigger JVM crashes, memory leaks, or remote code execution.
Applications using Base64.getMimeDecoder(), custom decoders, or strict input pre-validation bypass this vulnerable path, though Blackpoint Cyber also documented a separate source-offset overflow affecting Java 17.0.6–17.0.10 and 21.0.0–21.0.2.
Weaponisation & Attack Surface
Although active exploitation has not been reported as of November 18, 2026, the vulnerability supports three distinct adversarial impact tiers that vary sharply in technical barrier:
- Unauthenticated Denial of Service (Low Barrier): Requires no ASLR bypass or precision heap layout, only sufficient request volume to push overflows out of Thread-Local Allocation Buffers (TLABs) onto live heap objects.
- "JavaBleed" Heap Memory Disclosure (Intermediate Barrier): The fixed out-of-bounds spill can be weaponised into an arbitrary heap memory read primitive dubbed "JavaBleed". Specifically, Calif demonstrated that landing the overflow onto an adjacent array's length header ("reader" object) whose contents are returned in HTTP responses allows attackers to read neighbouring heap memory, exposing PII, session tokens, and private keys.
- Pre-Authentication Remote Code Execution (High Barrier): Achieving full RCE requires warming the C2 JIT compiler, forcing outside-TLAB allocations in the G1 heap, spraying paired "writer" and "reader" objects, synchronising heap layout remotely via TCP acknowledgment pauses, repairing damaged neighbour headers to prevent premature crashes, leaking pointers to bypass ASLR, and corrupting the JVM Code Cache or internal hooks.
Pre-authentication exposure arises wherever unauthenticated HTTP headers, tokens, or artefacts reach java.util.Base64.Decoder, including HTTP Basic credentials (Authorization: Basic), SAML artefacts, CSRF tokens, MIME encoded words, and JWT libraries such as Auth0's java-jwt. Testing by Calif and Upwind established pre-authentication exposure across multiple enterprise stacks, including Keycloak, PingFederate, Jira, Confluence, Jenkins, and Artifactory.
Vulnerable Versions and Affected Runtimes
CVE-2026-114938 affects upstream OpenJDK 17.0.6 and newer across the Java 17, 21, 25, and 27 branches, as well as Oracle's Java SE 8 Performance Pack (8u511b33-perf).
Standard OpenJDK 8, Oracle Java SE 8, OpenJDK 11, Oracle Java SE 11, and Java 17.0.5 and earlier are not affected by this CVE because they lack the vulnerable intrinsic.
Across x86-64 infrastructure, susceptibility aligns with Intel Ice Lake, Sapphire Rapids, Emerald Rapids, and Granite Rapids Xeon chips (plus 2019–2021 Ice Lake, Tiger Lake, and Rocket Lake client chips) and AMD Zen 4 and Zen 5 processors (EPYC Genoa/Turin and Ryzen 7000/9000). Red Hat specifically flags AWS C6i/M6i/R6i and C7i/M7i/R7a, GCP C3/C3D/C4/C4D/N4/N4D/M3/M4, and Azure Dsv5/Dsv6/Dasv6/Dasv7 instances as supporting AVX-512 VBMI. Older x86-64 servers and modern Intel client CPUs with AVX-512 fused off are unaffected.
Distribution / Product |
Vulnerable Versions |
First Fixed Build (as of Nov 18, 2026) |
Status & Vendor Notes |
Oracle Java SE 17 |
17.0.6 through < 17.0.21.1 (incl. 17.0.21.0.3) |
17.0.21.1 (17.0.21.1+4) |
Patch released Nov 17, 2026. |
Oracle Java SE 21 |
< 21.0.13.1 (incl. 21.0.13.0.3) |
21.0.13.1 (21.0.13.1+4) |
Patch released Nov 17, 2026. |
Oracle Java SE 25 |
< 25.0.5.1 (incl. 25.0.5.0.3) |
25.0.5.1 (25.0.5.1+4) |
Patch released Nov 17, 2026. |
Oracle Java SE 27 |
< 27.0.1.1 (incl. 27.0.1.0.3) |
27.0.1.1 (27.0.1.1+4) |
Patch released Nov 17, 2026. |
Oracle Java SE 8 Perf Pack |
8u511b33-perf |
8u513 (8u513-perf) |
Standard Java SE 8 and 11 are unaffected. |
Oracle GraalVM / Enterprise |
17.0.21.0.3, 21.0.13.0.3 and earlier |
17.0.21.1, 21.0.13.1, Ent 21.3.20.1 |
Listed in Oracle's advisory and The Hacker News. |
Amazon Corretto |
<= 17.0.21.0.11, <= 21.0.13.0.11, <= 25.0.5.0.10, <= 27.0.1.0.11 |
17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4 |
Fixes published Nov 17, 2026 (Java 17 vulnerable from 17.0.6). |
Azul Zulu (Free) |
Java 17 (>= 17.0.6), 21, 25, 27 prior to Nov 17 fixes |
17.70.201, 21.54.201, 25.38.201, 27.30.201 |
Fixes published. |
SAP SapMachine |
Java 17 (>= 17.0.6), 21, 25, 27 prior to Nov 17 fixes |
17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 |
Fixes published. |
Eclipse Temurin |
17 (<= 17.0.21+9), 21 (<= 21.0.13), 25 (<= 25.0.5+8) |
Pending |
No confirmed fixed build as of Nov 18. |
Red Hat Build of OpenJDK |
OpenJDK 17, 21, 25 on RHEL 8, 9, 10 |
Pending (expedited) |
Tracked under RHSB-2026-018; fixes expedited. |
Microsoft Build / BellSoft Liberica |
OpenJDK 17 (>= 17.0.6), 21, 25, 27 |
Pending |
No fixed builds listed in advisories checked Nov 17–18. |
Recommendations and Mitigations
Operators should apply interim flags carefully because incorrect syntax can prevent Java from starting or leave the flag inactive:
JVM Startup Flag |
Scope & Effect |
Operational Caveats & Guidance |
-XX:+UnlockDiagnosticVMOptions -XX:-UseBASE64Intrinsics |
Preferred workaround. Disables only the hardware-accelerated Base64 intrinsic while preserving other AVX-512 optimizations. |
Oracle and Azul documentation confirm -XX:-UseBASE64Intrinsics is a diagnostic option requiring -XX:+UnlockDiagnosticVMOptions to function; verify UseBASE64Intrinsics = false via jcmd <PID> VM.flags -all. |
-XX:UseAVX=2 |
x86-64 fallback. Restricts HotSpot vector instructions to AVX2, disabling all AVX-512 code paths. |
Do not deploy across mixed-architecture environments or global JAVA_TOOL_OPTIONS: ARM64 JVMs do not recognize this flag and will fail to start; may degrade AVX-512 workload performance. |
-XX:DisableIntrinsic=_base64_decodeBlock |
Not recommended. Attempts to disable only the specific decode block intrinsic. |
Reported to cause Java startup failures when used alone; use -XX:-UseBASE64Intrinsics instead. |
To remediate exposure systematically across hosts, containers, and edge infrastructure, execute the following steps in order:
- Patch Affected Runtimes and Rebuild Containers: Upgrade all Java 17, 21, 25, and 27 runtimes (plus Oracle
8u511b33-perf) to fixed builds, prioritising internet-facing services and identity providers such as Keycloak, PingFederate, Jira, Confluence, Jenkins, and Artifactory. Restart running Java processes so the patched runtime loads, rebuild and redeploy container images pinned to older base tags, and apply vendor-issued updates for applications bundling private JREs. - Apply Interim JVM Flags Where Patching Is Delayed: For environments awaiting vendor packages (such as pending Temurin, Red Hat, Microsoft, or Liberica updates) or maintenance windows, configure
-XX:+UnlockDiagnosticVMOptions -XX:-UseBASE64Intrinsics via service unit files or JAVA_TOOL_OPTIONS and validate via jcmd. Remove temporary workaround flags once official patches are installed. - Enforce Perimeter Filtering and Crash Telemetry Monitoring: Configure WAFs or edge proxies to alert on or block HTTP requests containing malformed Base64 strings (>= 32 characters, length not divisible by 4, trailing =) in Authorisation headers. Place buffering reverse proxies in front of Java backends; while buffering does not prevent all attacks or high-volume DoS, it disrupts TCP-synchronised remote heap-grooming primitives. Concurrently monitor application and host logs for spikes in java.util.Base64$Decoder IllegalArgumentException exceptions, unexpected hs_err_pid JVM crash dumps, and abnormal service restarts.
Resources:
- https://watchtowr.com/intelligence/java4shell-cve-2026-114938-faq/
- https://www.aikido.dev/blog/java-17-rce-vulnerability-cve-2026-114938
- https://calif.io/java4shell
Don’t forget to share this article