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

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

17 Nov 2026 ยท Cybersecurity

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.

AI Programming Weekly covers stories like this, every Tuesday. Free.

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. The New York Times, which replicated the flaw independently, reported that Calif used OpenAI's GPT-6 Cyber model, according to Gizmodo. 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.

In this story

Calif Oracle Corporation

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.