Java4Shell
CIA Risk Posture & Executive Assurance
The 62-byte Base64 buffer spill can widen adjacent heap objects to leak live JVM memory (tokens, keys, credentials) into HTTP responses or expose all process secrets via RCE.
Proven pre-auth RCE against default installs of Jira, Confluence, Artifactory, Jenkins, and PingFederate—plus outbound Java clients opening TLS connections.
Heap-grooming retries and misaligned Base64 overwrites corrupt HotSpot object headers in assembly, killing the entire JVM process (SIGSEGV) on the spot.
-XX:-UseBASE64Intrinsics?
Only x86-64 servers with AVX-512 VBMI (Intel Xeon Ice Lake+ and AMD Zen 4+) run the buggy assembly; ARM64 is unaffected. Adding -XX:-UseBASE64Intrinsics neutralizes the bug while container rebuilds roll out.
Both Calif and Wiz built working exploits in 2–3 hours with AI. Standardized enterprise Java portals share identical memory layouts across customers and will be targeted long before custom apps.
Java4Shell (CVE-2026-114938): A
critical out-of-bounds write inside OpenJDK’s hand-rolled
x86-64 AVX-512 VBMI Base64 decoder
(17.0.6+), discovered by
Calif ↗
— the same researchers behind PHP2Shell.
Java is famous for memory safety, until HotSpot drops into native
assembly for speed. Once C2 JIT warms up
Base64.getDecoder(), feeding a malformed string as
tiny as 64 As followed by = (or 128
As + = on older JDK 17) makes the tail
length calculation underflow negative—writing a full 64 bytes into
a 50-byte buffer and spilling 62 bytes across neighboring
heap objects before Java throws
IllegalArgumentException. Because Base64 sits in HTTP
auth headers, SSO tokens, and file uploads, corruption happens
before your app can reject bad input.
Popular applications proven vulnerable: Calif and Wiz Research ↗ demonstrated default-config pre-auth RCE in Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, PingFederate, Keycloak, and Apache Tomcat (plus Spring Boot and Struts apps; post-auth RCE in Kafka, Solr, Elasticsearch, Gerrit, and Spinnaker; and even outbound client RCE when a Java process opens a TLS connection to a malicious host). While there is no single universal payload, Wiz’s AI harness built a working PoC in two hours—meaning packaged Java servers with predictable heap layouts are prime targets.
Who is actually affected (Software + CPU Gate)
Requires both an unpatched OpenJDK runtime
(17.0.6+, plus Oracle 8u511-perf)
and an x86-64 CPU with
AVX-512 VBMI: Intel Xeon (Ice Lake, Sapphire
Rapids, Emerald Rapids, Granite Rapids) or AMD EPYC/Ryzen
(Zen 4+). ARM64 CPUs (AWS Graviton, Ampere, Apple
Silicon) are not affected.
How to recognize it (Apps, CPU & JVM Audit)
- High-priority apps: Internet-facing Atlassian Jira, Confluence, JFrog Artifactory, Jenkins, PingFederate, and Keycloak (all fingerprinted passively by our URL scanner above).
-
Check CPU flags & live JVMs: Confirm
whether your hosts expose all four AVX-512 flags and inspect
every running Java PID and container.
Show CPU & JVM audit CLI Hide CPU & JVM audit CLI
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
for pid in $(pgrep -x java); do echo "=== PID $pid ($(readlink -f /proc/$pid/exe)) ===" jcmd "$pid" VM.version 2>/dev/null || "$(readlink -f /proc/$pid/exe)" -version done for cid in $(docker ps -q); do docker exec "$cid" sh -c 'command -v java >/dev/null && java -version' 2>&1 | sed "s/^/[$cid] /" done
How to mitigate it
-
Patch & restart JVMs: Upgrade to Oracle’s
Nov 17 builds (
17.0.21.1,21.0.13.1,25.0.5.1,27.0.1.1,8u513) or your OpenJDK vendor’s fix (Corretto, Temurin, Zulu, Liberica, SapMachine, Microsoft, Red Hat), rebuild containers, and bounce running JVMs. -
Immediate JVM flag workaround: If you cannot
upgrade today, pass
-XX:-UseBASE64IntrinsicsinJAVA_TOOL_OPTIONS/ systemd unit files (or-XX:UseAVX=2onx86-64only) and restart to completely disable the vulnerable assembly path. - Gate exposed portals: Place public Jira, Confluence, Artifactory, Jenkins, PingFederate, and Keycloak instances behind VPN, Cloudflare Access, or Cloud IAP until patched.
- Passing
-XX:UseAVX=2on ARM64 / multi-arch deployments: OpenJDK onARM64doesn’t recognize-XX:UseAVX=2and refuses to start—use-XX:-UseBASE64Intrinsicsinstead. - Relying on NGINX request buffering or WAF rules: Single-request chains (e.g., Elasticsearch) and WebSocket upgrades bypass proxy body buffering, and WAFs cannot cover every Base64 field.
- Ignoring client-only JVMs with no open ports: An outbound Java TLS connection to an untrusted server can still trigger the Base64 bug during handshake parsing.
- Scanning only
pom.xmlor skipping JVM restarts: SCA lockfiles miss the base JRE/container image, and live JVMs keep C2-compiled intrinsics in RAM until restarted.
| Java / OpenJDK Distribution | Vulnerable Builds (on AVX-512 x86-64) | Patched Build (Nov 17, 2026) | Operational Note |
|---|---|---|---|
| OpenJDK / Oracle Java SE 17 | 17.0.6 – 17.0.21.0.3 |
17.0.21.1 | Or set -XX:-UseBASE64Intrinsics; rebuild java:17 images & restart JVMs |
| OpenJDK / Oracle Java SE 21 (LTS) | ≤ 21.0.13.0.3 |
21.0.13.1 | Confirmed vulnerable on AVX-512 VBMI x86-64 hosts |
| OpenJDK / Oracle Java SE 25 & 27 | ≤ 25.0.5.0.3 · ≤ 27.0.1.0.3 |
25.0.5.1 · 27.0.1.1 | Current LTS (25) and feature (27) lines patched Nov 17 |
| Oracle Java SE 8-perf & 11 | 8u511b33-perf (Nov CPU also lists 11.0.33) |
8u513 · 11.0.33.1 | Oracle -perf edition backported affected intrinsics |
| Corretto, Temurin, Zulu, Liberica, SapMachine, MS, RHEL & GraalVM | OpenJDK 17.0.6+; GraalVM JDK 17.0.21 / 21.0.13 |
Vendor Nov 2026 update | Use -XX:-UseBASE64Intrinsics while waiting on distro packages |
| Runtime / Network Signal | Exploit Phase | What to Hunt in Logs & EDR |
|---|---|---|
|
200k+ Base64 warm-up requests
64×"A" + "=" tail
|
C2 JIT Warm-Up & Heap Grooming | High-volume valid Base64 auth/upload bursts from a low-RTT cloud IP warming HotSpot to C2 tier, followed by chunked/paused requests and oversized responses (heap reader disclosure). |
|
hs_err_pid*.log (SIGSEGV)
java → sh / curl / wget
|
Trigger Retries & Post-Exploitation |
Repeated JVM crashes (exit code 139 / hs_err_pid*.log) from missed G1 heap-spray attempts, or java spawning shells or unexpected outbound connections.
|