Java4Shell (CVE-2026-114938): OpenJDK Base64 RCE and the JVM You Actually Run
Java4Shell (CVE-2026-114938): OpenJDK Base64 RCE and the JVM You Actually Run
Imagine two replicas of the same Java application built from the same container image. One lands on an x86-64 node that exposes AVX-512 VBMI; the other lands on an x86-64 node that does not. The same vulnerable Java build may be installed in both, but the first can take a Base64 decoding path that the second cannot. A host-level package upgrade does nothing for either replica if the image ships its own JVM. Java4Shell makes the runtime build, execution environment and flow of untrusted data part of the same patching decision.
CVE-2026-114938 is a memory-corruption flaw in HotSpot's optimized Base64 decoder. Calif researcher Quang Luong documented remote code execution (RCE) in controlled tests, including cases that did not require an account. On November 17, CISA called for immediate patching, with internet-facing systems first. That alert and the research demonstration answer different questions from whether attackers have used the flaw against real targets.
Why a rejected input can still damage memory
Base64 represents binary data as text. It is neither encryption nor validation. HotSpot can replace a Java operation with an intrinsic, a JVM-provided machine-code implementation that speeds up the same operation on supported processors. The affected intrinsic writes past the end of an output buffer when handling malformed Base64. The Java decoder can still reject the input with an exception after that write. A 400 response or a caught decoding exception, by itself, says nothing about whether the JVM's memory remained intact.
The earliest visible symptom can be a JVM crash rather than a decoder error. Damage can surface later when another part of the process touches an affected object. Calif also demonstrated heap disclosure and RCE under its test conditions. If an attacker achieves code execution, the potential impact depends on what the process can already access: request data, signing material held in memory, service credentials, writable paths and internal systems. A JVM takeover does not automatically grant administrator privileges on the host. A service identity with broad permissions can nevertheless make the incident extend well beyond one process.
Check exposure at three layers
| Layer | What defenders should establish |
|---|---|
| CPU and execution environment | Calif describes an x86-64 path that requires AVX-512 VBMI. Its Linux assessment checks for avx512f, avx512bw, avx512vbmi and bmi2 together. Check what the guest or workload actually sees; the processor model alone cannot tell you what the hypervisor exposes. The documented path does not apply to native ARM64 execution. |
| Runtime build and configuration | Identify the vendor, full build, architecture and effective HotSpot configuration of the running process. That build must contain the affected intrinsic and the JVM must be able to select it. A vulnerable package can be present without this path being active on a particular deployment. If the workload can move to a different node class, check that class too. |
| Application and trust boundary | Determine whether untrusted data reaches the affected decoder, directly or through a framework or dependency. Review authentication, file handling and message processing at the points where decoding actually occurs. The mere presence of a Base64 API in source code does not establish that an external caller can reach it. |
The application check applies to outbound connections as well. Calif reported a separate client-side TLS demonstration in which a Java client connected to a malicious server. That is a reason to inventory workers and clients that connect to external services even if they have no listening port. It does not mean every outbound Java TLS connection is exploitable. Similarly, Apache Shiro describes how its remember-me processing delegates Base64 decoding to the JDK. A Shiro application can inherit exposure from that call without the defect being in Shiro itself. Updating only the framework does not replace the runtime.
What Calif demonstrated, and what the public record does not show
Calif reported pre-authentication RCE in controlled deployments of products including Keycloak and Jenkins, and post-authentication RCE in products including Apache Kafka and Elasticsearch. Those categories describe the researchers' tested paths, not every release or deployment of each product. A route that requires credentials in one product does not invalidate the pre-authentication cases in others. Nor does a reproducible memory overwrite make code execution equally reliable across applications. Calif did not claim a universal exploit.
The disclosure timeline makes the distinction between a field symptom and an attack especially important. In June, the user sundarms reported a JVM crash to Adoptium. In September, a reproducer and a proposed OpenJDK fix from albertnetymk followed. Calif says Luong independently identified the defect in October and reported its security impact to Oracle. Oracle's November advisory credits both Albert Yang and Quang Luong. The earlier crash record establishes that the defect could manifest outside a research environment; it does not show that a threat actor caused that crash.
Oracle assigns CVSS 3.1 8.1 (High) and rates attack complexity high, with no privileges or user interaction required in its scoring model. Calif reports CVSS 4.0 9.2 (Critical). These are scores from different CVSS versions, not competing estimates of how often a deployment will be attacked. CISA's November 17 patching alert does not assert active exploitation. Its November 17 CVE enrichment recorded Exploitation: none at that assessment, and the November 24 snapshot of CISA's Known Exploited Vulnerabilities catalog did not list this CVE. These checks do not rule out unreported activity. They also do not justify waiting: controlled pre-authentication RCE demonstrations and the impact of a process compromise already justify patching exposed workloads.
Pick a fix by distributor, not by Java major version
OpenJDK's November 17 advisory marks the 17, 21, 25 and 27 lines for this specific CVE. The advisory's introductory version list covers several CVEs; it is not the affected-version list for Java4Shell. Oracle, meanwhile, separately identifies an affected Java SE 8 performance build. Java 8 or 11 on an inventory spreadsheet is not enough to decide a vendor-specific case.
| Source | Build-level guidance |
|---|---|
| Oracle | The Java SE risk matrix lists affected 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3 and 27.0.1.0.3 builds. It also lists Oracle GraalVM for JDK 17.0.21.0.3 and 21.0.13.0.3 and GraalVM Enterprise Edition 21.3.20.0.3. These are affected builds, not update targets; follow Oracle's November patch availability instructions for the installed product. |
| Eclipse Temurin | Adoptium lists fixed builds 17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2 and 27.0.1.1+4. Its Temurin 8 and 11 lines are listed as unaffected. |
| Ubuntu packages | Canonical lists 21.0.13.1+2-1~24.04.1 as a fixed openjdk-21 package for Ubuntu 24.04 LTS, for example. Match the package and Ubuntu release in its tracker; the package revision is part of the comparison. |
| Amazon Corretto | The Corretto 27 changelog explicitly lists the fix in 27.0.1.1.4. The Corretto release number is not written the same way as the upstream OpenJDK build it imports. |
Use the vendor advisory for the exact product and distribution channel you deploy, or a later supported update that contains the same fix. An operating-system package, an application-bundled JRE and a managed service do not necessarily get their fix on the same schedule. When an appliance or managed provider owns the JVM, obtain the CVE disposition and the fixed product release or deployment status from that supplier. Do not assume that replacing the bundled JVM yourself is supported.
Find the JVM a package scanner can miss
Start from running workloads and work back to their artifacts. Record the process or workload identity, JVM vendor and full build, executable or loaded JVM path, image digest or product version, effective configuration and node class. On HotSpot systems where local diagnostics are allowed, jcmd <pid> VM.version identifies the running VM and jcmd <pid> VM.flags -all helps verify effective flags. Run diagnostics in the relevant environment with the required permissions. If attach is unavailable, use trusted runtime startup records, deployment metadata or the supplier's supported inventory mechanism. A java -version in an administrator's shell may report an entirely different JVM.
Check product directories and service launchers, the final stage of container images, custom jlink runtimes, and applications that load a JVM inside a native launcher. Include scheduled workers, replicas, standby facilities and rollback artifacts. A software bill of materials can help locate candidates; absence from that list is not evidence that a bundled runtime is absent. When rolling out a fix, rebuild the artifact with the fixed JVM and replace existing instances. Then verify the new image digest and running build across the workload, and make sure an automated rollback or scheduled job cannot bring back the old image. An updated tag or package on disk does not change a process that is still running the old code.
Buy time without mistaking a WAF for a patch
If the vendor fix cannot go live immediately, Adoptium and Calif document -XX:-UseBASE64Intrinsics for supported HotSpot builds. It disables the relevant acceleration path. Calif also lists -XX:UseAVX=2 as a broader x86-64 fallback because it disables AVX-512 use. Do not apply that option to ARM64; the JVM may reject it and fail to start. Check compatibility with the runtime supplier, measure the performance impact on representative traffic, restart the service and verify the resulting effective flags on every relevant process. Editing a container environment setting without replacing the running workload does not apply a JVM startup option.
A WAF or gateway can reduce exposure on routes it actually sees. Use route-specific constraints that match the application's input contract, including the expected Base64 variant and size limits. Validate before the input reaches the affected decoder; using that same decoder as the validator does not prevent a write that occurs before rejection. Limit unauthenticated access where possible, and restrict direct origin access and unnecessary outbound connections. Authentication narrows the reachable population; it does not protect a decoder used before credentials are checked or eliminate exposure from authenticated users.
A proxy can buffer request bodies and change how some traffic reaches the origin, but Calif explicitly says buffering is not a general mitigation and describes a demonstration that works with a complete request. A WAF likewise does not see every internal message, worker input or client-side TLS flow. Monitor what edge rules actually cover and track their expiry with the exception owner. Keep the vendor update scheduled even if the temporary control behaves as intended.
Detect, investigate and close
- Preserve JVM fatal-error logs such as
hs_err_pidfiles, restart history, the original image or product version and the relevant ingress, application and network telemetry. Restrict access to crash artifacts: they can contain credentials or other sensitive material. - Correlate unexpected native crashes or restart clusters with changes in traffic and with process behavior: unplanned child processes, new outbound destinations, changes to runtime files, and unexpected Java installations. Neither a crash nor malformed-input log is specific to Java4Shell. Normal HTTP status codes or a lack of crashes do not rule out memory disclosure. Avoid logging raw tokens or request bodies to compensate for sparse telemetry.
- Patch and investigate in parallel if evidence points to a possible compromise. Isolate the affected workload as needed, preserve evidence and scope which credentials and resources the process could reach. Rebuild from trusted artifacts and rotate potentially exposed secrets when incident evidence and scope warrant it. Patching closes the vulnerable path; it cannot reverse disclosure or remove persistence left before rollout.
Start with reachable services on affected or unverified runtimes, especially those that decode untrusted data before authentication or run with access to sensitive resources. Give an unknown build an owner and a deadline rather than treating it as unaffected. Close the remediation when the running build is verified against the supplier's fix, stale copies cannot return through normal deployment procedures, and suspicious telemetry has an investigation disposition. Our PHP2Shell analysis covers a related problem: an edge control buys time without repairing a flaw in the runtime.
Sources
- Calif; Quang Luong, “Java4Shell: Write once, RCE everywhere,” technical section “The Tail of Base64,” November 17, 2026; disclosure timeline added November 19, 2026.
- Cybersecurity and Infrastructure Security Agency (CISA), “Critical Java Vulnerability Requires Immediate Patching,” November 17, 2026; “CISA ADP Vulnrichment” for CVE-2026-114938, November 17, 2026; Known Exploited Vulnerabilities catalog, November 24, 2026 snapshot.
- Oracle, “Oracle Critical Security Patch Update Advisory - November 2026,” November 17, 2026; CVE Program record “CVE-2026-114938,” published November 17, 2026.
- OpenJDK, “OpenJDK Vulnerability Advisory: 2026/11/17,” last updated November 23, 2026.
- Eclipse Adoptium, “Eclipse Temurin guidance for CVE-2026-114938 ‘java4shell’,” November 18, 2026; Adoptium Support, JVM crash report #1480 opened by
sundarms, June 9, 2026; OpenJDK proposed fix #32781 opened byalbertnetymk, September 9, 2026. - Canonical, Ubuntu security tracker, “CVE-2026-114938,” last updated November 20, 2026.
- Amazon Web Services, “Change Log for Amazon Corretto 27,” release
27.0.1.1.4, November 17, 2026. - Apache Shiro; Lenny Primak, “Java4Shell (CVE-2026-114938): what Shiro users should know,” November 18, 2026.
AI Security Starter Training
Request a practical checklist for prompt injection, RAG data leakage, MCP risks, and model-file security before launch.
Related Research
Related Services
Scope Estimator
Get a rough engagement size before the scoping call.
- What this depth covers
- Full coverage of the OWASP-family test plan for the in-scope targets: broken access control, injection, authn and authz flaws, business-logic abuse, findings with reproduction steps.
- What it does not cover
- Multi-week adversary emulation, physical and phishing vectors, custom exploit development, source-code review.
Indicative effort
~5 tester-days
Estimate only, not a quote. It scales with the three factors above and assumes the targets are reachable and test accounts are provided in the test window.