A memory bug in Java's own Base64 decoder
The security firm Calif found the flaw and reported it to Oracle and the OpenJDK project. On 17 November Calif said details had leaked before the fix was out, and published its own write-up once Oracle released the patch the same day.
| When | What |
|---|---|
| 17 November | Calif says details of the flaw have leaked before a fix, and that it will publish once Oracle's patch is out. |
| 17 November | Oracle releases its November 2026 Critical Patch Update. The OpenJDK Vulnerability Group publishes its advisory and Calif its write-up the same day. |
| 17 November | Tenable knows of no exploitation in the wild yet. One researcher reports having built a working exploit, without releasing it. |
| 18 November | Shieldify's WAF starts refusing requests carrying the malformed Base64 the attack needs, on every website with the WAF on. |
Rejected input, but only after the damage
Java speeds up Base64 decoding with hand-written processor instructions on recent x86-64 chips. For certain malformed input, with padding where valid Base64 never has it, that fast path miscalculates its output length and writes past the end of its buffer. Java then throws an error and refuses the input, but the write has already happened. An application that checks the input afterwards is too late.
Applications decode Base64 everywhere: login headers, tokens, single sign-on messages, cookies, API fields. Calif turned the memory corruption into a leak of server memory and into code execution, and showed it in default installations:
Before login
Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins and PingFederate.
After login
Apache Kafka, Apache Solr, Elasticsearch, Gerrit and Spinnaker. Calif also ran code in sample applications built on Spring Boot and Apache Struts, and says the list is not complete.
Oracle rates the flaw 8.1 out of 10 (CVSS 3.1); Calif scores it 9.2 (CVSS 4.0).
Three conditions, all at once
- The Java version: OpenJDK 17.0.6 and later, so Java 17, 21, 25 and 27, from every vendor that builds on OpenJDK: Oracle, Eclipse Temurin, Amazon Corretto, Azul Zulu, Microsoft, Red Hat, BellSoft, SAP and others. Standard Java 8 and 11 builds do not have the affected code; Oracle also lists its Java 8 Enterprise Performance Pack.
- The processor: x86-64 with AVX-512 VBMI, such as Intel Xeon Ice Lake and newer or AMD Zen 4 and newer. On Linux the processor must report all four of
avx512f,avx512bw,avx512vbmiandbmi2in/proc/cpuinfo. ARM servers, AWS Graviton among them, are not affected. - The input: the application decodes Base64 that a visitor can send, with Java's standard or URL-safe decoder. Many web applications do somewhere.
Many products bring their own Java: Jenkins, Atlassian's server products and most container images. Updating the system's Java package does not update those.
Update, restart, then check what you missed
1. Find every Java
Check the system Java (java -version), the Java each product bundles, and the base image of every container. Do it on every server that runs Java and faces the internet, directly or behind a proxy.
2. Update and restart
Install your vendor's November 2026 update (Oracle's fixed builds are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1), rebuild container images, and restart every Java process. A running JVM keeps the old code.
3. If you cannot update today
Start Java with -XX:-UseBASE64Intrinsics, which turns off the fast decoder, or on x86-64 only with -XX:UseAVX=2, which turns off AVX-512 (Java on ARM does not start with it). Both need a restart and can slow down decoding. They are a bridge to the update, not a replacement.
4. Watch for crashes
A failed attempt can crash the JVM. Unexpected restarts and hs_err crash files on an unpatched server are worth a closer look.
A rule for every place Base64 hides
18 November. An emergency signature went live on every website on Shieldify with the WAF on. It refuses requests carrying Base64 malformed the way the attack needs, in addresses, form and JSON fields, headers, cookies and the path, before they reach the website. Valid Base64, however it is written, passes as before.
The two rules are listed under Shieldify Emergency Signatures in each website's WAF settings and can be switched off per website, for an application whose own format really needs what they refuse.
Shieldify's own edge does not run Java, so the flaw does not touch the service itself.
A firewall buys time. It does not fix Java.
A web application firewall reads requests as they arrive. It cannot see Base64 that an application unpacks from something else first, such as an encrypted or compressed field, traffic that reaches your server without passing through it, or protocols other than the web, such as Kafka's own.
So treat any WAF protection, ours included, as the time it gives you to update. Update Java, restart every JVM, and make sure your server only accepts web traffic through Shieldify.
Sources
- Calif, Java4Shell: the discovery, the affected applications and the workarounds.
- OpenJDK Vulnerability Group, advisory of 17 November 2026.
- Oracle's November 2026 Critical Patch Update, 17 November 2026.
- Tenable, Java4Shell frequently asked questions: versions, fixed builds, scores and the timeline.
- Keycloak, what Keycloak admins need to do.
Shieldify's dates are from our own records.