Java Base64 Decoder Flaw Could Enable Unauthenticated Remote Code Execution

· Original article ↗

Summary

CVE-2026-114938 is a heap-based overflow in OpenJDK’s hardware-accelerated Base64 decoder. Under specific x86-64 and JVM conditions, malformed input can corrupt memory and potentially enable RCE; vendors have released patches and a temporary mitigation.

Key points

  • CVE-2026-114938 is a CWE-122 heap-based buffer overflow in the hardware-accelerated Base64 decoder used by OpenJDK and downstream Java distributions.
  • The vulnerable path requires an x86-64 CPU with features including AVX-512 VBMI, applicable JVM optimizations, and an application that passes attacker-controlled data to the decoder.
  • A malformed final Base64 group can trigger a 64-byte store extending 62 or 63 bytes beyond the calculated decoded-output length; rejecting the input does not undo the memory corruption.
  • Finder Calif says they demonstrated unauthenticated remote code execution against several Java-based applications and published a local proof of concept. The article cautions that this does not establish a portable exploit for every Java service.
  • OpenJDK lists versions 17, 21, 25, and 27 as affected; Oracle also lists Java SE, GraalVM, and its Java 8 Enterprise Performance Pack.
  • Rapid7 recommends installing vendor-fixed builds and restarting affected JVMs. Where patching is not immediate, disabling Base64 intrinsics with -XX:-UseBASE64Intrinsics is a temporary mitigation.

Article Details

Vulnerability Types
  • Heap-based buffer overflow
  • Unauthenticated remote code execution
Severity
High (CVSS v3.1: 8.1)
Affected Versions
  • OpenJDK 17
  • OpenJDK 21
  • OpenJDK 25
  • OpenJDK 27
  • Red Hat OpenJDK 17.0.6 (earliest affected version 17)
  • Oracle Java SE 8 Performance Edition 8u511b33-perf
  • Oracle Java SE 17 17.0.21.0.3
  • Oracle Java SE 21 21.0.13.0.3
  • Oracle Java SE 25 25.0.5.0.3
  • Oracle Java SE 27 27.0.1.0.3
  • Oracle GraalVM for JDK 17 17.0.21.0.3
  • Oracle GraalVM for JDK 21 21.0.13.0.3
  • Oracle GraalVM Enterprise Edition 21.3.20.0.3
Exploitation Status
reported
Exploit Availability
public_poc
Patch Status
available
Workarounds
  • Where supported, restart the affected JVM with -XX:-UseBASE64Intrinsics to disable hardware-accelerated Base64 decoding.

CVE

Vendors

Products

Related Articles