A United States technology firm said on Wednesday it had used artificial intelligence to uncover a critical flaw in Java, a programming language first released in 1995 that supports systems used by banks, hospitals, governments and many of the world's largest companies.1,2,3
Calif, the firm behind the discovery, calls the vulnerability Java4Shell. It lies in Java's memory functions, specifically the Base64 decoding library in Oracle's implementation of the Java Virtual Machine, and any application using that version is at risk. A carefully crafted piece of malformed Base64 data can overwhelm the library's processing, allowing an attacker to break out of normal boundaries, remotely execute unwanted commands or crash systems and potentially gain control of a server.1,2,3
Java became widely used because developers write an application once and the Java Virtual Machine provides a uniform foundation on top of a server's operating system, running it regardless of the underlying machine while handling routine tasks such as reading files, managing network connections and formatting incoming data. One routine task is Base64 encoding, in which systems convert complex data such as images, attachments or authentication tokens into standard text for transit, then decode it back into its original form. If left unpatched, the newly found flaw could allow an attacker to trick a vulnerable server into executing malicious code.3
The scale of Java's use explains the response. The language is used by nearly all of the world's top companies such as Apple and Amazon, as well as many banks, hospitals and governments, and sits at the heart of most large, behind-the-scenes server applications for business, finance and government. Any time users transfer information on the internet, receive a file from a user or log into a system with a password, the platform they are using is likely relying on a Java program, and Calif described Java as the "beating heart of the modern economy."1,3
Computer scientist Professor Toby Walsh said Java is meant to make computing more secure by managing memory online, which is why "this is such an unlikely and serious flaw." Cybersecurity expert Dr. Pedram Hayati said the flaw could compromise "critical financial systems, customers and organisation's data." Hayati added that in Australia alone, almost every bank uses Java for managing critical transaction data, and experts said overloading a system's memory is one of the most common ways to exploit or crash a system.1
In this case, the adversary was OpenAI's recently released model GPT-6 Cyber, which is not yet available to the public. Walsh said the Java flaw had gone undetected for years, saying "It's been hiding in plain sight for 12 years." He added, "AI is now exposing more flaws much more quickly," including ones that may have been so obscure and difficult that humans could not have discovered them alone. Earlier in November, OpenAI president Greg Brockman announced his company was pivoting 25 percent of its staff to focus on cybersecurity demands.1
Oracle, the owner of Java, released a "critical patch update" on Tuesday that it said contained security vulnerability fixes, including for this flaw. The U.S. Cybersecurity and Infrastructure Security Agency issued an alert urging organizations to immediately patch the flaw. Calif officials said the company alerted the governments of the United States, Canada, Australia, New Zealand and Britain, and major technology companies including Google and Microsoft, before the vulnerability became public. Authorities in the United States, South Korea, Germany and Britain and China's Tencent urged companies and organizations to install a fix.1,2,3
The researcher who found the flaw privately reported it, giving maintainers time to develop and release a fix before attackers could widely exploit it. The issue affects enterprise applications and cloud infrastructure, not home laptops, smartphones or tablets. Exploitation is also not always straightforward because most modern web systems do not expose raw Java decoders directly to the open internet, with incoming traffic typically passing through firewalls, load balancers and web proxies that inspect, sanitize or reject malformed data before it reaches the Java application.3
Still, exploitation remains possible, especially for internal systems or custom applications that pass user-supplied bits of information, called tokens, directly to Java's decoder. Historically, finding such memory or parsing errors buried in millions of lines of mature code required months of manual review by human experts, while researchers now pair AI tools with traditional code analysis to probe libraries for edge cases humans might overlook for years. The best defense is promptly applying the latest security updates.3
It is not yet known whether any platforms or companies have been affected. The NSA did not specify whether its outage was linked to the identified Java bug. Apple reported multiple services suffered full outages due to an internal update, while a network failure grounded all flights in the United States. Earlier in the week, thousands of customers at major U.S. banks, including JP Morgan Chase, Wells Fargo and Bank of America, reported trouble accessing services.1
The Java discovery follows a flaw in the PHP programming language, also identified by Calif, which last month found a cybersecurity flaw in PHP. PHP is the code that websites like 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, leaving them vulnerable to malicious attacks, and website owners were urged to check whether their sites were affected and install updates or consider going offline. Like Java, the PHP flaws went undetected for at least a decade. The BBC has contacted Oracle for comment.1,2,3