← 返回列表

CVE-2026-114938 OpenJDK RCE (Java4Shell): Everything You Need to Know

单站 Wiz Blog 作者 Tomer Schwartz 发布 Tue, 17 Nov 2026 22:29:57 GMT 入库 2026-11-18T16:28:12

On November 17, 2026, details emerged exposing a critical remote code execution (RCE) vulnerability in OpenJDK, tracked as CVE-2026-114938 (dubbed "Java4Shell") with a CVSSv4.0 score of 9.2. The bug exists in the optimized assembly code handling AVX-512 Base64 decoding, allowing remote unauthenticated attackers to cause heap memory corruption. Triggering this flaw on affected systems can lead to remote code execution.

The "Java4Shell" vulnerability and exploit were discovered and disclosed by security firm Calif.

CVE-2026-114938 is a memory-corruption vulnerability residing in the optimized Base64 decoding intrinsic engine of the Java Virtual Machine (JVM). To maximize performance, OpenJDK uses an optimized implementation on supported x86-64 processors, based on AVX-512 VBMI instructions. However, the optimized assembly code miscalculates the output array bounds when handling inputs that contain an unexpected number of trailing padding characters (=).

When an input containing a specific sequence -such as 64 A characters followed by a single = - is parsed, the decoder's length calculation underflows to a negative value. This calculation mismatch causes an out-of-bounds write past the allocated heap memory buffer. Attackers can leverage this to overwrite adjacent object metadata, which can lead to code execution. We have proved that remote exploitation is feasible against standard Java applications such Jenkins, Confluence, and Apache Tomcat.

Like other memory safety issues, exploitation is possible with AI, but is not trivial. Our AI based vulnerability research harness, Wiz Atlas, managed to find and build a proof-of-concept exploit for this vulnerability within 2 hours, even before the full details were disclosed. Having said that, generalizing the exploit for an arbitrary target is difficult. We should expect adversaries to target commonplace Java applications, where specific builds and memory layouts repeat across targets. Motivated adversaries may tailor exploits with AI for specific targets, including home-grown applications.

Web Application Firewalls can help mitigate some of the exploits as they emerge in the wild. Since this vulnerability is rooted in OpenJDK itself, many possible code paths using user inputs may lead into the vulnerable code path, so it’s unlikely that WAF rules will be able to cover all possible paths, and will never be able to cover home grown applications completely. The best solution is upgrading to the latest OpenJDK version.

Prioritize externally facing, packaged Java applications, and make sure they are either patched or restricted from public access. Upgrade home-grown Java applications and update to the latest OpenJDK version containing the fix.

The vulnerability affects OpenJDK versions 17.0.6 and later, as well as downstream distributions, provided they run on x86-64 hardware supporting AVX-512 VBMI instruction sets (ARM64 processors are unaffected). Affected software distributions and hardware include:

Security teams should immediately prioritize the following mitigation steps:

  1. Audit and Patch: Identify all systems running OpenJDK 17.0.6 or later on AVX-512-capable x86-64 hardware. Apply the official security patches released on November 17, 2026, or update to downstream vendor-supplied builds immediately.
  2. Verify Hardware Vulnerability: Run the following command on Linux systems to check if your infrastructure is physically affected:

grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
If all four CPU flags are present in the output, the host runs the vulnerable hardware execution path.

  1. Implement JVM Runtime Workarounds: If immediate patching is not possible, apply one of the following flags to JVM startup parameters to completely neutralize the vulnerability. They may have performance impact on the application.
  2. Disable Base64 Intrinsics (Recommended): -XX:-UseBASE64Intrinsics
  3. Disable AVX-512 execution (x86-64 only): -XX:UseAVX=2
  4. Isolate Internet-Facing Services: Temporarily restrict external network access to vulnerable management portals (e.g., Jira, Jenkins, Keycloak) until mitigations or updates are deployed.

Wiz customers can use the pre-built query and advisory in the Wiz Threat Center to search for vulnerable instances in their environment.

原文链接:https://www.wiz.io/blog/cve-2026-114938-rce-java4shell-openjdk