Java4Shell (CVE-2026-114938) is a critical memory-corruption flaw in OpenJDK's Base64 decoder, disclosed and patched on 17 November 2026. Calif, which found it, scores it 9.2 under CVSS 4.0, while Oracle rates it 8.1 under CVSS 3.1. What makes it awkward is where it lives: in the JDK itself. Your pom.xml and build.gradle never mention the JDK, so dependency scanners will not flag it. This post is about the real unit of work: every JVM you actually run, wherever it came from.

What happened on 17 November

The security firm Calif discovered and reported the flaw. According to Calif, it affects OpenJDK from 17.0.6 onward. Because many vendors build from OpenJDK, Calif lists these distributions as also vulnerable: Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine, Red Hat OpenJDK, Oracle OpenJDK, Oracle Java SE and Oracle GraalVM for JDK.

This is not only a Java 17 issue. Several write-ups carry Java 17 in their titles, but the vulnerable Oracle Java SE builds Calif lists (as given by Oracle) are 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3 and 27.0.1.0.3. Java 21, 25 and 27 are covered too. In the other direction, Qualys lists releases before 17.0.6, including standard OpenJDK 8 and 11, as not affected; the one Java 8 exception is Oracle's Enterprise Performance Pack build 8u511b33-perf.

Oracle released patches on 17 November in its November Critical Security Patch Update. CISA published an alert the same day strongly urging immediate patching and describing a critical memory-corruption flaw in the Base64 decoder of the x86-64 HotSpot JVM.

One line on the AI angle, since it is already well covered: Calif says its researcher needed an hour to find the bug and two more hours for a first working exploit, at under $200 in token cost. BleepingComputer reports the discovery used OpenAI's Codex. The practical consequence is that you should plan for a short gap between disclosure and weaponisation.

How the bug works and who is exposed

Per Calif's write-up, for a 65-character input OpenJDK allocates a 50-byte result array. The assembly routine mishandles the stray =, computes a negative output length and writes 64 bytes, which is 62 past the end of the array. Java rejects the input afterwards, but neighbouring objects may already be corrupted. Code execution is not the only outcome: Calif also turned the overwrite into a Heartbleed-style read of the Java heap, which can hold keys and tokens.

The vulnerable code is hardware-specific. It needs an x86-64 processor with AVX-512 VBMI support, and ARM64 is not affected. Calif's examples of CPUs that qualify include Intel Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, plus AMD Zen 4 or newer.

There is no universal exploit. Calif says attackers must find an application-specific way to deliver malicious Base64 to the decoder. Even so, the researchers exploited default configurations for unauthenticated RCE against Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and achieved authenticated RCE against Kafka Broker, Solr, Elasticsearch, Gerrit and Spinnaker.

On exploitation status: Aikido and Qualys saw no reports of in-the-wild exploitation as of 17 November, and Endor Labs notes the CVE was not in CISA's KEV catalogue on that date. Qualys adds a caution: according to the researchers, details of the bug leaked before the patch. Calif published the mechanics and a bounded standalone trigger but is withholding application-specific exploit chains while users upgrade, with no date given for publishing them. The accurate summary is: safe reproducer out, weaponised chains withheld. Re-check before you rely on that.

Why your scanners will not find it

Endor Labs makes the point plainly: the JDK is not declared in your build files, so manifest scanning will not surface it. It recommends container scanning to find images carrying OpenJDK from 17.0.6 on.

In practice the JDK hides in four places:

  • the host's system JDK (installed by a package manager or a setup script)
  • container base images (eclipse-temurin, amazoncorretto, a vendor image, or your own)
  • JDKs bundled inside products you installed rather than built
  • CI runners and build agents

The third one is the trap. Patching the host does nothing for a product that ships its own runtime, and a running JVM keeps the old code until it restarts. Qualys advises restarting every Java process, because a patch or a flag takes effect only when the JVM restarts, and verifying the running process rather than the installed package. Endor Labs says to rebuild and redeploy container images and confirm the running build with jcmd.

A starting point for the inventory:

# every running JVM, when it started, and which binary it runs
ps -eo pid,lstart,args | grep '[j]ava'

# CPU check from Calif's write-up: the host meets the hardware
# condition only if all four flags are printed
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'

# which JDK does an image carry?
docker run --rm --entrypoint java IMAGE:TAG -version

