Java4Shell

Also tracked as: Java2Shell

Disclosed Nov 17, 2026

Updated Dec 1, 2026

*4ShellCVSS 9.8PoC PublicConditional RCE

A heap buffer overflow in the HotSpot JVM's AVX-512-accelerated Base64 decoder intrinsic affecting Java 17, 21, 25, and 27 on x86-64 CPUs with AVX-512 VBMI—reachable wherever an application decodes attacker-controlled Base64 such as Basic Auth headers or JWTs.

Component

HotSpot JVM AVX-512 Base64 Decoder Intrinsic

Attack Vector & Class

Conditional RCE

Memory Safety

Exploitation Status

No confirmed wild attacks

Public PoC available

CVSS & Ecosystems

9.8 (v3.1)

Java, OpenJDK

Affected Versions

  • OpenJDK / Oracle Java SE 17.0.6+, 21, 25, and 27 prior to November 17, 2026 builds
  • Oracle Java SE 8 Enterprise Performance Pack (standard Java 8, Java 11, ARM64, and OpenJ9/IBM Semeru are NOT affected)
  • Requires x86-64 CPU with AVX-512 VBMI support and untrusted Base64 input

Fixed / Recommended Versions

  • OpenJDK / Temurin / Oracle 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 (and 8u513-perf)

Technical Root Cause

When running on x86-64 processors exposing AVX-512 VBMI instructions, the HotSpot JVM uses a vectorized CPU intrinsic to accelerate Base64 decoding. Crafted malformed Base64 input triggers an out-of-bounds heap write that researchers demonstrated can achieve memory disclosure and remote code execution without authentication. Oracle scored the flaw 8.1 (High complexity) while Red Hat scored it 9.8 (Critical). Note that bundled JREs inside Jira, Jenkins, Keycloak, and Elasticsearch must be patched separately.

Remediation & Hardening

  1. 1Upgrade OpenJDK / Oracle Java runtimes to 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 or your vendor's November 2026 security build.
  2. 2Inventory bundled JREs embedded inside enterprise tools (Keycloak, Jenkins, Jira, containers) and restart all JVM processes after patching.
  3. 3Verify host CPU flags (avx512vbmi in /proc/cpuinfo) to prioritize internet-facing x86-64 workloads; ARM64 nodes are unaffected.