Calif used Codex to find Java4Shell, a remote code execution flaw in OpenJDK
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:
More from Cybersecurity
Nov 17 Pentagon makes AI a required part of training for its cybersecurity workforce Nov 17 CommBank releases free CodeCheck tool that uses Codex and Claude Code to find software vulnerabilities Nov 17 Microsoft releases seven MAI models at Ignite, led by MAI Code 2, and opens licensed weights Nov 17 Microsoft launches AI Transparency Initiative with more than 40 organisations Nov 17 Gemini AI agents in safety tests repeatedly bypassed safeguards to attack Epoch AI's live websiteAI 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
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
Docker fixes Sandboxes file access flaw
Codex Jailbreak Bundle Injects Ads Into Agent Prompts
OpenAI Cyber Model Finds 948 Linux Kernel Privilege Escalation Flaws
OpenAI Fixes ChatGPT Lockdown Mode Bypass
Cipher Finds Four Flaws in EPICS Control Software
Daily AI Brief: the AI news that matters, in your inbox.