A red padlock resting on a laptop keyboard lit in green, representing software security

Java Security Flaw: AI Uncovers a Bug Hidden for 12 Years

A security start-up called Calif has used an AI model to find a serious flaw in Java, one of the most widely used programming languages in the world. The bug, now known as Java4Shell, sits in the way Java handles memory and could let an attacker run commands remotely on an affected system. By one expert’s estimate, it has been there for around 12 years.

It’s the second time in a matter of weeks that the same firm has turned up a major weakness in a core web technology. In October it was PHP. Now it’s Java.

In brief

  • What: a critical bug in Java’s memory functions, named Java4Shell.
  • Who found it: Calif, using GPT-6 Cyber, an OpenAI model that isn’t yet available to the public.
  • The fix: Oracle, which owns Java, released a critical patch update on Tuesday 17 November, though it hasn’t publicly linked it to this bug.
  • Impact so far: no confirmed attacks or affected companies yet.
A developer working late at a desk with two monitors showing lines of code

What was found, and why it matters

Java has been around since 1995 and runs a huge share of the systems that keep everyday life ticking over. Banks, hospitals, airlines, telecoms firms and government departments all rely on it, as do big names such as Apple and Amazon. When you log in to a service, upload a file or move money online, there’s a good chance Java is doing some of the work behind the scenes.

Go Ad Free

One of the main reasons developers choose Java is that it manages memory for them. That’s supposed to rule out a whole class of security problems, which is why AI researcher Professor Toby Walsh described this flaw as both unlikely and serious. Overloading or abusing a system’s memory is one of the most common ways attackers take control of software or crash it, so a weakness in exactly that area is a big deal.

Cyber-security specialist Dr Pedram Hayati warned that the bug could put financial systems and customer data at risk, pointing out that in Australia almost every bank uses Java to manage its transaction data.

What happens next

The immediate job falls to anyone running Java in production: apply Oracle’s latest critical patch update. Oracle hasn’t confirmed the bug publicly, but the update contains security fixes, and there’s no reason to wait for a formal statement before installing it.

The bigger worry is timing. The AI model that found Java4Shell isn’t on general release, but now that the flaw is known, attackers will be looking for it too. Unpatched systems become easier targets with every week that passes.

This is also likely to be the start of a pattern. Walsh said AI is exposing flaws much faster than before, including ones that may have been too obscure for people to find on their own. The PHP flaw Calif reported last month had gone unnoticed for at least a decade and, according to Professor Alan Woodward of the Surrey Centre for Cyber Security, affected around 30 million websites. Expect more announcements like these, and more urgent patch cycles, over the coming months.

There has also been speculation about whether a run of US outages this week, including problems at Apple and the National Security Agency, had anything to do with it. So far nothing ties them to the Java bug, and US officials have said there’s no evidence the incidents are linked.

Go Ad Free
Roasted coffee beans splashing into a white cup against a dark background

What this means for your business

Java is not JavaScript

The names cause endless confusion. JavaScript is the language that runs in your visitors’ browsers and powers the menus, sliders and forms on almost every website. Java is a separate language, usually found on servers and in larger business systems. This flaw is in Java, so the JavaScript on your website isn’t affected.

Most small business websites, including WordPress sites, run on PHP rather than Java. For a typical brochure site or online shop, there’s nothing to patch in the site itself. If you installed the PHP updates last month, your own website is already in good shape.

Where Java might still touch you

Java is far more likely to sit inside the services you depend on: your bank, your payment provider, booking software, accounting packages, or internal tools a developer built for you. A few practical steps:

  • If you run any Java software on your own servers or office machines, check that Oracle’s latest update has been applied.
  • Ask suppliers who handle your data or payments whether they’ve patched.
  • Watch for emails from your bank or software providers about password resets or maintenance windows over the next few weeks.
  • Keep your own website, plugins and hosting up to date. A patched site is a harder target, whatever the next headline is.

AI is making it quicker and cheaper to find long-hidden bugs, and attackers have access to the same tools. The gap between a flaw being found and being exploited is getting shorter, so updates can’t wait until there’s a spare afternoon.

Go Ad Free

Create a free account, or log in.

Gain access to read this article, join developers who build better, faster, smarter solutions

Yes! I would like to receive new content and updates.

Scroll to Top