Artificial intelligence uncovered a critical security flaw in Java, prompting urgent patching advisories from government agencies.
Security researchers discovered the vulnerability, dubbed Java4Shell, inside a core component of Oracle’s Java Virtual Machine. The bug targets the Base64 decoding library, where malformed data can overwhelm processing boundaries and allow remote command execution on vulnerable servers.
Calif, the cybersecurity firm that identified the issue, used AI tools to scan the aging codebase. The firm alerted the governments of the United States, Canada, Australia, New Zealand, and Britain, alongside major technology providers, before making the discovery public.
Following the disclosure, the U.S. Cybersecurity and Infrastructure Security Agency issued a formal security alert urging organizations to apply patches immediately. Java powers server applications for 90% of Fortune 500 companies, including Apple and Amazon, as well as global financial institutions, hospitals, and government agencies.
Artificial Intelligence in Code Analysis
Finding this defect required systematic probing of complex software libraries. Historically, identifying subtle memory and parsing errors hidden inside millions of lines of mature code demanded months of manual review by human specialists.

AI tools now accelerate that process by testing edge cases across legacy architectures at scale. Toby Walsh, a computer scientist and AI researcher, said that the core flaw had been hidden in plain sight for over a decade before automated scanning flagged it.
“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,” Walsh told the BBC.
This discovery mirrors a recent vulnerability found in PHP, another foundational web language, which Calif also uncovered using AI analysis. That earlier flaw affected approximately 30 million websites before administrators applied software updates.
Personal devices unaffected as flaw targets server-side infrastructure
Everyday users do not need to take action on personal devices, as the vulnerability impacts server-side enterprise infrastructure rather than consumer laptops or smartphones. Most modern web environments utilize intermediary layers—such as web proxies, firewalls, and load balancers—that inspect and reject malformed traffic before it reaches the underlying Java application.
However, security experts warn that internal systems or custom applications passing user-supplied tokens directly to Java decoders remain exposed until administrators update their software. Dr. Pedram Hayati said that the flaw threatens critical financial networks and organizational data, noting that nearly all Australian banks rely on Java to manage transaction records.
“It’s a serious flaw that could comprise critical financial systems, customers and organisation’s data,” Hayati told the BBC.
Vulnerability affects enterprise Java applications processing Base64 data
What systems are affected by Java4Shell?
The vulnerability affects enterprise applications running vulnerable versions of Oracle’s Java Virtual Machine, particularly those processing Base64-encoded data streams without adequate input sanitization.

Who discovered the Java security flaw?
The cybersecurity firm Calif uncovered the vulnerability using automated AI tools and subsequently notified international cybersecurity agencies and major technology vendors.
Have any companies reported active breaches from this bug?
At this stage it is unclear if any platforms or companies have been affected by the latest incident, according to BBC reporting.
What action should system administrators take?
Administrators must promptly apply the critical patch updates released by Oracle to secure vulnerable server environments against potential remote code execution attempts.
Operating since 2023, Calif focuses half of its work on artificial intelligence security, including adversarial testing of machine learning models and automated vulnerability research. Industry partners note that the firm often collaborates with frontier research labs and provides discounted security services to charities and non-profit organizations.
Oracle released a critical patch update containing security fixes, though the company has not formally commented on the discovery.