Skip to content
CVErceexploitpatchcritical

Java4Shell CVE-2026-114938: JVM optimizer RCE — patch now

2 min read
Share

Researchers at the University of California San Diego disclosed a pre-authentication remote code execution vulnerability in the HotSpot JVM's C2 just-in-time optimizer on November 17, 2026. Oracle confirmed the issue and assigned it CVE-2026-114938 with a CVSS base score of 9.8. The vulnerability has been informally named Java4Shell by the security community.

Technical details

The attack vector is a specially crafted Java class file submitted through any publicly accessible deserialization endpoint. When the C2 optimizer processes the malicious bytecode, a path traversal condition allows an attacker to overwrite arbitrary files in the JVM process's working directory. With a second-stage payload this escalates to full remote code execution under the JVM's process account. No authentication is required, and no user interaction is needed beyond the server receiving the class file.

Affected versions

Oracle confirmed that JDK 11 through JDK 25 are affected. Red Hat rated the vulnerability CVSS 9.8. Patches are available in JDK 11.0.27, 17.0.15, 21.0.7, and 25.0.1. All earlier patch releases of these major versions are vulnerable. JDK 8 is not affected because C2 optimization handles bytecode differently in that version.

Mitigation options

The primary mitigation is to apply the available patches. Organizations that cannot patch immediately can disable the vulnerable optimizer path with the JVM startup flag -XX:-UseC2. This disables the C2 JIT compiler entirely, reducing application throughput by approximately 15 to 25 percent. The flag is a stop-gap and should not replace patching.

What to do now

Identify all JVM deployments in your environment and prioritize those with publicly accessible deserialization endpoints such as Java EE application servers, messaging brokers, and XML-based web services. Update JDK packages via your OS package manager or the Oracle/Adoptium download pages. Verify the patch version banner in your application server console and restart affected services after patching. Treat this with the same urgency as Log4Shell.

Durable lesson

JVM internals are rarely included in threat models. The C2 optimizer is a complex, performance-critical component that processes untrusted bytecode at the boundary between the application and the runtime. This vulnerability is a reminder that the JVM itself is attack surface, not just the application code running on top of it. Inventory your Java versions and patch cycles with the same rigor you apply to web frameworks and OS packages.