Most critical Java vulnerabilities live in a library: Log4j, Spring, a deserialisation gadget. You find the library, you upgrade it, you move on.
Java4Shell is different. It’s in the Java runtime itself. Qualys puts it bluntly: no application or library has to be at fault for a service to be exposed. Your code can be perfectly clean and still be vulnerable, simply because of which JVM it runs on and which CPU that JVM runs on.
What actually goes wrong
For speed, the JVM swaps the normal Java Base64 decoder for a hand-tuned assembly version on CPUs that support AVX-512 VBMI. Wiz describes the bug as sitting in that optimised assembly path, where crafted input causes heap memory corruption.
In short, a malformed Base64 string makes the fast path miscalculate a length and write past the end of a buffer. Most of the time, that crashes the JVM. But Calif, the firm that found it, showed that with careful heap shaping, an attacker “can overwrite heap memory, read it in the style of Heartbleed, and reach remote code execution.”
Two consequences matter:
- Memory leaks: heap contents such as keys and session tokens can be read back.
- Code execution: in vulnerable apps, attackers can take over the server without logging in.
Severity
| Source | Score |
|---|---|
| Calif (CVSS 4.0) | 9.2 Critical |
| Oracle / OpenJDK (CVSS 3.1) | 8.1 High, with high attack complexity |
Are you affected? All three conditions must be true
1. Java version: unpatched OpenJDK-based builds from 17.0.6 onward, including the 21, 25 and 27 lines, from any vendor. Standard Java 8 and 11 do not contain the vulnerable code. Upwind notes one exception: Oracle lists its Java 8 Enterprise Performance Pack build as affected.
2. CPU: x86-64 processors with AVX-512 VBMI. Per Qualys, that includes Intel Xeon from Ice Lake through Granite Rapids, and AMD EPYC from Zen 4 onward. ARM64 servers, including AWS Graviton, are not affected.
3. Application behaviour: the app decodes Base64 from untrusted sources, such as HTTP headers, tokens or request bodies. Most web-facing Java apps do this somewhere.
A 5-minute check
Java version:
bash
java -version CPU support (Linux):
bash
grep -o -w 'avx512vbmi' /proc/cpuinfo | sort -u No output means the vulnerable fast path isn’t used on that machine.
Containers: check the runtime inside your images, not just on the host:
bash
docker run --rm --entrypoint java <your-image> -version Don’t forget the JVMs you didn’t install yourself. Jira, Confluence, Jenkins, Keycloak, Artifactory and many vendor appliances ship their own bundled Java runtime.
What’s been shown to be exploitable
In Calif’s testing with default settings:
- Pre-authentication: Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins, PingFederate
- After authentication: Kafka, Solr, Elasticsearch, Gerrit, Spinnaker
Calif says there’s no universal exploit: each application needs its own attack chain, and product-specific details are being withheld for now. As of 18 November, no in-the-wild exploitation had been confirmed, and the flaw was not in CISA’s Known Exploited Vulnerabilities catalog. With technical details now public, expect probing to start soon.
What to do today
1. Patch. Oracle fixed the bug in its 17 November Critical Patch Update. Its fixed builds end in .1, such as 17.0.21.1 and 21.0.13.1. Amazon Corretto and Azul Zulu have also shipped fixed builds, while some other distributions were still pending at the time of writing. Check your vendor’s advisory directly.
2. Prioritise internet-facing systems: SSO such as Keycloak and PingFederate, CI servers such as Jenkins, and Atlassian tools first.
3. If you can’t patch yet, disable the vulnerable intrinsic. Calif and Qualys list these JVM flags as temporary workarounds:
bash
# Option A: disable the Base64 intrinsic -XX:-UseBASE64Intrinsics # Option B (x86-64 only): limit AVX to version 2 -XX:UseAVX=2 You can apply either one across services with an environment variable:
bash
export JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics" Both need a JVM restart, may cost some performance, and are not a substitute for patching. Don’t use -XX:UseAVX=2 on ARM, where the JVM won’t start with it.
4. Rebuild containers once your base image vendor publishes a fixed runtime.
5. Watch for crashes. Repeated, unexplained JVM crashes on public services can be an early sign of someone probing for this bug.
Java4Shell vs Log4Shell
The name invites comparison, but the two are different shapes of problem:
| Log4Shell (2021) | Java4Shell (2026) | |
|---|---|---|
| Where | A logging library | The Java runtime itself |
| Preconditions | Log attacker-controlled text | Specific Java versions + specific CPUs + untrusted Base64 |
| Exploit | One payload worked almost everywhere | A custom chain per application |
| Fix | Upgrade a dependency | Upgrade the JVM, or disable an intrinsic |
Java4Shell’s attack surface is narrower, but it’s harder to spot, because it hides below your dependency tree. A software bill of materials that only lists libraries won’t flag it.
The bigger lesson
Performance shortcuts are attack surface. Hand-written assembly intrinsics exist because they’re fast, but they bypass the memory safety that makes Java, Java. Expect more scrutiny of CPU-specific fast paths in managed runtimes, especially as AI-assisted code auditing makes this kind of deep review cheaper.
Note: This guide reflects the status as of 18 November 2026. Patch availability is changing daily, so check your vendor’s advisory.



