Java4Shell: Lemire explains the OpenJDK AVX-512 Base64 bug behind CVE-2026-114938 RCE
lemire · x · 2026-11-18
Daniel Lemire explains CVE-2026-114938 ("Java4Shell"), a critical OpenJDK vulnerability in the AVX-512 Base64 decoder present since 17.0.6 that enables remote code execution on major Java apps like Jenkins, Jira, Confluence, and Keycloak.
- The decoder's main loop follows Muła & Lemire's paper "Base64 encoding and decoding at almost the speed of a memory copy"
- The bug is not in the algorithm or its implementation, but in the tail code: after processing 64-byte blocks, leftover bytes are handled by hand-written assembly using AVX-512 masked stores, and a faulty mask computation causes out-of-bounds writes of up to 64 bytes
- Since Base64 encodes email attachments and images, the attack surface is wide
Lemire stresses the flaw was introduced by OpenJDK's hand-coded tail routine, not by the original algorithm.
More from Safety
- Every Red-Team Finding Should Become a Permanent Agent Eval Case — Creative_Software782 · 2026-11-25
- ChatGPT Businesses beta launches with Business Hub — and privacy questions it can't answer — semi_demi_god · 2026-11-25
- Yudkowsky amplifies So8res: models too dangerous for the public are too dangerous to use in secret — ESYudkowsky · 2026-11-25
- Cisco open-sources Project Quarry, a rule language to flag risky AI agent sessions — shashib · 2026-11-25
- Three Simple Attacks Can Boost a Model's Arena Rank by Up to 45 Spots — StanfordAILab · 2026-11-25
- AI safety writer argues pausing superintelligence is unrealistic without a major loss-of-control warning shot — zetalyrae · 2026-11-25