Skip to content

STACKIT-2026-005: Critical Vulnerability in OpenJDK Base64 Decoding (Java4Shell)

Last updated on

A critical memory corruption vulnerability in the OpenJDK HotSpot C2 compiler native Base64 decoding intrinsic was disclosed on 2026-11-17 (CVE-2026-114938, also tracked as JDK-8392044 and dubbed Java4Shell). The issue occurs in the generate_base64_decodeBlock() function of java.util.Base64.Decoder when running on x86-64 processors that support AVX-512 VBMI instructions. When decoding malformed Base64 inputs with short or trailing padding characters, the function triggers an integer underflow during remaining length calculations. This leads to an out-of-bounds heap write of up to 62 bytes before the Java runtime raises an IllegalArgumentException.

Exploitation of this vulnerability allows unauthenticated remote threat actors to send crafted Base64 payloads to network endpoints, corrupting heap memory and leading to arbitrary code running within the Java virtual machine. Vulnerable entry points include HTTP Basic Authentication headers, JSON Web Tokens (JWT), and application endpoints that process untrusted Base64 input before authentication. As of 2026-11-27, no exploitation of this vulnerability on STACKIT infrastructure is known. The vulnerability is resolved in upstream OpenJDK releases 17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1, as well as corresponding Linux distribution and vendor runtime updates. If immediate runtime updating is not possible, administrators can mitigate the vulnerability by passing the JVM parameter -XX:-UseBASE64Intrinsics.

STACKIT evaluated its platform services and confirmed that STACKIT-managed services are not affected by this vulnerability. Customers using STACKIT-managed services do not have to take any action; this bulletin is updated as significant changes or additional information become available. Customers who operate self-managed Java systems must install the vendor or distribution updates directly or apply the recommended configuration mitigations. In addition, customers operating self-managed systems must review and restrict network access to their Java applications until updates are complete to strengthen protection against this vulnerability.

The vulnerability affects the following Java SE and OpenJDK versions running on x86-64 processors with AVX-512 VBMI support:

  • OpenJDK 17 < 17.0.21.1 (17 LTS branch)
  • OpenJDK 21 < 21.0.13.1 (21 LTS branch)
  • OpenJDK 25 < 25.0.5.1 (25 branch)
  • OpenJDK 27 < 27.0.1.1 (27 branch)
  • Oracle Java SE versions 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, and 27.0.1.0.3
  • Operating system distribution packages and container base images based on affected upstream versions

Runtimes deployed on ARM64 architectures, x86-64 processors without AVX-512 VBMI instructions, and standard OpenJDK 8 and OpenJDK 11 releases that lack the AVX-512 VBMI decoding intrinsic are not affected by this vulnerability.

The advisory addresses the following Common Vulnerabilities and Exposures (CVEs):

  • Inspect host CPU capabilities: Check whether your host systems or virtual machines support AVX-512 VBMI instructions:
    Terminal window
    grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
    If any of these CPU flags is missing, or if your workload runs on ARM64 hardware, the vulnerable hardware-accelerated code path is not used.
  • Inspect Java runtime environments: Identify all virtual machines and container workloads running Java applications. Check the installed runtime version with java -version.
  • Apply vendor security updates:
    • Update OpenJDK or Java runtimes to fixed versions: OpenJDK 17 ≥ 17.0.21.1, OpenJDK 21 ≥ 21.0.13.1, OpenJDK 25 ≥ 25.0.5.1, or OpenJDK 27 ≥ 27.0.1.1.
    • Install the latest OpenJDK security updates from your operating system distribution (such as Ubuntu USN-9155-1, USN-9156-1, Debian DSA-6639-1, or Red Hat RHSB-2026-018).
    • Rebuild container images and restart Java applications to ensure updated runtime libraries take effect.
  • Apply temporary mitigations if updating is delayed:
    • Configure the JVM option -XX:-UseBASE64Intrinsics to disable the vulnerable native Base64 intrinsic while preserving other vectorization features. For example, configure the environment variable:
      Terminal window
      export JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics"
    • Alternatively, limit vector instruction sets on x86-64 systems with -XX:UseAVX=2.
    • Restart the Java application and verify that the option is active.
  • Restrict network access: Restrict network access to self-managed Java applications and administrative endpoints to trusted networks until updates are completed.
  • Platform services not affected: STACKIT evaluated its platform services and verified that STACKIT-managed services are not affected by this vulnerability.
  • No customer action required: Customers using STACKIT-managed services do not need to take any action.

For questions regarding this advisory or assistance with system configuration, contact STACKIT Support:

  • Open a ticket through the STACKIT Help Center.
  • Contact the support team by email at cybersecurity@stackit.cloud.