On 17 November 2026 Oracle and the OpenJDK Vulnerability Group published fixes for CVE-2026-114938, nicknamed Java4Shell. It is a memory-corruption bug in the HotSpot x86-64 Base64 decoding intrinsic: a short malformed Base64 string can corrupt JVM memory, which can crash the process and, under specific conditions, lead to remote code execution without authentication. The name is a nod to Log4Shell and Spring4Shell, but the comparison is mostly about the fix effort, not the exposure: this bug needs particular hardware and a particular code path, and it was not reported as exploited successfully at the time of writing.

Status as of 24 November 2026. Facts below come from the sources listed at the end; check your vendor’s advisory before acting on a specific build number.

What the vulnerability is

  • Component: the HotSpot JIT-compiled, hand-written AVX-512 assembly implementation of Base64 decoding, reached through the basic and URL decoders of java.util.Base64 (OX Security). Oracle and OpenJDK classify it under the Java HotSpot compiler (watchTowr summary of the Oracle advisory).
  • Trigger: a malformed Base64 string sent by an unauthenticated attacker to an application that decodes untrusted input.
  • Scores: CVSS 3.1 of 8.1 (Oracle and OpenJDK, attack complexity high) and CVSS 4.0 of 9.2 (Calif, the reporting firm). Red Hat rates it 9.8 (ThreatDefence).
  • Credit: reported by Calif (Quang Luong); Oracle also credits Albert Yang. ThreatDefence adds that Chainguard found it independently by fuzzing on 13 November.
  • Impact: Tenable notes attacks can read application memory (Calif’s “JavaBleed” variant) or run code on the server. A failed attempt can crash the application, and each application needs its own exploit.

Who is exposed

Exposure is narrower than the headline suggests. A JVM is vulnerable only if all of these hold:

  1. Java version: OpenJDK 17.0.6 or later, 21, 25 or 27 before the November builds, plus the Oracle Java SE 8 Enterprise Performance Pack (8u511b33-perf) and Oracle GraalVM. Standard Java 8, Java 11 and Java 17.0.0 to 17.0.5 are not affected.
  2. Hardware: an x86-64 CPU with AVX-512 VBMI. On Linux, avx512f, avx512bw, avx512vbmi and bmi2 must all appear in /proc/cpuinfo. Intel Ice Lake, Sapphire Rapids, Emerald Rapids, Granite Rapids and AMD Zen 4 or newer qualify. ARM64 (Graviton, Ampere, Apple silicon), Skylake-SP, Cascade Lake, Zen 2 and Zen 3 do not.
  3. Code path: untrusted data reaches the basic or URL Base64 decoder. The MIME decoder and third-party Base64 libraries are excluded (OX Security).

ThreatDefence lists affected cloud instance families, for example AWS c6i, m6i, r6i, c7i, m7i and c7a, Azure Dv5/Ev5 and Dv6/Ev6, and Google Cloud C3, C4, N4 and C3D. AWS Graviton instances and the default Lambda runtime are not affected.

OX Security’s estimate is that fewer than 0.12% of JVMs are realistically at risk of RCE and about 0.8% can be crashed remotely. That is an estimate from one vendor, not a measurement, so do not use it to skip patching. Typical Base64 consumers are token and credential parsing (Basic and Bearer headers), uploads and API payloads, which is why identity providers and CI servers were named first for prioritization.

Exploitation status

  • In the wild: as of 18 November, OX Security reported no public RCE exploit and no confirmed in-the-wild exploitation. GreyNoise reported scanning and exploitation attempts (tags such as “Base64 Heap Overflow RCE Attempt v2”) but no confirmed successful intrusion; ThreatDefence counts 261 requests from 7 IPs by 21 November.
  • Public code: Calif published a safe local trigger that checks whether a Java build and CPU reproduce the bug; it does not take over a process. Calif has not released product exploit chains. Tenable reports that VulnCheck says a working code-execution exploit is available to its customers.
  • CISA KEV: not listed in the catalog as of 23 November 2026.
  • Beware of fake tools: ThreatDefence flags a GitHub repository posing as a “Java4Shell exposure audit” that links to a PowerShell download. Read any such code before running it.

Fixed versions

LineFixed build
OpenJDK / Oracle Java 1717.0.21.1
2121.0.13.1
2525.0.5.1
2727.0.1.1
Oracle Java SE 8 Enterprise Performance Pack8u513-perf

Distributions ship their own build numbers. Examples reported by ThreatDefence: Eclipse Temurin 17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2 and 27.0.1.1+4; Amazon Corretto 17.0.21.1.2; Ubuntu USN-9155-1 to USN-9158-1; Debian DSA-6639-1 and DSA-6640-1 (Debian 13) and DLA-4917-1 (Debian 12). Do not apply Oracle’s build numbers to another distribution; read its release notes. ThreatDefence also notes Corretto 22, 23, 24 and 26 will not be fixed, so move to a supported line.

Patch and verify

  1. Inventory every runtime, not only the system Java. Jira, Confluence, Jenkins, Keycloak and Elasticsearch ship their own JDK, and java -version on the host may not match what the service uses.
  2. Check the host and the JVM:
java -version 2>&1
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
java -XX:+PrintFlagsFinal -version 2>/dev/null | grep -E ' (UseAVX|UseBASE64Intrinsics) '

A running process can be inspected with jcmd <pid> VM.version and jcmd <pid> VM.flags. 3. Upgrade to the fixed build for your line or your distributor’s equivalent, then restart every Java process. A patched package on disk does nothing for a JVM that is still running the old one. 4. Prioritize internet-facing identity providers, then internet-facing CI and collaboration servers, then services that decode tokens or uploads (OX Security’s ordering).

