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
More from Cybersecurity
Dec 4 US Air Force adds up to $2 million for Base Operations' AI counter-drone analytics Dec 4 UK tech committee chair calls for AI model testing before release over threat to encryption Dec 4 Alibaba Cloud's command-line tool told AI agents to hand over local data, and the company says it will stop Dec 4 UK bank regulator says frontier AI may threaten banking encryption sooner than quantum computers Dec 4 Perplexity says it stopped an autonomous AI agent that attacked it for two weeksIndustry analysis
2025 Global Business Services Agenda: Gen AI Takes Center Stage
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 moreYou may also like
Anthropic model finds 18-year-old pre-boot flaw in server firmware code EDK II 30 Nov 2026 Cisco and OpenAI launch Shirudo to shield Linux systems until patches land 23 Nov 2026 OpenAI Fixes ChatGPT Lockdown Mode Bypass 5 Nov 2026 OpenAI Cyber Model Finds 948 Linux Kernel Privilege Escalation Flaws 5 Nov 2026 US government says AI labs found flaws in some encryption, NSA urges immediate move to post-quantum cryptography 1 Dec 2026 Bitdefender finds GitHub malware that tells AI coding agents to run a credential stealer 23 Nov 2026Daily AI Brief: the AI news that matters, in your inbox.