aipopdb

2 Dec 2026  ·  11,624 works · 1,274 news indexed

No votes yet0

News / Calif finds Java4Shell, a Java base64 bug, using OpenAI's unreleased GPT-6 Cyber

Calif finds Java4Shell, a Java base64 bug, using OpenAI's unreleased GPT-6 Cyber

AIPopDB Newsroom · via cyberkendra.com · · 8 min read · Comment

Read the original ↗
Image for Calif finds Java4Shell, a Java base64 bug, using OpenAI's unreleased GPT-6 Cyber

Image: Cyber Kendra

Watch on YouTube ↗

Security researchers at the startup Calif have found a serious memory-safety flaw in the base64 decoder that ships inside Java, and they say they found it with help from GPT-6 Cyber, an OpenAI model that has not been released to the public. Calif named the bug Java4Shell and it carries the identifier CVE-2026-114938. Calif reported the flaw to Oracle first, and details became public on 17 November after the issue leaked ahead of the planned coordinated disclosure, and Calif then released its full write-up once Oracle's patch had shipped. Of the outlets that covered it, only Engadget ties the discovery to GPT-6 Cyber; the technical write-up and the Keycloak advisory describe the flaw without mentioning the model.

The trigger is almost comically small. Feed the decoder a string of 64 capital A characters followed by an equals sign and, on some machines, Java hits a memory error. Older Java 17 builds need 128 of the A characters instead. Underneath, on a 65-character input, the decoder writes 62 bytes past the end of an output array that is only 50 bytes long. The cause is an integer underflow, classed as CWE-191, in a hand-tuned piece of x86-64 assembly that uses the AVX-512 VBMI instruction set. Because the faulty code is that optimised path, the bug only bites on processors that support those instructions: Intel chips from Ice Lake onward and AMD chips from Zen 4 onward. ARM64 machines are not affected.

The reach on the software side is wide. The flaw affects OpenJDK from 17.0.6 onward, which takes in Java 21, 25 and 27, and it also touches Oracle's Java 8 Enterprise Performance Pack. Engadget points out that Java runs at about 90 percent of Fortune 500 companies, which is why a decoder bug in the runtime matters far beyond one product. Severity scores differ by who is counting: Calif rates it 9.2 on the CVSS 4.0 scale, while the OpenJDK advisory gives it 8.1 on CVSS 3.1.

What turned a crash into a security story is what Calif did with it. The researchers used heap grooming, arranging memory so that the out-of-bounds write lands on something useful, to convert the overflow into a controlled write. They also built a separate way to leak heap contents, which they call JavaBleed. With that groundwork Calif reached pre-authentication remote code execution on default installations of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and post-authentication code execution on Kafka, Solr, Elasticsearch, Gerrit and Spinnaker. Pre-authentication means an attacker needs no login at all. Calif calls both lists non-exhaustive and says it also exploited sample applications built on Apache Struts and Spring Boot. Upwind, a cloud-security firm, reproduced the overflow on AWS c6i instances and reported that, with an exactly sized output buffer, it corrupted the neighbouring object in 97 percent of rounds and eventually crashed the Java process.

“Keycloak processes Base64 data on requests that arrive before authentication, so administrators should not assume that a login requirement protects an affected instance.”

The Keycloak team, project advisory, in its advisory · keycloak.org ↗

Why a decoder sits on the login path matters. Base64 turns binary data into text so it can travel through channels built for text, and Java servers decode it constantly: in HTTP Basic authentication headers, JSON Web Tokens, SAML assertions, file uploads and API messages. Much of that happens before anyone has logged in. Upwind found that HTTP Basic authentication in Spring Security, Tomcat and Jetty 12, and the widely used java-jwt library from Auth0, all hand attacker-supplied tokens to the vulnerable decoder before any credentials are checked, so ordinary login endpoints and JWT-protected APIs are the first places to look in custom applications. Upwind confirmed Eclipse Temurin 17.0.6, 17.0.21, 21.0.13 and 25.0.5 as vulnerable and Java 11.0.33 and 17.0.5 as unaffected.

The bug exists because Java is only memory-safe where the JVM itself checks every array access. Parts of the runtime are written in C, C++ and assembly for speed, and that low-level code gets no such checks. When a method runs often enough, the compiler swaps in a hand-tuned routine, and on chips with AVX-512 VBMI the Base64 version decodes in 256-byte and then 64-byte blocks, using a bit mask to decide which bytes it may write. The flaw is in the last few characters: for a leftover tail of a single equals sign the routine computes an output length of zero, subtracts one for the padding, and the length underflows to minus one, which the mask logic reads as permission to write everything. Java then rejects the malformed input, but the damage is already done. The optimisation first appeared in JDK 18 and was backported to Java 17 in the 17.0.6 update, which is why that version marks the start of the affected range; the Java 8 Enterprise Performance Pack received the same change, which explains why it is the one Java 8 build on the list.

