Java4Shell (CVE-2026-114938): Who Is Affected and What to Do
TL;DR: Java4Shell (CVE-2026-114938) is a heap memory-corruption flaw in the HotSpot Base64 intrinsic, OpenJDK's fast x86-64 Base64 decoder. Calif, a security research firm, found it and reports pre-authentication remote code execution (RCE) against default configurations of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate.1 OpenJDK and Oracle fixed it on 17 November 2026.12 It affects unpatched OpenJDK 17.0.6 and newer on CPUs with AVX-512 VBMI. Patch internet-facing Java services first.
This is for you if you run Java on recent x86-64 servers, such as Intel Xeon Sapphire Rapids or AMD EPYC Zen 4. Skip this if your Java runs only on ARM64, or the CPU check below finds no avx512vbmi flag on any host.
Key points
- Calif found the flaw with AI in about an hour, has published the trigger and its technique, and will publish product exploits later.1 Patch now.
- nginx's default request buffering disrupts some of Calif's exploit chains, but Calif says it "is not a general mitigation".1
Am I affected by Java4Shell?
You are affected when three conditions hold: an affected Java runtime, a CPU with AVX-512 VBMI, and attacker-controlled input. Calif reports that a Java client can be compromised just by connecting over TLS to a malicious server.1
| Condition | Affected | How to check |
|---|---|---|
| Java runtime (JDK) | Unpatched OpenJDK 17.0.6 or newer and its distributions, plus Oracle's Java SE 8 build 8u511b33-perf | java -version |
| CPU | x86-64 with AVX-512 VBMI, such as Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids or Granite Rapids, or AMD Zen 4 and newer | The command below |
| Exposure | Takes untrusted Base64, such as logins or file uploads, or connects over TLS to outside servers | Assume yes for internet-facing services and clients |
Your CPU is affected only if Calif's check lists all four flags.
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
The OpenJDK advisory marks Java 17, 21, 25 and 27 as affected, not 8 or 11, and lists 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3 and 27.0.1.0.3 as the last affected builds.2 For Java 8, Oracle lists the build 8u511b33-perf as affected.1 After login, Calif also reached RCE in Apache Kafka, Solr, Elasticsearch, Gerrit and Spinnaker, and calls its lists "non-exhaustive".1
What should you do today?
Install the first build from your JDK vendor that lists CVE-2026-114938 as fixed. In our reading, Java 18 to 20, 22 to 24 and 26 fall inside "17.0.6 or newer" but get no fix in the advisory. Move them to a fixed 21, 25 or 27 build.
- Start with Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate. Then cover other internet-facing services and Java clients.
- Update every JDK, including copies in container images and in products that ship their own.
- If an affected service faced the internet before you patched, decide whether to rotate its keys and tokens. Calif's exploit reads heap memory before it reaches code execution, and that memory can hold "PII, private keys, other secret keys, and tokens".1
Where you cannot update today, restart the JVM with one of Calif's mitigation flags:1
-XX:-UseBASE64Intrinsics
-XX:UseAVX=2
Prefer the first, which turns off only the accelerated Base64 code, including the HotSpot Base64 intrinsic. The second turns off all AVX-512 use, and OpenJDK on ARM64 will not start with it. Where a product's start scripts are hard to edit, set the flag in the JAVA_TOOL_OPTIONS environment variable. If you used the first flag, check that the service shows false:
jcmd <pid> VM.flags -all | grep UseBASE64Intrinsics
Calif's proof-of-concept uses a 64-character trigger, but OpenJDK 17 needs 128, so NOT REPRODUCED does not clear a host.1 Rely on the version and CPU checks, and run it only on a non-production host with the same CPU and JDK.
Why OpenJDK scores it 8.1 and Calif 9.2
The scores come from different scorers using different versions of the Common Vulnerability Scoring System (CVSS), so they cannot be compared directly. The OpenJDK advisory gives 8.1 under CVSS 3.1 and rates attack complexity as high.2 Calif gives 9.2 under CVSS 4.0 and publishes no vector.1 Use the score your patch policy names: pre-authentication RCE in widely used products justifies emergency patching under either.
How Haxset can help
Contact Haxset to map your internet-facing hosts with AI-Driven ASM or test their web applications with Agentic Pentesting. Haxset does not keep the prompts its AI models process and does not train models on them. It stores only scan metadata and scan results.
References
Interested in how this research applies to your organization?
Get in touch
