Java4Shell: The Critical Java Flaw That Gives Attackers RCE Without a Login — Patch Today


Java runs everywhere — identity servers, build pipelines, ticketing systems, banks. On 17 November 2026, researchers at security firm Calif disclosed a critical flaw in Java itself that can hand attackers remote code execution on a server without any login. It’s called Java4Shell, tracked as CVE-2026-114938, and Oracle shipped fixes the same day. CISA issued an alert urging organizations to patch immediately.

What Is Java4Shell?

The bug lives in OpenJDK’s Base64 decoder — the code that turns encoded text back into raw data. Base64 is everywhere: login headers, API tokens, file uploads. To make decoding fast, OpenJDK uses hand-written processor instructions (AVX-512) on modern chips. A short, malformed Base64 string makes that fast decoder write 62 bytes past the end of a memory buffer before Java rejects the input. That heap corruption is enough to read secrets from memory — private keys, tokens, personal data — and, with the right chain, run attacker code.

The researchers rate it 9.2 under CVSS 4.0 (critical). Oracle rates it 8.1 under CVSS 3.1. Either way, it’s serious.

Who Is Affected?

Two conditions must both be true:

  • Java runtime: Unpatched OpenJDK-based builds from version 17.0.6 onward, including Java 21, 25 and 27. Every vendor distribution is in scope — Oracle Java SE, Eclipse Temurin, Amazon Corretto, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine and Red Hat OpenJDK. Releases before 17.0.6, including standard OpenJDK 8 and 11, are not affected.
  • Processor: x86-64 chips with AVX-512 VBMI — Intel Xeon from Ice Lake through Granite Rapids, and AMD EPYC and Ryzen from Zen 4 onward. ARM64 systems and older x86 chips are not affected.

Calif demonstrated pre-authentication RCE on default installations of Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins and PingFederate. With a logged-in user, they also reached RCE on Kafka, Solr, Elasticsearch, Gerrit and Netflix Spinnaker. The lists are not exhaustive — sample apps built on Apache Struts and Spring Boot were also affected. Identity providers and build servers are the worst-case targets: compromise one and attackers inherit the trust every downstream system places in it.

Exploitation Status — Honest Version

As of 17 November 2026, there is no public confirmation of exploitation in the wild, and the flaw is not yet in CISA’s Known Exploited Vulnerabilities catalog. Do not relax because of that. The trigger is a short malformed string, the root cause and technique are public, and the researchers say details leaked before the patch shipped. They are holding back product-specific exploits for now, but they also report finding the bug with AI assistance in about an hour and building a first working exploit two hours later, for under $200 in AI token costs. Others will repeat that work. There is no universal exploit — each product needs its own chain — but that slows mass attacks, not a targeted one against your identity provider.

How to Fix It

Updating the Java runtime is the only complete fix. Oracle’s fixed builds, released 17 November 2026:

  • Java 17 → 17.0.21.1
  • Java 21 → 21.0.13.1
  • Java 25 → 25.0.5.1
  • Java 27 → 27.0.1.1

Other vendors publish on their own schedules — Amazon had already released Corretto 17.0.21.1.2 with the fix on 17 November. Check your vendor’s advisory for the fixed build.

If you can’t patch today, there is a temporary workaround — a JVM startup flag, applied by whoever runs the application, taking effect after a restart:

-XX:-UseBASE64Intrinsics

This turns off the fast Base64 decoder where the bug lives; Java falls back to its standard decoder. Apps that decode huge amounts of Base64 may run slower, so test first. An alternative flag, -XX:UseAVX=2, disables a wider set of processor optimizations but only works on Intel and AMD servers — Java on ARM won’t start with it. Neither flag replaces the patch.

Patch in This Order

  1. Internet-facing identity providers (Keycloak, PingFederate).
  2. Internet-facing Jira, Confluence, Jenkins and Artifactory.
  3. Other internet-facing Java services handling logins, tokens or file uploads.
  4. Internal Java systems — Kafka, Solr, Elasticsearch, Gerrit, Spinnaker.

Two practical warnings from CISA and Qualys: check the runtime each application actually runs, because many products bundle their own JDK that OS updates never touch; and restart every Java process after patching — a fix only takes effect when the JVM restarts. While you wait for a vendor build, take identity and build consoles off the open internet or put them behind a VPN. Watch for unexpected JVM crashes, Java processes opening shells or outbound connections they never made before, and Java runtimes your inventory doesn’t account for.

Java4Shell is a reminder that the runtime itself can be the vulnerability — no application bug required. Patch the runtime, verify the running process, and only test systems you own or have written permission to test.

Comments

Popular Posts