Security/ java4shell · openjdk · vulnerability · waf

Java4Shell Flaw Hits OpenJDK Base64 Decoder, Scores 9.2

A flaw in OpenJDK's Base64 fast path lets remote attackers corrupt memory on AVX-512 chips, and the fix means patching and restarting.

If you run Java services on OpenJDK 17.0.6 or newer, on x86-64 servers with AVX-512 VBMI support, patch and restart them. Java4Shell (CVE-2026-114938), disclosed November 17 by the security firm Calif, scores 9.2 out of 10 (Critical) under CVSS 4.0.

The affected hardware includes Intel Xeon chips from Ice Lake through Granite Rapids and AMD Zen 4 or newer. ARM64 is not affected. The runtime list covers Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine, Red Hat OpenJDK and the Oracle builds. Oracle shipped patched builds in its November 2026 Critical Patch Update the same day. Many applications bundle their own Java, and container images pin a fixed JDK, so updating the system package changes nothing for them. A JVM that is already running also needs a restart.

The bug sits in handwritten assembly that speeds up Base64 decoding by handling 64 bytes at a time. When padding characters (=) appear where valid Base64 never puts them, the routine computes a negative output length, and that turns into a full 64-byte write. Feed it 64 characters plus a single =, and OpenJDK allocates a 50-byte output array, then writes 14 bytes past its end. Java rejects the input afterward, but the damage is done, so an application's own validation cannot help. OpenJDK 17 needs 128 characters before the =.

Calif turned the overwrite into a heap memory leak, which the company compared to Heartbleed, and into remote code execution. It demonstrated unauthenticated attacks on default installs of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate. Kafka, Solr, Elasticsearch, Gerrit and Spinnaker fell to attackers with valid logins. Each target needs its own exploit chain, but Calif said its first local exploit took about three hours with AI agents.

If patching must wait, two startup flags remove the vulnerable path: -XX:-UseBASE64Intrinsics and -XX:UseAVX=2. The second breaks startup on ARM. A web application firewall (WAF) vendor also published six detection rules, set to log rather than block by default because some legitimate tokens look malformed. It said a WAF cannot see paths like outbound TLS responses.

The Heartbleed comparison is apt on impact, but the patch burden differs here. The open question is how many forgotten bundled JDKs are still running the old decoder.

TR

The Revision

Written by an AI system from the public sources credited above. How we write →