Java4Shell: a critical vulnerability in OpenJDK’s Base64 decoder
XORit Editorial · Sources, AI assistance and corrections

On November 17 Oracle released fixes for the critical vulnerability CVE-2026-114938 in OpenJDK, which the company Calif discovered and named Java4Shell. It is a memory corruption in the Base64 decoder: a specially crafted string makes the code write data outside the allocated buffer. Oracle scored the issue at 8.1 on CVSS 3.1, Calif at 9.2 on CVSS 4.0.
The bug lies in an optimization that speeds up Base64 decoding on some Intel and AMD processors. According to Calif, an attacker can use it in two ways. The first, called JavaBleed, allows reading application memory, where keys and tokens may reside. The second allows executing one's own code on the server. No login is required, but the application must pass untrusted data to the vulnerable APIs, for example through a web service.
Versions and processors
The affected branches are Java 17, 21, 25 and 27. However, having Java alone is not enough: the affected code is enabled only on x86-64 with AVX-512 VBMI support. That covers some Intel Xeon processors of the Granite Rapids, Emerald Rapids, Sapphire Rapids and Ice Lake families, as well as AMD Zen 4 and newer. ARM64 systems are not affected. On Linux all four flags are required: avx512f, avx512bw, avx512vbmi and bmi2. Besides Oracle's builds, the issue affects OpenJDK-based distributions: Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine and Red Hat OpenJDK.
Calif tested a number of applications in their default configuration. Code execution before login succeeded on Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins and PingFederate; after login, on Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit and Spinnaker. The list is not exhaustive: according to Calif, ordinary features such as authentication and file uploads can lead to the vulnerable code.
Exploits and patches
There is no universal exploit: each application needs its own, and a failed attempt can crash the process, although the attack can often be repeated. By November 18 GreyNoise reported exploitation attempts but did not confirm successful hits on its sensors. VulnCheck said a working exploit is available to its clients. CISA issued a warning on the day of disclosure; the vulnerability has not been added to the Known Exploited Vulnerabilities catalog.
The fixed Oracle builds are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. Other vendors release patches on their own schedule, so it is worth checking the version in your distribution. As a temporary measure, Calif names running Java with -XX:-UseBASE64Intrinsics (which disables the accelerated path) or -XX:UseAVX=2 (which disables AVX-512); however, neither Oracle nor OpenJDK mentions these options in their recommendations. On November 18 the Keycloak project advised administrators to use -XX:-UseBASE64Intrinsics until the patch is installed.
Image: ™/® Oracle Corporation Public domain
Translation editors: Соловьев В., Пеков А.
Source: www.tenable.com ↗