Java Remote Code Execution Vulnerability “Java4Shell” (CVE-2026-114938)

A remote code execution vulnerability, “Java4Shell” (with CVE-2026-114938), has been identified in the optimized Base64 decoder of OpenJDK. The vulnerability could allow an unauthenticated remote attacker to corrupt heap memory, disclose sensitive information, crash affected applications, or execute arbitrary code. Successful exploitation could lead to information disclosure, denial of service, and remote code execution.

System owners are strongly advised to review affected systems and apply security updates immediately to reduce potential risks.

 

Vulnerability

  • Java Remote Code Execution Vulnerability “Java4Shell” (CVE-2026-114938)
    • The flaw stems from an out-of-bounds write in the AVX-512-optimized Base64 decoding routine within the Java HotSpot runtime. When processing specially crafted Base64 input, the routine may write beyond the allocated output buffer, resulting in heap memory corruption.

Severity Level

  • Critical

 

Affected Versions

Products Affected Versions
OpenJDK
  • 17.0.21.0.3 and earlier affected builds
  • 21.0.13.0.3 and earlier affected builds
  • 25.0.5.0.3 and earlier affected builds
  • 27.0.1.0.3 and earlier affected builds
Oracle
  • Java SE 8, Enterprise Performance Pack: 8u511b33-perf
  • Java SE 17: 17.0.21.0.3
  • Java SE 21: 21.0.13.0.3
  • Java SE 25: 25.0.5.0.3
  • Java SE 27: 27.0.1.0.3
  • GraalVM for JDK: 17.0.21.0.3, 21.0.13.0.3
  • GraalVM Enterprise Edition: 21.3.20.0.3
Red Hat
  • Red Hat Enterprise Linux: 8,9,10, where affected OpenJDK packages are used
  • Red Hat build of OpenJDK: 17, 21, 25

Remediation

  • Apply corresponding vendor-provided security update immediately.
  • Update runtimes bundled with applications and rebuild and redeploy affected container images.
  • Restart affected Java services after applying updates and verify that running processes use the patched runtime.
  • If immediate patching is not possible, temporarily disable the vulnerable Base64 optimization and restart the service.

 

Reference

 

 

 

Published on: 18 Nov 2026