Java4Shell: OpenJDK Base64 Flaw Enables Pre-Auth RCE
Calif disclosed Java4Shell (CVE-2026-114938), a memory-corruption flaw in OpenJDK's Base64 decoder that it rates 9.2 (Critical) under CVSS 4.0. A remote attacker without credentials can send malformed Base64 — 64 'A' characters followed by '=' on current JDKs, 128 on OpenJDK 17 — to overwrite heap memory, leak its contents, and in Calif's tests reach remote code execution. The bug lives in hand-written assembly that uses AVX-512 VBMI instructions, so only x86-64 machines with those CPU extensions are exposed. Calif demonstrated pre-auth RCE in default configurations of Keycloak, Atlassian Jira and Confluence, JFrog Artifactory, Jenkins and PingFederate, and post-auth RCE in Kafka, Solr, Elasticsearch, Gerrit and Spinnaker; it says the lists are not exhaustive. Oracle released patched builds on November 17, 2026: Java 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. Java SE 8 and 11 are not affected by this CVE, and no exploitation in the wild had been reported as of that date. No workaround has been published; patching is the fix.
Anyone running Java 17, 21, 25 or 27 should inventory every runtime — including JDKs bundled inside applications and container base images — and move to the fixed build for that line; vendors such as Eclipse Temurin, Amazon Corretto and Azul Zulu ship on their own schedules and may use different build numbers. Internet-facing services are the priority. A community-suggested mitigation, running with -XX:UseAVX=2 to avoid the affected code path, is unconfirmed and should not replace patching.
Commenters found the exploit technically impressive but noted its narrow conditions: one quoted Calif's own write-up saying the network-based heap grooming is sensitive to latency and jitter, so stable low round-trip times make the attack more reliable. Semgrep's ievans linked free detection scripts that check five conditions, including that only HotSpot-based JDKs generate the vulnerable code. Another commenter relayed an unconfirmed Twitter claim that the -XX:UseAVX=2 flag avoids the bug.