Java4Shell (CVE-2026-114938): What It Is, Who Is Affected, and How to Fix It

·Server Pundits Engineering

  • Security
  • Java
  • OpenJDK
  • Patching
  • Linux

On November 17, 2026, security firm Calif disclosed a critical flaw in OpenJDK, the open-source core of most Java runtimes. Dubbed Java4Shell and tracked as CVE-2026-114938, it can let a remote, unauthenticated attacker run code on a Java server. Calif demonstrated it against default installs of Keycloak, Jira, Confluence, Jenkins, JFrog Artifactory and PingFederate.

Oracle and the OpenJDK project have released fixes. Here is what the bug is, how to tell whether your servers are exposed, and what to do this week.

What is Java4Shell?

Java is designed to manage memory safely, which is why this bug drew so much attention. The flaw is not in Java code. It is in a hand-tuned shortcut inside the HotSpot JVM that speeds up Base64 decoding on newer Intel and AMD processors using AVX-512 instructions.

When Base64 input ends in padding (=), that shortcut can miscalculate how many bytes to write, and it writes past the end of its buffer. Calif showed the trigger can be as small as 64 "A" characters followed by a single "=". Depending on what sits next to that buffer, an attacker can leak memory contents or take over the process.

Base64 is everywhere in web applications: HTTP Basic authentication headers, JWTs, SAML assertions, cookies, file uploads and TLS data. That is why so many ordinary login and upload paths can reach the vulnerable code.

Calif rates it 9.2 (Critical) under CVSS 4.0. Oracle and OpenJDK rate it 8.1 (High) under CVSS 3.1 and describe it as difficult to exploit. Both are fair: it is serious, but a real attack takes effort.

Found with AI in about an hour

Calif researcher Quang Luong used OpenAI's Codex coding agent to audit HotSpot. Finding the flaw took about an hour, a working exploit took about two more, and the total compute cost was under $200. Expect more discoveries like this. When finding bugs gets this cheap, the gap between a patch release and working attacks shrinks, and slow patching becomes a bigger risk.

Who is affected?

All three of these have to be true for a server to be exploitable:

  1. An affected Java version. OpenJDK 17 from 17.0.6 onward, plus Java 21, 25 and 27. Oracle also lists the Java SE 8 Enterprise Performance Pack (8u511-perf). Standard Java 8 and Java 11 are not affected. Builds based on OpenJDK are included: Eclipse Temurin, Amazon Corretto, Azul Zulu, Microsoft Build of OpenJDK, BellSoft Liberica, SAP SapMachine, Red Hat's OpenJDK and Oracle GraalVM.
  2. An x86-64 CPU with AVX-512 VBMI. That means Intel Xeon from Ice Lake onward (Ice Lake, Sapphire Rapids, Emerald Rapids, Granite Rapids) and AMD EPYC or Ryzen from Zen 4 onward. Plenty of current cloud VMs use these chips, including AWS families such as m6i, c6i, m7i and m7a. ARM64 servers, such as AWS Graviton, are not affected. Older Xeons without VBMI (Skylake, Cascade Lake) do not take the vulnerable path either.
  3. Attacker-supplied Base64 reaches the decoder. In practice, any network-reachable Java service that decodes something a user sends.

Highest priority: internet-facing Java applications such as SSO and identity servers (Keycloak, PingFederate), self-hosted Atlassian, CI/CD servers (Jenkins), artifact repositories, and custom Spring Boot or Struts APIs. Calif also showed authenticated exploits on Kafka, Solr, Elasticsearch, Gerrit and Spinnaker, so internal services matter too.

Lower risk: desktops and home users. A typical PC rarely runs a Java server that accepts Base64 from the internet.

As of November 18, no exploitation in the wild has been reported, and Calif is withholding its product-specific exploit chains until more systems are patched. That gives you a short head start, not a reason to wait.

How to check if you are vulnerable

1. Check the Java version on each server, and inside each container.

java -version

Many products, including Atlassian Data Center apps and vendor Docker images, ship their own Java runtime. Check the runtime the application actually uses, not just the one installed on the host.

2. Check the CPU. On Linux x86-64, run:

grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'

If all four flags appear, the CPU can run the vulnerable code path.

3. Confirm the workaround is active (once you have applied it):

java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep UseBASE64Intrinsics

The fix

Patch and restart

Oracle's November 17 update fixes the flaw in these releases:

ReleaseFixed in
Java 1717.0.21.1
Java 2121.0.13.1
Java 2525.0.5.1
Java 2727.0.1.1
Java SE 8 Performance Pack8u513-perf

Note the trailing .1. A runtime that reports 17.0.21 or 21.0.13 is still vulnerable. If you use Temurin, Corretto, Zulu or your Linux distribution's OpenJDK package, get the fixed build from that vendor, since each publishes on its own schedule.

After updating, restart every JVM. A patched package does nothing for a process still running the old runtime. For containers, update the base image, rebuild and redeploy. Then check vendor advisories for products that bundle their own Java runtime.

If you cannot patch today

Disable the vulnerable shortcut with a JVM startup flag:

-XX:+UnlockDiagnosticVMOptions -XX:-UseBASE64Intrinsics

Or turn off AVX-512 entirely with -XX:UseAVX=2, which may slow some workloads. Only use UseAVX on x86-64 hosts: ARM builds do not recognize it and the JVM will fail to start. Both options need a restart, and both are stopgaps until you patch.

Then reduce your exposure

  • Put admin panels, CI servers and artifact repositories behind a VPN or an IP allowlist instead of the open internet.
  • Keep an inventory of every Java runtime you run, including those bundled in vendor software and container images, so the next CVE takes hours to triage, not days.
  • Watch logs on identity and SSO endpoints for unusual volumes of malformed authentication requests.

For broader hardening, see our guide to securing your cloud server.

How Server Pundits can help

Most of the work in an event like Java4Shell is not the patch itself. It is finding every place Java runs, working out which hosts sit on affected CPUs, rolling out fixes without downtime, and proving that every JVM restarted on the fixed version.

That is what our Managed Infrastructure team does every day for Linux fleets on AWS, GCP, Azure and DigitalOcean. For Java4Shell we can:

  • Inventory your exposure: every Java runtime, version and CPU type across your servers, containers and Kubernetes clusters, including vendor-bundled runtimes.
  • Mitigate immediately: apply the JVM workaround flags to internet-facing services while patches are staged.
  • Patch with rolling restarts: update runtimes and base images, rebuild containers, and restart services without taking your applications offline.
  • Verify and report: confirm every process is on a fixed build and give you a written summary for your security or compliance records.

If you run Jira, Jenkins, Keycloak or any Java application on x86 cloud servers and are not sure where you stand, talk to our team.

References

← All posts