Docker images and bundled runtimes

Containers are where this goes unnoticed, because the vulnerable JDK lives in the image, not on the host.

  • Rebuild with docker build --pull on a patched base image, then recreate the containers. A running container keeps its old runtime until it is recreated.
  • Eclipse Temurin tags for the fixed builds were published around 20 November: 17.0.21.1_2, 21.0.13.1_2, 25.0.5.1_2 and 27.0.1.1_4 (ThreatDefence). Prefer pinned tags and check the exact one you resolve.
  • Third-party images that bundle their own JDK need the vendor to rebuild. As of 19 to 21 November, Tenable and ThreatDefence report Keycloak images (the 26.8 images were updated to Red Hat OpenJDK 21.0.13.1; tags 26.8.2-1 and 26.8.2-2 carry an affected build), and list Atlassian Data Center products, Elasticsearch, SonarQube, Artifactory, PingFederate and the official apache/kafka image as pending at that date. Check current status.
  • Inside a running container, confirm with docker exec <container> java -XX:+PrintFlagsFinal -version | grep -E 'UseAVX|UseBASE64Intrinsics'.

This is the same discipline as for any base-image CVE; see Docker security best practices.

Dependency scanning will not find it by itself

The flaw is in the runtime, not in a library in your pom.xml or build.gradle. Scanners that only read application dependencies will miss it. You need an inventory of JDKs: image scanners that read OS and runtime layers, an SBOM that includes the JRE, and a search for stray release files on hosts. Our piece on SBOMs, Sigstore and lockfiles covers why the runtime belongs in the bill of materials. Tenable notes that its version-based plugins check the Java version but not the CPU requirement, so expect findings on hosts that are not actually exploitable.

Workarounds until you can patch

Two JVM flags are documented by Calif and used by vendors such as Keycloak, Red Hat, Google and Atlassian. Neither Oracle nor the OpenJDK group mentions them.

  • Preferred, narrower: -XX:-UseBASE64Intrinsics disables only the vulnerable decoder. Base64 decoding becomes slightly slower and nothing else changes.
  • Broader: -XX:UseAVX=2 disables AVX-512 for the whole JVM. On ARM the JVM refuses to start with this flag unless -XX:+IgnoreUnrecognizedVMOptions is also set.
export JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics"

Where the flag goes depends on the product (JAVA_OPTS_APPEND for Keycloak, config/jvm.options.d/ or ES_JAVA_OPTS for Elasticsearch, JAVA_OPTS for Jenkins). Verify with jcmd that UseBASE64Intrinsics is false, and keep the flag until a fixed runtime is deployed and verified.

Proxy request buffering breaks some exploit chains but not all, and it does not apply after a WebSocket upgrade, so do not rely on it. AWS WAF Known Bad Inputs 1.28 adds partial Java4Shell rules; AWS suggests Count mode first. Restricting external access to Java services that cannot be patched yet is a reasonable stopgap.

Detection and hunting

  • Crashes: hs_err_pid*.log files, the syslog line “A fatal error has been detected by the Java Runtime Environment”, or SIGSEGV in libjvm.
  • Malformed Base64: valid Base64 never has a length of 4n+1. Look in proxy and WAF logs for Basic or Bearer values with that length ending in =, and for bursts of IllegalArgumentException from Base64.Decoder. Calif’s public trigger is 64 A characters plus = (128 on Java 17), per ThreatDefence.
  • Post-exploitation: Java processes spawning shells or download tools, new public outbound connections from Java, unexpected inbound public connections. Jenkins legitimately starts shells, so baseline first.
  • If it hit an exposed service: treat secrets in that JVM’s memory as compromised and rotate signing keys, tokens and credentials (OX Security).

How it compares to Log4Shell and Spring4Shell

Log4Shell (CVE-2021-44228) was a logic flaw in a ubiquitous library, trivially exploitable with a single string. Spring4Shell (CVE-2022-22965) needed a specific stack (Spring MVC data binding on JDK 9+, typically WAR on Tomcat). Java4Shell is closer to the latter in spirit: a real RCE chain, but conditioned on CPU features, JVM version and an application that feeds untrusted data to the decoder. It differs in being a memory-safety bug in the runtime itself, so it cannot be fixed by upgrading a dependency. It is also a reminder of the pattern we covered for PHP in October: coordinated fixes land first, the base images and bundled runtimes follow days later.

Key Takeaways

  • CVE-2026-114938 (Java4Shell) is a heap-corruption bug in the HotSpot AVX-512 Base64 decoder intrinsic, fixed on 17 November 2026 in 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1 (and 8u513-perf for the Oracle Java 8 Enterprise Performance Pack).
  • You are exposed only with an affected JDK, an x86-64 CPU with AVX-512 VBMI and untrusted input reaching java.util.Base64’s basic or URL decoder. Check /proc/cpuinfo and PrintFlagsFinal.
  • At the time of reporting there was scanning traffic but no confirmed successful exploitation and no CISA KEV listing. Treat that as a window, not a reprieve.
  • Inventory bundled runtimes and Docker images: rebuild with --pull, recreate containers, restart JVMs. Dependency scanners will not see this flaw.
  • Until patched, use -XX:-UseBASE64Intrinsics (narrow) or -XX:UseAVX=2 (broad, x86-64 only) and verify with jcmd.
  • Hunt for JVM crash logs and malformed Base64 of length 4n+1 at your proxy, and rotate secrets if an exposed service was hit.

Sources