Java4Shell: Security agencies issue alert as critical flaw found in popular programming language – and AI helped uncover it
Researchers say Java4Shell could enable remote code execution, app crashes, and secret extraction
AI scanning tools have uncovered yet another critical flaw in a major piece of software, with researchers revealing a bug in Java’s memory functions which they say could allow remote code execution.
The bug, dubbed Java4Shell, follows the discovery of a similar flaw in the codebase of popular programming language PHP. Both were discovered by the same security research firm, Calif, which used LLMs to locate the vulnerabilities within the programming languages.
The flaw works by using malformed inputs to force a Base64 decoder within open-source Java implementation OpenJDK to overwrite neighbouring memory. This can be used to crash applications, reveal secrets within memory, or trigger remote code execution, researchers said.
Calif claimed it was able to achieve pre-authentication RCE on Atlassian Jira, Jenkins, Keycloak, and others, as well as post-auth RCE on tools such as Apache Kafka Broker and Spinnaker.
CISA, Oracle issue Java4Shell alerts
Oracle, which owns and maintains Java, has issued a critical security update for customers, but has not otherwise commented on the discovery.
The US Cybersecurity and Infrastructure Security Agency (CISA), meanwhile, also issued an advisory urging organizations to audit their IT environments for any affected Java installations and patch them as soon as possible.
For organizations that cannot patch the flaw, there are two workarounds centered on disabling the specific Base64 encoder the bug exploits. The flaw also requires an x86-64 processor with AVX-512 VBMI support, and ARM64 CPUs are not affected.
Sign up today and you will receive a free copy of our Future Focus 2026 report - the leading resource for IT decision-maker insight on priorities and investment areas in AI, security and more.
As with PHP2Shell, the discovery of this flaw is particularly significant thanks to the huge role that Java plays in global digital infrastructure.
According to TIOBE’s monthly Programming Community Index, Java is the third most popular programming language in the world and is used extensively across a range of enterprise environments.
It’s currently not known if the flaw is being exploited in the wild, although researchers from security firm Blackpoint Cyber have been able to reproduce targeted attacks which crashed a Java application, as well as extracting secrets from memory.
AI bug hunting continues
The incident is yet another example of AI tools uncovering a major codebase vulnerability that had gone unnoticed for more than a decade.
Calif researchers used OpenAI’s GPT-6 Cyber model, which was launched on 5 November to a select group of approved security clients in advance of wider rollout.
According to OpenAI, the model has already found 81 new vulnerabilities in Mozilla’s Firefox browser, and developed exploits for almost 950 Linux kernel flaws.
While AI companies tout the benefits of this technology for identifying new zero-day exploits, critics have warned that an explosion in the number of flaws being discovered risks overwhelming the ability of organizations to develop, deploy and apply patches for them.
Concerns have also been raised about the speed with which AI allows cyber criminals to identify and exploit security holes as part of attacks.
“It took our own Quang Luong an hour to discover the vulnerability,” Calif said as part of the announcement, “and two more hours to develop the first working exploit. The total token cost was less than $200.”
FOLLOW US ON SOCIAL MEDIA
Follow ITPro on Google News and add us as a preferred source to keep tabs on all our latest news, analysis, views, and reviews.
You can also follow ITPro on LinkedIn, X, Facebook, and BlueSky.
Adam Shepherd has been a technology journalist since 2015, covering everything from cloud storage and security, to smartphones and servers. Over the course of his career, he’s seen the spread of 5G, the growing ubiquity of wireless devices, and the start of the connected revolution. He’s also been to more trade shows and technology conferences than he cares to count.
Adam is an avid follower of the latest hardware innovations, and he is never happier than when tinkering with complex network configurations, or exploring a new Linux distro. He was also previously a co-host on the ITPro Podcast, where he was often found ranting about his love of strange gadgets, his disdain for Windows Mobile, and everything in between.
You can find Adam tweeting about enterprise technology (or more often bad jokes) @AdamShepherUK.
-
Microsoft CEO Satya Nadella kicks off Ignite 2026 with an apologyNews The Microsoft chief executive said the company aims to “continuously improve” on resilience capabilities
-
Why do AI initiatives fail – and succeed?Insights IT leaders must champion AI implementation from a business perspective, not just as a technology problem to solve
-
PyPI attack: Targeting of repository 'shows no sign of stopping'News Greater collaboration and understanding of attackers’ tactics is key to mitigating open source security threats
-
Nintendo hacker forced to pay company 25-30% of earnings for lifeNews Gary Bowser pled guilty to hacking charges in 2021
-
CISA: Tech industry 'shouldn't tolerate' Patch Tuesday, unsecured softwareNews CISA director Jen Easterly said the tech industry has allowed the widespread acceptance of "deviant behaviours" to make a mockery of cyber security
-
Yandex data breach reveals source code littered with racist languageNews Yandex source code for a range of key services was leaked to a popular hacker forum last week
-
Move away from memory-unsafe languages like C and C++, NSA urgesNews The US agency advises organisations to begin using languages like Rust, Java, and Swift
-
15-year-old vulnerability found in Python moduleNews Hundreds of thousands of repositories have been found to be exposed to the vulnerability
-
Why are ransomware gangs pivoting to Rust?In-depth The developer-favourite language is fast becoming a delight for ransomware criminals
-
WithSecure CTO: Industry needs to do a better job of targeting ransomware supply chainsNews The centralisation of services and tools for hackers should represent a point of vulnerability for those fighting cyber crime