A JVM whose start time is older than your patch time is still running old code. The CPU check is for ordering the work only. Verify per host rather than assume: Qualys warns that a workload on an unaffected CPU today can land on an affected one after an instance resize or a move to newer hardware, so a missing flag is not a reason to skip an upgrade.

Prioritise: identity and build systems first

The exploited products suggest an order. Our recommendation:

Priority What Why
1 Internet-facing identity providers and build/artifact servers: Keycloak, PingFederate, Jenkins, Artifactory, Jira, Confluence Calif demonstrated unauthenticated RCE against these in default configurations
2 Any Java service that handles tokens, logins or uploads These are the places where attacker-controlled Base64 reaches the decoder
3 Internal Kafka, Solr, Elasticsearch, Gerrit, Spinnaker Calif's RCE there was authenticated, and they are less exposed

Clients are not immune either: Calif reports a client-side exploit in which a Java program that opens a TLS connection to a malicious server can be compromised. Treat Java tools that open TLS connections to servers you do not control as part of the later waves, not the first.

The patch pipeline: expect vendor lag

Oracle shipped fixed builds on 17 November. According to Qualys, those are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, plus 8u513-perf for the Java 8 Enterprise Performance Pack. Other OpenJDK vendors publish on their own schedules. As of 17 November, Qualys notes Amazon had released Corretto 17.0.21.1.2 with the fix.

If you build OpenJDK from source, be careful. Endor Labs says that as of 17 November the public jdk17u, jdk21u and jdk25u repositories did not carry the fix, even though Oracle's matching builds do. Confirm your tree contains JDK-8393212 before you build.

A workable sequence:

  1. Build the inventory (hosts, images, bundled JDKs) and mark internet-facing items.
  2. For each distribution you use, check the vendor's release notes for a fixed build and note which ones lag.
  3. Update base images, rebuild every dependent image, and redeploy rather than patching in place.
  4. Update bundled-JDK products through their own vendors' updates.
  5. Restart long-lived JVMs and confirm start times are newer than the patch.
  6. Re-run container scanning to confirm nothing from 17.0.6 onward and unpatched remains in your registry.

The stopgap flag: useful, but not vendor-confirmed

Calif recommends launching OpenJDK with -XX:-UseBASE64Intrinsics, or with -XX:UseAVX=2, as temporary mitigations, and still tells all Java users to update. Qualys prefers the first flag because it only turns off the fast Base64 path. The second disables AVX-512 altogether, so its performance cost is broader, and it must be used only on x86-64 hosts: OpenJDK on ARM does not recognise it and will not start. Endor Labs lists a narrower option that turns off only the decode intrinsic: -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_base64_decodeBlock. Any of these takes effect only after the JVM restarts.

On status, Orca points out that these options exist in affected JDKs but have not been validated by Oracle or OpenJDK as a fix for this CVE. Treat the flags as researcher-recommended and unconfirmed by the vendor.

CISA's alert suggests other compensating controls where patching has to wait: restricting and validating Base64 input at the application boundary, enforcing input-size limits and limiting unauthenticated access. Qualys notes that size limits alone will not stop this bug, because the malformed input is very short.

Our take: use them only where a patched build is not yet available for a high-priority system, test in staging first because they change JVM startup options and performance characteristics, and set a date to remove them once the patched runtime is deployed.

Key takeaways

  • Java4Shell (CVE-2026-114938) is in the JDK, so manifest and dependency scanners will not find it; use container and host inventory.
  • Calif's affected range starts at OpenJDK 17.0.6 and covers Oracle Java SE 17, 21, 25 and 27 builds, not only Java 17.
  • Only x86-64 CPUs with AVX-512 VBMI run the vulnerable path, and ARM64 is not affected. Verify per host and do not use it to excuse an upgrade.
  • Patch order: internet-facing identity and build/artifact servers, then services handling tokens, logins or uploads, then internal Kafka, Solr and Elasticsearch.
  • Rebuild images on patched bases and restart every JVM; replacing files does not change a running process.
  • Vendors ship on different days, and source builders must confirm JDK-8393212 is in their tree.
  • -XX:-UseBASE64Intrinsics and -XX:UseAVX=2 are researcher-recommended stopgaps, not vendor-validated fixes. Never set -XX:UseAVX=2 on ARM hosts: the JVM will not start.
  • As of 17 November there were no reported in-the-wild attacks, but weaponised chains are expected later. Re-check before you plan around that.