Because the bug needs those processor instructions, the choice of cloud instance largely decides exposure. Calif lists Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, plus AMD Zen 4 or newer. On AWS that puts the sixth- and seventh-generation Intel families such as c6i and c7i, and the Zen 4 families such as c7a, in scope, while older Skylake and Cascade Lake families lack the needed instruction and Graviton chips are ARM. Azure's Dv5 and Ev5 series and Google Cloud's C3, C3D and C4 machines are in scope as well. Every OpenJDK-based distribution built from 17.0.6 or later is affected, including Oracle Java SE, Amazon Corretto, Eclipse Temurin, Microsoft's build, Azul Zulu, BellSoft Liberica, SAP SapMachine and Red Hat's OpenJDK, while standard Java 8 and 11 and Java 17.0.0 through 17.0.5 are not.

The attack is not push-button. Calif says each target needs its own profile: a route to the decoder, a suitable heap layout, a way to read data back and an application action to hijack. Some of the current grooming approaches rely on streaming partial request bodies, which a proxy that buffers the whole body, as nginx does by default, can disrupt. Calif warns that this is not a general defence: its Elasticsearch chain works from a single complete request, and WebSocket traffic bypasses request buffering. No attacks in the wild had been reported as of 18 November, and Upwind found that both of Calif's mitigation flags blocked the bug on every affected version it tested.

Keycloak is the example Calif chose to show the danger. It is the open-source login and identity system that organisations such as CERN and NASA use to decide who may sign in, so a way to take it over without credentials is exactly the kind of thing defenders dread. The Keycloak team confirmed that the researchers demonstrated the attack. The project also noted that its container images tagged 26.8.2-1 and 26.8.2-2 bundle an affected OpenJDK 21.0.13 build, as checked on 18 November.

Cyble's header graphic for its article on Java4Shell

Cyble's header graphic for its article on Java4Shell

Image: Cyble

A second attack path came from outside Calif. The researcher samczsun shared a client-side exploit with the team in which a Java program that connects over TLS to a malicious server can itself be compromised. That widens the problem from servers that accept untrusted input to clients that talk to untrusted servers, which is a much longer list of programs.

On the vendor side, Oracle shipped its critical patch update on Tuesday 17 November, at 1 p.m. Pacific, and the technical write-up lists fixed builds for Oracle Java SE 17, 21, 25 and 27 (17.0.21.1 and 21.0.13.1 among them), and the US cyber agency CISA told organisations to patch straight away. The sources do not agree on how Oracle handled the bug in its notes: Engadget says the update went out without specifically mentioning it, while the technical write-up says Oracle credited Calif researchers Albert Yang and Quang Luong in its November update. The upstream fix is a four-line change, tracked as JDK-8393212, in OpenJDK 27.0.1.1.

Patching is uneven so far. As of 18 November, Eclipse Temurin, Azul Zulu, Microsoft, Red Hat and the Linux distributions had not yet published fixed builds, although Oracle and Amazon had. Where a fix is not yet available, the interim mitigation, given by both Keycloak and the technical write-up, is to start the Java virtual machine with the flag -XX:-UseBASE64Intrinsics, which switches off the faulty optimised routine, and then restart the service.

Calif takes a measured line on how worried people should be. It says the bug is not easy to weaponise, because every target needs its own exploit profile, and that this gives defenders some breathing room. It is also holding back its product-specific exploits until users have had time to upgrade. The exposure is real but bounded: an attacker needs a supporting processor, a reachable decoder and an exploit tailored to the target, and Calif adds that the work is not trivial to repeat across products. Even so, Calif expects the flaw to linger for five to 10 years, because some systems will simply never be patched. Engadget adds a note of caution about the mood around the story: officials have not tied the past week's outages at Microsoft, the FAA, banks and Apple to AI.

GPT-6 Cyber
AI model
by OpenAI

About GPT-6 Cyber

OpenAI introduced GPT-6 Cyber on 5 November 2026, and it was its fourth cybersecurity-focused model of the year, following versions released in April, June and August. It was first offered only to a select group of approved Daybreak Red customers, the programme for advanced offensive work such as simulated attacks, with access due to widen over the following weeks.

At launch OpenAI said researchers had used it to find 81 previously unknown high-severity vulnerabilities in Firefox and to build working exploits for 948 Linux kernel vulnerabilities, 588 of them previously unknown. OpenAI also said it developed and validated a critical remote code execution flaw in Brotli, the open-source compression tool.

Nov 2026

Released

The finding lands in a short history of AI-assisted vulnerability work. In March 2026 Calif showed Anthropic's Claude writing a remote kernel exploit for FreeBSD, tracked as CVE-2026-4747. OpenAI introduced GPT-6 Cyber on 5 November 2026 to a limited group of customers in its Daybreak Red programme, so the Java discovery came less than two weeks after the model's debut. At launch OpenAI said researchers had used it to find 81 previously unknown high-severity Firefox vulnerabilities. Whether the model deserves the credit is for readers to weigh, since only one of the three accounts makes that claim.

Comments