---
title: "Java4Shell (CVE-2026-114938): What an AI-Found Java Flaw Means for Patching"
slug: "java4shell-cve-2026-114938-ai-found-openjdk-patch"
author: "ibl.ai"
date: "2026-11-21 12:00:00"
category: "Premium"
sector: "cross"
topics: "java4shell, cve-2026-114938, openjdk vulnerability, ai vulnerability discovery, php2shell, ai security, patch management, self-hosted ai, enterprise security"
summary: "Java4Shell (CVE-2026-114938) is a memory-corruption flaw in OpenJDK's Base64 decoder that Calif found with OpenAI's Codex in about an hour; the bug had been publicly reported in June and was patched only after exploits were shown, so the question for security teams is how fast they can patch the stack they run."
banner: ""
thumbnail: ""
linkedin: |
  Java4Shell (CVE-2026-114938) was disclosed and patched on November 17, 2026: a memory-corruption bug in OpenJDK's Base64 decoder on x86-64 CPUs with AVX-512 VBMI.

  Two details matter more than the headline.

  First, Calif's researcher found it with OpenAI's Codex in about an hour and built the first exploit in two more, for under $200 in tokens.

  Second, it was not new. A user hit the crash in June, posted a reproduction in September, and a fix was proposed in OpenJDK that was closed without being merged. It was patched only after working exploits were shown.

  Finding bugs is getting cheap. The constraint is how fast you can act on one. That is easier when you own all the code and the data and run the stack in your own infrastructure.

  #iblai #Java4Shell #CyberSecurity #AppSec #AIsecurity #OpenJDK
---

## The Short Answer

**Java4Shell (CVE-2026-114938) is an OpenJDK Base64 flaw a researcher found with an AI coding agent in about an hour, months after it was first reported. The lesson is that discovery is now cheap and patch speed decides exposure. On ibl.ai you own all the code and the data, so the patch schedule is yours.**

