Java4Shell (CVE-2026-114938) – Memory corruption in OpenJDK’s Base64 decoder
.0.3 builds as affected. For other distributions, check the vendor’s patch status.
On November 17, 2026, the research team at Calif disclosed Java4Shell. Under certain conditions, the flaw allows a write beyond the intended buffer in the JVM heap. It affects a hardware-accelerated decoder in the Java standard library’s java.util.Base64 class (CWE-122).
What happened?
HotSpot uses an optimized Base64 decoding path on supported hardware. On affected builds, that path can write past the end of its output buffer. Services that decode Base64 data from untrusted sources are particularly exposed.
Oracle rates the vulnerability 8.1 out of 10 (CVSS v3.1, High). Calif reports 9.2 out of 10 (CVSS v4.0, Critical). JFrog described the v4.0 score as preliminary in its initial assessment. Red Hat rates the issue Critical in its own bulletin.
Who is affected?
Exposure requires an affected Java runtime, an x86-64 CPU with AVX-512 VBMI enabled, and use of the vulnerable Base64 code path. For a network attack, untrusted input also has to reach the decoder. ARM64 and x86-64 without VBMI do not use the affected path.
The table pairs the affected builds explicitly listed by Oracle with the November security updates. Red Hat traces the vulnerable OpenJDK code path back to 17.0.6. Consult the vendor’s advisory for backports and distribution-specific build numbers.
| Oracle product | Build listed as affected | November security update |
|---|---|---|
| Oracle Java SE 17 | 17.0.21.0.3 | 17.0.21.1+4 |
| Oracle Java SE 21 | 21.0.13.0.3 | 21.0.13.1+4 |
| Oracle Java SE 25 | 25.0.5.0.3 | 25.0.5.1+4 |
| Oracle Java SE 27 | 27.0.1.0.3 | 27.0.1.1+4 |
| Oracle Java SE 8 Enterprise Performance Pack | 8u511b33-perf | 8u513-perf (1.8.0_513-perf-b4) |
| Oracle GraalVM for JDK | 17.0.21.0.3 / 21.0.13.0.3 | 17.0.21.1 / 21.0.13.1 |
| Oracle GraalVM Enterprise Edition | 21.3.20.0.3 | 21.3.20.1 |
Red Hat reports that standard OpenJDK 8 and 11 are unaffected. Oracle lists the Java 8 Enterprise Performance Pack separately. Record the vendor and full build number for bundled runtimes.
# Linux on x86-64: check whether the system exposes the avx512_vbmi CPU flag grep -m1 -ow avx512_vbmi /proc/cpuinfo # Show the Java runtime version on PATH java -version
How realistic is RCE?
A JVM crash causing denial of service (DoS) is the most likely immediate impact. Calif reports achieving remote code execution (RCE) in lab tests against individual applications, sometimes before authentication. Achieving code execution depends on the application and its environment. No universal exploit is known.
Exploitation: none. The CVE does not appear in KEV catalog version 2026.11.17.
“Java2Shell” has also been used for CVE-2026-114938. Log4Shell (CVE-2021-44228) affects JNDI lookups in Apache Log4j. Java4Shell affects the JVM’s hardware-accelerated Base64 decoder.
Security updates and temporary mitigations
Install a release that the vendor identifies as fixed for this CVE. Prioritize internet-facing Java services on affected hardware. For Red Hat OpenJDK, consult RHSB-2026-018 for product-specific errata.
-XX:-UseBASE64Intrinsics. This flag disables hardware acceleration for Base64. Alternatively, -XX:UseAVX=2 disables AVX-512 for the entire process. This second option is specific to x86-64 and can prevent JVM startup on ARM64.
# Preferred workaround for the affected JVM -XX:-UseBASE64Intrinsics # Alternative on x86-64 only -XX:UseAVX=2 # Example: inspect active JVM flags if jcmd is available jcmd <PID> VM.flags -all | grep -E 'UseBASE64Intrinsics|UseAVX'
Set the workaround in the affected service’s startup configuration and restart it. Check the effective flags in the running process. If an update is still unavailable, temporarily restricting network access can reduce exposure.
Check the patch status in your environment
- Inventory: Record the vendor and full version of the Java runtimes in use, including those in containers, CI systems, and bundled applications.
- Prioritization: Check architecture, VBMI support, patch status, and network exposure.
- Rollout and verification: Update the runtime, replace containers with instances from the updated image, and restart affected JVM processes. Verify the version in the target environment. Remove any temporary workaround once you confirm the running runtime includes the fix.
- Monitoring: Investigate unexpected JVM crashes, such as
SIGSEGVor newhs_err_pidfiles, alongside application and access logs.
Sources
- CVE-2026-114938 (Oracle CNA, CISA ADP)
- Oracle Critical Security Patch Update, November 2026
- OpenJDK Vulnerability Advisory, November 17, 2026
- Oracle Java SE 27 Release Notes
- Oracle Java SE 8u513 Enterprise Performance Pack Release Notes
- Oracle GraalVM for JDK 17 Release Notes
- Oracle GraalVM for JDK 21 Release Notes
- Oracle GraalVM Enterprise Edition 21 Release Notes
- Red Hat RHSB-2026-018
- Canadian Centre for Cyber Security AL26-029
- CISA Known Exploited Vulnerabilities Catalog
- JFrog Security Research, Java4Shell
- Apache Log4j, CVE-2021-44228