Cybersecurity

Java4Shell: An AI-Assisted Researcher Finds a Critical OpenJDK Flaw That Reaches Jenkins, Jira and Keycloak

Calif says a Codex-assisted review found a pre-authentication Base64 bug in OpenJDK that can reach default installs of Jenkins, Jira and Keycloak on AVX-512 machines.

DailyMech Staff

Java4Shell: An AI-Assisted Researcher Finds a Critical OpenJDK Flaw That Reaches Jenkins, Jira and Keycloak
Pixabay — Pixabay Content License

Lines of source code on a dark computer screen

Illustrative image; it is not a picture of the companies, products, or places named in this article. Pixabay, Pixabay Content License.

Security firm Calif has disclosed Java4Shell (CVE-2026-114938), a memory-corruption vulnerability in the Base64 decoder built into OpenJDK, the open-source implementation of Java. According to Calif's write-up, a remote attacker with no credentials can overwrite heap memory, read it "in the style of Heartbleed," and reach remote code execution. Oracle and the OpenJDK project released patches on November 17.

What makes the story bigger than one bug is how it was found. Calif researcher Quang Luong used OpenAI's Codex to hunt through the JVM's internals, and found the flaw in about an hour, according to DevOps.com.

What the Bug Is

To decode Base64 faster, OpenJDK uses hand-written machine code that relies on AVX-512 instructions on modern x86-64 processors. Calif found that malformed input can make that optimized routine write past the end of its output buffer.

  • Qualys says a short, malformed input causes the code to write 62 bytes past the end of the buffer before Java rejects the input.
  • DevOps.com reports the root cause is malformed Base64 padding that produces an incorrect write mask.
  • The fix is just four lines, tracked as JDK-8393212 ("Base64 optimization improvements"), per Endor Labs.

Because Base64 carries login headers, tokens and file uploads, the vulnerable code often runs before a user has authenticated, Qualys notes. The flaw sits in the Java runtime itself, so an application doesn't need buggy code of its own to be exposed.

Who Is Affected

Two conditions must both be true for a system to be at risk.

1. The Java version. OpenJDK 17.0.6 and newer, including the 21, 25 and 27 release lines, according to Calif and the Siemens ProductCERT notice. That covers distributions built from the same code, including Oracle Java SE, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu and Red Hat OpenJDK, per BleepingComputer.

2. The processor. An x86-64 CPU with AVX-512 VBMI support. SecurityWeek lists Intel Xeon chips from the Ice Lake generation onward and AMD chips based on Zen 4 or newer. ARM64 systems are not vulnerable.

Fixed versions, per Qualys:

Release line Fixed in
OpenJDK 17 17.0.21.1
OpenJDK 21 21.0.13.1
OpenJDK 25 25.0.5.1
OpenJDK 27 27.0.1.1

Proven Targets

Calif demonstrated remote code execution against popular products running their default configurations, according to SecurityWeek:

  • No login required: Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins and PingFederate.
  • Authenticated user required: Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit and Spinnaker.

Calif says neither list is exhaustive. An exploit shared with Calif by researcher samczsun shows a Java application can be compromised simply by connecting to an attacker-controlled server over TLS, even if it runs no services.

There is an important caveat. "There is no universal exploit," Calif noted, because the steps depend on how each application uses Base64. Calif published a proof-of-concept for the memory corruption but not the weaponized exploits, according to BleepingComputer.

How Severe Is It?

The ratings differ. Calif scored it 9.2 (Critical) under CVSS 4.0, while Oracle assigned 8.1 (High) under CVSS 3.1 and rated attack complexity as high, per Tenable. Spain's national cybersecurity center, CCN-CERT, issued a critical advisory urging immediate updates.

The disclosure was also rushed. News of the flaw surfaced before the planned coordinated release, so Calif published on November 17, according to SecurityWeek. Oracle shipped the fix in its November Critical Security Patch Update.

The AI Angle

