Researchers used Codex to find a memory-corruption flaw in Java's Base64 decoder
The security firm Calif disclosed Java4Shell, CVE-2026-114938, a flaw in OpenJDK that lets malformed Base64 text overwrite memory on x86-64 servers with AVX-512 VBMI. It scores 9.2 out of 10 under CVSS 4.0, and Calif reached remote code execution in Jenkins, Jira, Keycloak and other common products. OpenJDK published an advisory and Oracle a patch on 17 November.
Java is sold on memory safety: the runtime checks every access, so the buffer overflows common in C programs should not happen. But parts of the runtime itself are written in C++ and assembly. When a Java function runs often, the HotSpot JIT compiler turns it into native code, and for some functions it uses hand-written routines, called intrinsics, that use special CPU instructions to process many bytes at once. Base64, the common way to write binary data as text, is decoded this way. It appears in sign-in protocols, file uploads and network messages, so untrusted input reaches it easily.
The bug sits in the routine that handles the last few characters of the input. Decoding 64 letters A followed by a single "=", OpenJDK allocates a 50-byte result, but the routine computes a negative output length, and the CPU then writes a full 64 bytes, 62 of them past the end of the array. Java rejects the input afterwards, but by then neighbouring objects may already be overwritten. On OpenJDK 17 the trigger is 128 letters instead of 64. The overwrite itself is fixed bytes, but Calif turned it into a way to read the heap, in the style of Heartbleed, and then into code execution.
Calif showed remote code execution without logging in on Keycloak, Atlassian Jira and Confluence, JFrog Artifactory, Jenkins and PingFederate, all in their default configurations, and after login on Apache Kafka, Apache Solr, Elasticsearch, Gerrit and Spinnaker. It calls both lists incomplete. A separate client-side exploit means a Java program that only opens a TLS connection to a malicious server can be compromised. There is no universal exploit: each product needs its own heap layout and timing, the attack is sensitive to network delay, and a proxy that buffers whole request bodies, as nginx does by default, breaks some chains but not the one for Elasticsearch. Calif is holding back the product exploits until systems are patched.
Researcher Quang Luong asked Codex to audit the JIT compiler, intrinsics, widely used APIs and cryptography, and spent about 20 minutes prompting and setting aside findings that went nowhere before it reported the Base64 bug. Finding the flaw took an hour and the first working exploit two more, at a token cost under $200; later exploit chains were built almost on their own by agents. The write-up ends with a call for what Calif names vibe-uncoding: using the same AI tools to find and remove code a system does not need, such as an assembly fast path for decoding a few hundred bytes.
