Fears hackers could exploit Java flaw after AI discovery
A cyber-security start-up using artificial intelligence has found a serious vulnerability in Java, the programming language relied upon by banks, hospitals and governments worldwide.

A cyber-security firm has used artificial intelligence to uncover a critical flaw in Java, one of the world's most popular computer programming languages. The tech start-up Calif, which recently identified a security flaw in another language, PHP, found the bug in Java's memory functions. Java is used by nearly all of the world's top companies, among them Apple and Amazon, as well as many banks, hospitals and governments. It is meant to make the IT world more secure by managing memory online, said the computer scientist Professor Toby Walsh, which is why this is such an unlikely and serious flaw. The discovery comes after a string of serious technology failures, including a massive Microsoft outage.
On Tuesday the US National Security Agency said its internal communications had gone offline because of scheduled routine maintenance. The agency did not say whether the outage was linked to the Java bug. Apple also reported that multiple services had suffered full outages because of an internal update, while a network failure grounded all flights in the United States. Marco Rubio, the US Secretary of State, said there was zero evidence the incidents were related. With the help of artificial intelligence, Calif discovered a serious vulnerability, dubbed Java4Shell, which would allow an adversary to execute unwanted commands remotely in Java's memory system. In this case the adversary was OpenAI's recently released model GPT-6 Cyber, which is not yet available to the public. But there are fears that hackers could now identify the bug if the flaw is not fixed.
Oracle, the owner of Java, has not acknowledged the bug but released a critical patch update on Tuesday, which it said contained security vulnerability fixes. At this stage it is unclear whether any platforms or companies have been affected. The flaw remains a huge concern for cyber-security experts, who say that overloading a system's memory is one of the most common ways for hackers to exploit or crash it. The BBC has contacted Oracle for comment. Nearly every critical sector, including banking, national security systems, aviation and telecommunications, relies on Java. First released in 1995, the language and computing system is now the beating heart of the modern economy, Calif said in its investigation.
One of Java's main functions is to manage and protect memory, Walsh, a leading artificial intelligence researcher, told the BBC. Any time you transfer information on the internet, receive a file from a user or log into an IT system with a password, the platform you are using is likely to rely on a Java program. The flaw could compromise critical financial systems, customers and organisations' data, said the cyber-security expert Dr Pedram Hayati. In Australia alone, he added, almost every bank uses Java to manage critical transaction data. The latest incidents have exposed how nearly every critical sector relies on legacy infrastructure online. Earlier this week, thousands of customers at major US banks, including JP Morgan Chase, Wells Fargo and Bank of America, reported trouble accessing services.
The Java discovery follows a critical flaw identified in PHP, also by Calif. PHP is the code that websites such as Wikipedia use to collect information and present it in a readable form on the web. Professor Alan Woodward, of the Surrey Centre for Cyber Security, said the PHP flaw affected some 30 million websites and left them vulnerable to malicious attack. At the time, website owners were urged to check whether their sites were affected and, if so, to install updates or consider going offline. The PHP flaws went undetected for at least a decade, which Walsh said was similar to what has happened with Java. It had been hiding in plain sight for 12 years, he said. Artificial intelligence, he added, is now exposing more flaws much more quickly, including ones so obscure and difficult that humans could not have found them alone. Earlier in November, OpenAI's president, Greg Brockman, announced that the company was moving a quarter of its staff to focus on cyber-security demands.