Java4Shell vulnerability puts widely used OpenJDK distributions at risk

AI-assisted vulnerability research has found a serious flaw in one of the world's most widely used software platforms

Digital security concept lock and technology

Less than a month after the discovery of PHP2Shell, researchers have uncovered a similarly massive new flaw in Java.

Quang Luong, a researcher from security company Calif, found the vulnerability – which attackers can use to run malicious code or access sensitive information – while he was examining OpenJDK HotSpot using OpenAI's Codex tool.

The bug, Java4Shell (CVE-2026-114938), is a memory corruption vulnerability affecting OpenJDK 17.0.6 and later, as well as distributions based on the affected code. It could allow attackers to run malicious code or access sensitive information.

Affected distributions include:

Oracle patched the vulnerability in its November Critical Patch Update.

OpenJDK is the open source implementation of the Java platform and provides the tools users need to run Java apps, making this a potentially widespread weakness and a significant security concern for organisations running affected applications. HotSpot is the virtual machine that runs Java apps in many OpenJDK distributions.

Luong said, “Java...is the beating heart of the modern economy. Banking, aviation, telecommunications, nearly every critical sector runs on Java, including national security systems.”

Why Java4Shell matters

Java4Shell is a flaw in Base64, a decoding function that converts binary data into text.

The bug is tracked as CVE-2026-114938, and the USA's National Vulnerability Database has assigned it a severity score of 8.1. The NVD says Java4Shell is "difficult to exploit," but could be used "compromise Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition." Calif ranks the flaw's severity as 9.2, but uses a different version of the severity standard.

A severity of 9.2 (or even 8.1) sounds serious, but this is not a universal exploit: attackers need a route into each individual app before they can launch the attack, putting a significant barrier in the way of leveraging the flaw at scale. Still, that will be scant comfort for anyone who is affected.

Oracle patched the flaw in its November Critical Security Patch Update, and users are advised to install it quickly despite the difficulty of exploitation.