Java4Shell was disclosed and fixed on November 17, 2026. Oracle and the OpenJDK project released patches that day, per [Calif's disclosure](https://calif.io/java4shell), the security research firm that reported it.

The vulnerable code runs only on x86-64 processors with AVX-512 VBMI: Intel Xeon from Ice Lake onward and AMD Zen 4 or newer.

## What is Java4Shell (CVE-2026-114938)?

Java4Shell (CVE-2026-114938) is an out-of-bounds heap write in the hand-written assembly OpenJDK uses to decode Base64 quickly. A malformed string, as short as 64 "A" characters and one "=", makes the routine write 62 bytes past a 50-byte array before Java rejects the input.

Calif reports remote code execution in default configurations of Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins and PingFederate without logging in, and in Kafka, Solr, Elasticsearch, Gerrit and Spinnaker with a login, per [its write-up](https://calif.io/java4shell).

The reason a login is often not needed: servers decode Base64 in HTTP Basic headers, SAML artifacts and CSRF tokens before they check who you are, as [The Hacker News](https://thehackernews.com/2026/11/java4shell-cve-2026-114938-enables-pre.html) explains.

## Which Java versions and CPUs does Java4Shell affect?

Java4Shell affects OpenJDK 17.0.6 and newer, and the builds made from it, including Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, Red Hat OpenJDK and Oracle Java SE, according to [Calif's affected-products list](https://calif.io/java4shell).

The processor must be x86-64 with AVX-512 VBMI: Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, or AMD Zen 4 and newer. ARM64 servers are not affected.

<table style="width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:0.95rem;">
  <thead>
    <tr style="background:#f5f5f0; border-bottom:2px solid #2175C5;">
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Who scored it</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Score</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Scale</th>
    </tr>
  </thead>
  <tbody>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;">Calif (the researchers)</td>
      <td style="padding:0.75rem;">9.2</td>
      <td style="padding:0.75rem;">CVSS 4.0</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;">Red Hat (preliminary)</td>
      <td style="padding:0.75rem;">9.8</td>
      <td style="padding:0.75rem;">CVSS</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;">Amazon</td>
      <td style="padding:0.75rem;">8.8</td>
      <td style="padding:0.75rem;">CVSS</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;">Oracle</td>
      <td style="padding:0.75rem;">8.1</td>
      <td style="padding:0.75rem;">CVSS 3.1</td>
    </tr>
  </tbody>
</table>

Sources: [Calif](https://calif.io/java4shell) and [The Hacker News](https://thehackernews.com/2026/11/java4shell-cve-2026-114938-enables-pre.html). The "9.2" in most headlines is the researchers' CVSS 4.0 score; vendor scores differ, so read your own vendor's advisory.

## Did AI discover Java4Shell?

AI did the search and a human directed it. Calif's Quang Luong asked OpenAI's Codex on October 24, 2026 to audit Netty and the JVM, focusing on x64 intrinsics. Codex found the bug within an hour.

The first working exploit took two more hours at under $200 in tokens, per [Calif](https://calif.io/java4shell).

Calif says most of Codex's early findings were unusable and credits the result to "the centaur hacker, part human, part AI." It is not a story of an autonomous system finding bugs on its own, and it is not the first time this has happened.

In October, Calif, OpenAI and Wiz disclosed [PHP2Shell](https://calif.io/php2shell), two remote PHP flaws (CVE-2026-109618 and CVE-2026-109619) patched in PHP's October 21, 2026 release. Two remote code execution bugs in core runtimes within two months, both found with AI help.

## Why was Java4Shell patched only after an exploit was demonstrated?

Java4Shell was patched only after exploits were shown because the bug sat in public for months without anyone proving its impact. A user hit the crash on June 9, 2026 and opened an Adoptium issue, and on September 8 posted a reproduction, per [Calif's timeline](https://calif.io/java4shell).

The next day an OpenJDK contributor proposed a fix. That pull request was closed without being merged. Calif reported the bug to Oracle with a working exploit on October 24, and the fix shipped on November 17, 24 days later.

Calif notes PHP2Shell followed the same pattern: reported, then fixed only once someone demonstrated it could be exploited. That is the real edge of this story. The bottleneck is no longer finding the bug. It is acting on a report that already exists.

## What should a security team do about Java4Shell right now?

A security team should patch Java first, then use the published mitigations where a patch has to wait. Calif lists two JVM flags: -XX:-UseBASE64Intrinsics, which turns off the accelerated decoder, or -XX:UseAVX=2, which turns off AVX-512 and affects other operations.

Apply either flag only on x86-64 hosts; OpenJDK on ARM does not recognise them and fails to start, per [Calif](https://calif.io/java4shell). As of November 2026, Canada's Cyber Centre said it was not aware of attacks exploiting the flaw.

Then list every system that runs Java on an affected CPU, including the ones you do not operate. For a hosted product, the honest answer to "are we patched?" is the vendor's statement, on the vendor's timeline.

## How does owning your AI stack change patch speed when AI finds bugs this fast?

Owning your AI stack changes patch speed because the team that reads the advisory is the team that can deploy the fix. When you hold the source and run it in your own infrastructure, you can check the runtime, apply a flag and redeploy the same afternoon.

ibl.ai is the agentic AI platform where you own all the code and the data. Organizations deploy it in their own cloud, on-premise, GovCloud or air-gapped, which puts the patch and the audit inside their own change process rather than a vendor's queue.

The same tools that found Java4Shell can work for defenders. Calif calls it "vibe-uncoding": using AI to find code a system does not need and remove it.

Running those agents against your own repositories is safer inside a sandbox you control; see how [an open-source AI pentester runs in a sandbox you own](/blog/shannon-open-source-ai-pentester-sandbox-source-code).

For the earlier signal, see [AI just found a 23-year-old Linux kernel vulnerability](/blog/ai-found-23-year-linux-vulnerability), and for the identity side of agent security, [AI agents outrun static credentials](/blog/ai-agents-outrun-static-credentials-gartner-fbi-hashicorp).

ibl.ai is family-owned and operated from New York, NY, and our engineers work alongside your team, so the people applying the patch are yours.

## Why does owning the AI stack matter?

**ibl.ai is the agentic AI platform where you own all the code and the data. You self-host the entire stack inside your own perimeter, run it model-agnostic across any LLM and switch anytime, and pay by usage with no per-seat pricing — so you can deploy anywhere: your cloud, on-premise, GovCloud, or fully air-gapped.**

- **You own all the code and the data.** Full source code under a perpetual license, running on your infrastructure. Not API access to someone else's platform — the stack itself is yours.
- **Model-agnostic.** Run any LLM — Claude, GPT, Gemini, Llama, Command, or your own fine-tune — and switch providers without rewriting the platform.
- **No per-seat pricing.** Usage-based billing against a budget cap you set. Cost tracks what your organization actually uses, not how many people you employ.
- **Deploy anywhere.** Your cloud, your VPC, on-premise, GovCloud, or a fully air-gapped network with no outbound connectivity.

1.6M+ users across 400+ organizations run the platform this way, including NVIDIA, MIT, and Syracuse University.

ibl.ai is family-owned and operated from New York, NY — a U.S.-headquartered, domestically-owned long-term partner, not a vendor that sells licenses and moves on.
