← Lab /Security & privacy

OpenJDK Base64 decoder out-of-bounds write can enable remote code execution on AVX-512 CPUs

CVE-2026-114938 allows remote code execution on vulnerable OpenJDK runtimes when running on CPUs with AVX-512 VBMI support, though exploitation requires additional work.

Security & privacy Datadog Security Labs 17 Nov 2026 Disclosure Real-world evidence

Published as “Java4Shell: Remote Code Execution in OpenJDK (CVE-2026-114938)”

Why it matters

Security teams can prioritize patching or apply JVM flags on AVX-512-enabled hosts, as the bug is unlikely to be exploitable on most deployments.

Summary

The writeup describes an out-of-bounds write bug in OpenJDK's optimized Base64 decoder that is triggered only when the JVM uses the AVX-512 VBMI decoding path. On CPUs lacking AVX-512 VBMI the bug is not reachable. Tests show that the overflow can corrupt neighboring heap objects, leading to crashes (denial of service) and, in theory, a constrained overwrite that could be leveraged for remote code execution, but a reliable exploit requires application-specific work. The authors provide two JVM flags (-XX:-UseBASE64Intrinsics and -XX:UseAVX=2) that disable the vulnerable path as mitigations.

What they found 4

  1. CVE-2026-114938 is an out-of-bounds write in OpenJDK's optimized Base64 decoder.

    “CVE-2026-114938 is an out-of-bounds write in OpenJDK's optimized Base64 decoder.”

  2. Denial of service is more readily achievable than reliable remote code execution.

    “Denial of service is the more readily achievable impact where attacker-controlled input reaches the vulnerable decoder. Reliable remote code execution requires additional exploitation work tailored to the application and Java Virtual Machine (JVM) environment.”

  3. The vulnerability causes a constrained overwrite rather than a freely chosen 64-byte value.

    “The vulnerability causes a constrained overwrite rather than a freely chosen 64-byte value.”

  4. Exploitation requires the JVM to execute the AVX-512 VBMI decoding path.

    “Exploiting this vulnerability requires the affected Java runtime to execute its AVX-512 Vector Byte Manipulation Instructions (VBMI) decoding path.”

Caveats 6

  • Reliable remote code execution requires additional exploitation work tailored to the application and Java Virtual Machine (JVM) environment.
  • The vulnerability causes a constrained overwrite rather than a freely chosen 64-byte value.
  • Only affects x86-64 deployments that support AVX-512 VBMI; ARM64 runtimes are not vulnerable.
  • The attacker must supply malformed Base64 data to a code path that uses Base64.getDecoder() or Base64.getUrlDecoder(); Base64.getMimeDecoder() bypasses the vulnerable path.
  • The out-of-bounds write results in a constrained overwrite, not an arbitrary write, limiting exploitability.
  • Successful remote code execution depends on the layout of neighboring heap objects and additional application-specific chaining.

What’s new here 4

  • Identifies an out-of-bounds write in the AVX-512-based Base64 decoder of OpenJDK 17.0.6+ and later.
  • Shows that the bug only manifests on x86-64 CPUs with AVX-512 VBMI support.
  • Demonstrates that the overflow results in a constrained 64-byte overwrite, making reliable RCE difficult.
  • Provides JVM startup flags to disable the vulnerable intrinsics as temporary mitigations.

In the news