Luong told Codex to examine the JVM's compiler, optimized routines and cryptographic code "like any serious security researcher in 2026," Calif wrote. Most early leads were "slops," either unreachable or unrealistic to exploit. Then Codex flagged the Base64 decoder.

According to DevOps.com, Luong found the flaw in roughly an hour and built the first working exploit in about two more. The New York Times reported that the work involved GPT-6 Cyber, OpenAI's specialized security model available through Codex.

This fits a pattern in the same news cycle. Forbes reported that security firm Xint found remote-code-execution flaws in Nginx using OpenAI models, which Wiz said it had found separately.

Why It Matters

  • Finding bugs is getting cheap; fixing them is not. AI agents can now surface deep, low-level flaws quickly. The bottleneck shifts to patching, inventory and coordinated disclosure.
  • Runtime bugs have huge blast radius. Like Log4Shell in 2021, the flaw sits in shared infrastructure, so one bug touches thousands of downstream products.
  • Hardware matters. Whether you are exposed depends on your CPU, not just your software version. Asset inventories need both.

Helpful tip: Update Java runtimes to the fixed versions above, starting with internet-facing identity, CI/CD and collaboration servers. If you can't patch right away, Calif recommends starting the JVM with -XX:-UseBASE64Intrinsics, or using -XX:UseAVX=2 on x86-64 systems only, as temporary mitigations, per BleepingComputer. Remember that Java bundled inside third-party products needs vendor updates too.

Sources and References

  1. Calif – "Java4Shell: Write once, RCE everywhere" (November 2026): https://calif.io/java4shell
  2. SecurityWeek – "Java4Shell Vulnerability Puts Enterprise Applications at Risk of Takeover" (November 18, 2026): https://www.securityweek.com/java4shell-vulnerability-puts-many-enterprise-applications-at-risk-of-takeover/
  3. BleepingComputer – "Critical Java4Shell flaw allows RCE attacks on major Java applications" (November 18, 2026): https://www.bleepingcomputer.com/news/security/critical-java4shell-flaw-allows-rce-attacks-on-major-java-applications/
  4. Qualys ThreatPROTECT – "OpenJDK RCE Vulnerability (Java4Shell)" (November 18, 2026): https://threatprotect.qualys.com/2026/11/18/threat-actors-exploit-critical-java4shell-in-attacks-cve-2026-114938/
  5. Tenable – "Java4Shell (CVE-2026-114938): Frequently Asked Questions" (November 18, 2026): https://www.tenable.com/blog/java4shell-cve-2026-114938-frequently-asked-questions-about-openjdk-rce-vulnerability
  6. DevOps.com – "Java4Shell Vulnerability Threatens Enterprise Java Applications" (November 18, 2026): https://devops.com/java4shell-vulnerability-threatens-enterprise-java-applications
  7. Endor Labs – "Java4Shell (CVE-2026-114938): Pre-Auth Heap Overflow in OpenJDK" (November 18, 2026): https://www.endorlabs.com/learn/java4shell-unauthenticated-rce-reported-in-openjdk-17-cve-2026-114938
  8. Siemens ProductCERT – "Java4Shell – Vulnerability in OpenJDK Java (CVE-2026-114938)" (November 18, 2026): https://cert-portal.siemens.com/news/2026/11/18/java4shell---vulnerability-in-openjdk-java-cve-2026-114938/
  9. CCN-CERT – "AV 05/26 Vulnerabilidad crítica en el decodificador Base64 de OpenJDK" (November 18, 2026): https://www.ccn.cni.es/ca/menu-actualitat-ccn-ca-es/1409-ccn-cert-av-05-26-vulnerabilidad-critica-en-el-decodificador-base64-de-openjdk
  10. Techmeme river (Forbes item on Xint and Nginx), November 18, 2026: https://www.techmeme.com/river
  11. Pixabay image (ID 1873831), Pixabay Content License: https://cdn.pixabay.com/photo/2016/11/30/20/44/computer-1873831_1280.png

Note: Severity scores and affected-version lists come from Calif, Oracle and the security vendors cited. Check your Java vendor's advisory for exact fixed builds.