A critical flaw in Java that went unnoticed for 12 years has been found with the help of artificial intelligence in about an hour. The vulnerability, nicknamed Java4Shell and tracked as CVE-2026-114938, lets an attacker run code remotely on systems using affected Java versions without logging in.
Oracle released a fix on 17 November as part of a wider update covering 652 security patches. Security firm Calif, which found the bug, rated Java4Shell 9.2 out of 10 on the CVSS 4.0 scale, putting it in the critical category.
What Java4Shell is
The flaw sits in OpenJDK’s Base64 decoder, in hand-written assembly code that uses AVX-512 hardware acceleration. Datadog Security Labs describes it as an out-of-bounds write, where the code writes data to memory it should not touch. That can crash a program or, in the worst case, hand an attacker control of the system.
It affects OpenJDK versions 17, 21, 25 and 27, as well as Oracle’s GraalVM. Oracle’s November Critical Patch Update fixed 11 Java SE vulnerabilities in total, all of which can be exploited remotely without authentication, and the company advised customers on Java 8, 11, 17, 21, 25 and 27 to move to the patched releases immediately.
At the time of disclosure, there was no confirmed exploitation of Java4Shell in the wild, and the US Cybersecurity and Infrastructure Security Agency had not added it to its Known Exploited Vulnerabilities catalogue. Security experts warn that the gap between a patch and real attacks keeps shrinking once technical details are public.
Found with AI in an hour
Calif researcher Quang Luong found the vulnerability using OpenAI’s Codex in roughly one hour, at a cost of under $200 in AI usage, according to the firm. He then built the first working exploit in about two more hours. Calif published the technical details but held back application-specific exploit chains to give organisations time to patch.
The same team disclosed PHP2Shell in October, two critical flaws in the PHP programming language that had also gone undetected for more than a decade. Computer scientist Toby Walsh said AI now exposes flaws much more quickly, including obscure ones humans alone might never have found.
The case shows how AI is speeding up both sides of cybersecurity. The same tools that help researchers find old bugs can help attackers, which puts more weight on how fast organisations patch.
What Pakistani companies should do
Java runs core systems at banks, telecom operators, government bodies and many Pakistani software houses that build enterprise products for foreign clients. Teams running affected OpenJDK or GraalVM versions should apply Oracle’s November update or the patched builds from their Java vendor, check third-party products that bundle Java, and watch advisories from Pakistan’s National CERT.
The warning comes in a week when ITInsider has reported several security lapses closer to home, including the misuse of a taxpayer’s FBR IRIS account to file fake returns.
Key facts
- Name: Java4Shell (CVE-2026-114938)
- Severity: 9.2 out of 10 (CVSS 4.0), critical
- Location: OpenJDK Base64 decoder (AVX-512 assembly code)
- Affected: OpenJDK 17, 21, 25, 27 and Oracle GraalVM
- Fix: Oracle Critical Patch Update, 17 November 2026
- Exploitation in the wild: none confirmed at disclosure
FAQ
What is Java4Shell?
A critical remote code execution flaw in OpenJDK’s Base64 decoder that an attacker can exploit without logging in.
Is there a fix?
Yes. Oracle released patches on 17 November 2026 and advised users to upgrade immediately.
How was it found?
A Calif researcher used OpenAI’s Codex and found the flaw in about an hour.
Official sources: Oracle Critical Patch Update (17 November 2026); Calif disclosure of CVE-2026-114938.
Featured image: representational, AI-generated






