Java4Shell: RCE in OpenJDK when processing Base64(calif.io)
1178 points by werrett 12 days ago | 329 comments
tl;dr: OpenJDK's x86-64 Base64 decoder intrinsic (affecting versions 17.0.6+) miscalculates a store mask when handling padded input, causing a 64-byte out-of-bounds heap write of mostly fixed values. Researchers turned this constrained corruption into remote code execution via heap feng shui, overwriting a buffer's length to escalate into arbitrary read/write primitives and eventually hitting the JIT code cache. The bug requires AVX-512 VBMI (Ice Lake+/Zen 4+) and affects all major OpenJDK distributions; patches were released Nov 17, 2026, with mitigations available via `-XX:-UseBASE64Intrinsics` or `-XX:UseAVX=2`.
HN Discussion:
  • ↑Praise for the researchers' impressive exploit work and sharing detection tools
  • ↑Speculation about broader security implications and critical infrastructure risks
  • ↑Sharing practical mitigations like JVM flags and proxy buffering workarounds
  • •Reflections on AI-augmented security research raising the bar for practitioners
  • ~Criticism of the exploit video's presentation being hard to follow