AI Finds 'Java4Shell' Flaw Hiding in World's Third-Biggest Language
AI model GPT-6 Cyber exposed Java4Shell, a memory flaw hidden for 12 years in Java, used by 90% of Fortune 500 firms. Oracle shipped a critical patch Tuesday.
By Nathan Brooks
3 min read

What's News
- Calif used OpenAI's unreleased GPT-6 Cyber model to find the Java4Shell flaw in Java's memory functions.
- Java is the world's third-largest programming language, used by 90% of Fortune 500 companies.
- Oracle released a 'critical patch update' on Tuesday but has not acknowledged the bug.
- Professor Toby Walsh says the flaw has been 'hiding in plain sight for 12 years'.
- OpenAI President Greg Brockman announced in November the company is pivoting 25% of staff to cyber-security.
A startup called Calif used an unreleased OpenAI model to find a critical memory flaw in Java, the world's third-largest programming language — a bug that has sat undetected for roughly 12 years. Oracle, Java's owner, released a "critical patch update" on Tuesday that it said contained security vulnerability fixes, though it has not acknowledged the bug itself.
Calif, which recently identified a cyber-security flaw in the PHP language, discovered the vulnerability with the help of AI. It's called Java4Shell, and it allowed an adversary to remotely execute unwanted commands against Java's memory system.
That adversary wasn't a hacker — it was OpenAI's recently released GPT-6 Cyber model, which is not yet available to the public. The worry now is that hackers could find the same bug if it isn't fixed.
Why this flaw matters
Java runs at 90% of the world's Fortune 500 companies, including Apple and Amazon, plus many banks, hospitals and governments. First released in 1995, it is, in Calif's words, the "beating heart of the modern economy". Banking, national security systems, aviation and telecommunications all rely on it.
The bug strikes at what Java is supposed to do best. Professor Toby Walsh, a computer scientist and one of the world's leading AI researchers, told the BBC: "One of the main functions of Java is that it is supposed to manage and protect memory for you." He added: "This is why this is such an unlikely and serious flaw."
Overloading a system's memory is one of the most common ways hackers exploit or crash a system, according to cyber-security experts. Dr Pedram Hayati said the flaw could compromise "critical financial systems, customers and organisation's data." In Australia alone, he noted, almost every bank uses Java to manage critical transaction data.
What does this change for practitioners?
If you run Java anywhere in your stack, patch now and verify. It's unclear whether any platforms or companies have been affected so far, and Oracle hasn't confirmed the bug — but the exposure is now public. Anytime you transfer information online, receive a file or log into a system with a password, the platform you're using likely relies on a Java program.
A string of incidents
The discovery follows a run of serious technology issues: a massive Microsoft outage and a network failure that grounded all US flights. US Secretary of State Marco Rubio said there is "zero evidence" the incidents are related.
The US National Security Agency said its internal communications went offline on Tuesday due to "scheduled routine maintenance" — it did not specify whether that was linked to the Java bug. Apple also reported multiple services suffered full outages due to an internal update. Earlier this week, thousands of customers at major US banks — JP Morgan Chase, Wells Fargo and Bank of America — reported trouble accessing services.
The pattern, per the BBC's reporting: nearly every critical sector depends on legacy infrastructure online.
The AI angle is the real story
The Java flaw comes barely weeks after Calif found a critical flaw in PHP, the code behind sites like Wikipedia. That bug affected some 30 million websites, according to Professor Alan Woodward of the Surrey Centre for Cyber Security, leaving them vulnerable to malicious attacks. Website owners were urged to install patches or consider going offline.
The PHP flaws had gone undetected for at least a decade. Walsh said the Java situation is similar: "It's been hiding in plain sight for 12 years."
The industry is shifting resources accordingly. Earlier in November, OpenAI President Greg Brockman announced his company was pivoting 25% of its staff toward cyber-security demands — roughly one in four employees working on defense rather than products.
"AI is now exposing more flaws much more quickly," Walsh said, including flaws so obscure and difficult that humans could not have discovered them alone. Expect the pace of disclosure to keep accelerating — and expect your patching cadence to have to keep up.
Source: BBC Business
More from Nathan Brooks
Show full bio
News editor covering regulation, policy and their impact on entrepreneurship, startups and venture funding at Business Bearings.
2,352 articles