Calif used Codex to find Java4Shell, a remote code execution flaw in OpenJDK

Nov 17, 2026
Oracle patched the HotSpot Base64 bug on 17 November; Calif says all Java users should update.

Security firm Calif has disclosed Java4Shell, a memory corruption flaw in OpenJDK's HotSpot virtual machine that researcher Quang Luong found with OpenAI's Codex and turned into remote code execution.

The bug sits in HotSpot's x86-64 Base64 decoder intrinsic, the optimised routine the JIT compiler uses on processors with AVX-512 VBMI support. Malformed Base64 input with padding makes the routine miscalculate its output length and write 64 bytes past the end of the buffer. Calif turned that fixed overwrite into a leak of Java heap memory, which can hold keys and tokens, and then into code execution over the network. ARM64 processors are not affected.

Luong wrote that most early findings from Codex were unusable before it flagged the decoder. Calif also wrote a small heap visualiser because the AI got stuck while building the exploit's memory layout.

Oracle released a patch and OpenJDK published an advisory on 17 November, covering Oracle OpenJDK, Java SE and GraalVM for JDK. Calif urges all Java users to update, or to disable the Base64 intrinsics or AVX-512 as a stopgap, according to its write-up.

We hope you enjoyed this article

Consider subscribing to one of our newsletters like Cybersecurity AI Weekly, AI Programming Weekly or Daily AI Brief.

Also, consider following us on social media:

Free newsletter

AI Programming Weekly

Weekly news about AI tools for software engineers, AI enabled IDE's and much more.

Industry analysis

2025 Global Business Services Agenda: Gen AI Takes Center Stage

The Hackett Group

This industry analysis by The Hackett Group explores the transformative impact of generative artificial intelligence (Gen AI) on global business services (GBS) in 2025. The study highlights the shift from exploration to acceleration of Gen AI initiatives, with 89% of executives advancing these projects to improve customer satisfaction, innovate products, and reduce costs. The report also discusses the challenges and strategies for successful Gen AI adoption, emphasizing the need for a technology-enabled operating model and the importance of reskilling the workforce.

Read more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.