New: AI API Cost Calculator — compare GPT, Claude, Gemini, Grok, Llama, DeepSeek & Kimi pricing live
Developers · Security

Java4Shell (CVE-2026-114938): An AI Found a Critical RCE in Java's Base64 Decoder — Patch Now

By ToolsDig Research · Updated November 18, 2026 · How we research

Nothing here is sponsored — no affiliate links on this page. Every fact below comes from the disclosure by security firm Calif, Oracle's November 2026 Critical Patch Update, and CISA's alert of November 17, 2026, as reported by CyberScoop, Qualys, Orca and CISA coverage. Severity scores and affected-version lists are the vendors' own. We have not tested the exploit — this is researched analysis, not hands-on testing.

A dark server room at night with rows of rack servers, one rack glowing amber-red, and a laptop showing code in the foreground

A 65-byte string can take over your Java server. That is the short version of Java4Shell, the critical vulnerability disclosed on Tuesday, November 17, 2026. The longer version is the one that should change how every Java team thinks about security: the flaw was found by a researcher working with OpenAI's Codex, in about an hour, for under $200 in tokens.

Oracle patched it the same day. If you run Java on x86-64 servers, the patch is the job. Everything else in this article is context for why it matters and what to do first.

🔍 How we put this together

We used Calif's disclosure, Oracle's November 2026 Critical Patch Update, and CISA's alert of November 17, 2026, plus reporting from CyberScoop, Qualys, Orca, CyberKendra and SQ Magazine. Severity scores and affected versions are the vendors' own ratings, as noted in the text. Where a fact is a vendor's claim, we say so. No hands-on testing was performed.
🏆 Verdict: Patch today, restart every JVM, and audit the forgotten servers — Jenkins, Keycloak, Confluence. The patch exists; the trigger is public; the only open question is how fast your fleet gets it.

What Java4Shell actually is

Java4Shell (CVE-2026-114938) is a heap out-of-bounds write in the Java runtime itself — not in your application, not in a library, but in the JDK's own Base64 decoder.

The bug sits in hand-written x86-64 assembly that the HotSpot JVM uses to speed up Base64 decoding with AVX-512 VBMI instructions. A specially crafted Base64 input — reportedly as simple as 64 letter "A" characters followed by a single equals sign — makes the decoder write past the end of its heap buffer, about 62 bytes past it. From there, Calif (the firm that found it) turned a memory overwrite into full remote code execution.

Two things make this worse than the average critical CVE:

Who is affected

The conditions are specific, and that is the only good news:

Check your JDK version against Oracle's advisory before assuming anything — the version line and the CPU both matter. If you run Java 17 or newer on a recent Intel or AMD server, assume you are exposed until the patch is in.

The scores, and why they disagree

Calif rates the flaw 9.2 (Critical) under CVSS 4.0. Oracle rates it 8.1 (High) under CVSS 3.1, and Red Hat published a preliminary 9.8. The disagreement is about scoring methodology, not about the bug — everyone agrees a pre-auth RCE in the JDK is about as bad as it gets.

As of November 17, no exploitation in the wild had been reported, and CISA had not added the flaw to its Known Exploited Vulnerabilities catalogue when checked at 00:05 UTC on November 18. That window is the point: the patch exists, the trigger is public, and the race is now between defenders patching and attackers repeating the discovery.

What to do right now

1. Patch the runtime. Oracle's fixed builds are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, shipped in the November 17 Critical Patch Update (which contains 655 fixes in total). Amazon had Corretto 17.0.21.1.2 out on day one, and Azul shipped fixed builds too. Red Hat had not yet shipped fixes for RHEL 8, 9 and 10 at the time of writing — if you are on Red Hat builds, watch their bulletin and use the workaround below meanwhile.

2. Restart every JVM. A patched JDK does nothing until every JVM using it has been restarted. This is the step teams most often miss: the new runtime sits on disk while the old, vulnerable one keeps serving traffic. Restart everything — app servers, CI runners, message brokers, the lot.

3. If you cannot patch yet, disable the fast path. Launch with -XX:-UseBASE64Intrinsics, which switches off the hardware-accelerated Base64 decoder at some throughput cost. That is the workaround Qualys and Orca recommend. (An alternative flag, -XX:UseAVX=2, disables AVX-512 entirely, but Orca warns it is not dependable on Java 21 and later, where the intrinsic stays live through its AVX2 path — prefer -XX:-UseBASE64Intrinsics.)

4. Audit what you actually run. List every JVM in your fleet — the forgotten Jenkins controller, the Keycloak instance someone stood up two years ago, the Confluence server, the Kafka broker. Calif's demo list reads like a standard enterprise stack, and the vulnerable ones are exactly the services that sit on the network edge decoding Base64 all day.

The Codex angle — and why it matters more than the CVE

Here is the part that will outlive this patch cycle. Calif researcher Quang Luong found the flaw while auditing OpenJDK's JIT compiler, intrinsics and cryptography code with OpenAI's Codex. Codex surfaced the Base64 bug after about 20 minutes of prompting past false positives. Luong spent about an hour on discovery and two more hours building the first working exploit, at a total AI token cost of under $200. Calif says AI agents built most of its exploit chains.

Read that again: a critical RCE in the Java standard library, found by one researcher with a coding agent, in an hour, for less than a nice dinner.

That changes the threat model in two directions at once:

The practical consequence is boring and urgent at the same time: patch windows shrink. Vulnerabilities that used to take months to find will be found in hours, by either side. The teams that survive that shift are the ones whose patching is already fast and boring — automated runtime updates, a full JVM inventory, restarts that actually happen.

The honest limits

What we still don't know

Sources: Calif disclosure via CyberScoop and CyberKendra, November 17–18, 2026; Oracle November 2026 Critical Patch Update (fixed builds 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1); CISA alert, November 17, 2026; Qualys and Orca analysis of affected versions and the -XX:-UseBASE64Intrinsics workaround; SQ Magazine and HWBusters reporting on the Codex discovery detail and Red Hat status. Severity scores are Calif's (9.2, CVSS 4.0) and Oracle's (8.1, CVSS 3.1) own ratings. No hands-on testing was performed — where a fact is a vendor's claim, we say so.