← Tue, Nov 17 digest

Java4Shell: RCE in OpenJDK when processing Base64

read article ↗ hn thread ↗

A critical memory-corruption vulnerability in OpenJDK's x86-64 AVX-512 Base64 decoder allows remote code execution in widespread Java applications.

read it The disclosure details a critical JVM memory-corruption flaw and essential mitigation flags needed immediately by operators running x86-64 infrastructure.

summary

Calif disclosed a critical memory-corruption vulnerability in OpenJDK's optimized assembly-level Base64 decoder using AVX-512 instructions. Malformed inputs with stray characters trigger an invalid length calculation, resulting in a heap out-of-bounds write that leads to remote code execution in major Java applications like Jira, Jenkins, and Kafka. Exploitation requires specific CPU features, making ARM-based instances and non-AVX systems immune, but vulnerable x86-64 servers face severe exposure. Operators can mitigate the risk immediately by passing JVM flags like -XX:-UseBASE64Intrinsics prior to patching.

key points

  1. The vulnerability (CVE-2026-114938) stems from a bug in OpenJDK's hand-rolled AVX-512 assembly routine handling final Base64 bytes, causing an invalid negative length calculation and subsequent heap corruption.
  2. Widespread applications including Keycloak, Jira, Confluence, Jenkins, and Elasticsearch are vulnerable to remote code execution under default configurations.
  3. Only x86-64 processors supporting AVX-512 VBMI are affected; ARM-based hosts like AWS Graviton and older CPUs are immune.
  4. Operators can temporarily mitigate the risk by configuring the JVM flag -XX:-UseBASE64Intrinsics.

who should read it

Java backend engineers, security professionals, and infrastructure operators running x86-64 workloads.

discussion skeptical

consensus

Commenters focus heavily on verifying CPU prerequisites like AVX-512 VBMI and highlighting immediate JVM flag workarounds, while discussing exploit complexity and real-world impact.

pushback

Some express skepticism about immediate mass-exploitation due to the bespoke heap grooming requirements, contrasting with anxiety over AI-accelerated weaponization.

best comment by ievans ↗

Super impressive work by Calif as usual.

The exploit conditions are very specific but there are still going to be a lot of hosts impacted. We at Semgrep published some free detection scripts here: https://github.com/semgrep/detection-scripts/tree/main/CVE-2...

They look for these five conditions:

* HotSpot VM: any OpenJDK build, Oracle JDK, or GraalVM JDK. Only HotSpot generates the stub. OpenJ9 and GCJ are OK. Azul Prime (Zing), which replaces C2 with its own JIT, and any VM name not recognized as HotSpot are [?], never [!]. * x86-64 JVM on an x86-64 host. * Version 17.0.6 or later, not …

Lists precise technical conditions and detection scripts needed to check if a host is actually exposed.

Generated by an LLM from the article and thread. Check the sources before relying on it.