Minimalist editorial illustration of a ceramic coffee cup with fine glowing cracks across its glaze on a clean desk, steam rising, dramatic side light, teal and cream palette
News

Researchers Say AI Agents Built Exploit Chains 'Almost Autonomously' to Weaponize Java4Shell, a Critical Java Flaw

The Java4Shell flaw (CVE-2026-114938) corrupts memory through OpenJDK's accelerated Base64 decoding path; Calif Research says AI agents turned it into working attack chains against Keycloak, Jenkins and other widely deployed software.

AI securityAI agentsOpenJDKvulnerability researchsoftware supply chain

Security researchers published details of a critical Java vulnerability on Tuesday — and, unusually, the group behind the find says AI agents did much of the work. Calif Research disclosed CVE-2026-114938, nicknamed Java4Shell, a flaw rated 9.2 out of 10 on the CVSS scale in the free Java runtime that underpins software across banking, aviation and telecommunications. According to CyberScoop’s report, which covered the disclosure, Calif said AI coding tools did much of the work of finding and weaponizing the bug. Oracle shipped a fix the same day, inside its November Critical Patch Update.

The bug: memory corruption in the fast path

Java4Shell is a memory-corruption flaw in OpenJDK’s Base64 decoder — but not in the decoder’s ordinary code. The bug lives in hand-written processor instructions that accelerate Base64 decoding on chips supporting the AVX-512 feature set, so ARM64 systems are unaffected, Rapid7’s analysis — which rates the flaw critical and tracks affected Java releases — notes the Java 17 line among those affected. The decoder breaks on a specific input: 64 “A” characters followed by a single ”=” padding sign. The code then miscalculates a length and writes 64 bytes into a buffer that holds fewer, damaging neighbouring memory. On its own, that usually crashes the program; CyberScoop compares the adjacent-memory exposure to the 2014 Heartbleed bug in OpenSSL. With “heap grooming” — carefully arranging what sits in the surrounding memory — Calif demonstrated the corruption can route to running the attacker’s own commands, without any password, in widely deployed products including Keycloak, Jira, Confluence, Jenkins and PingFederate. Authenticated execution was shown in Kafka, Solr and Elasticsearch, and the researcher known as samczsun showed a malicious server alone can compromise Java clients that connect to it.

Java’s footprint makes the patching clock urgent. Calif counts the OpenJDK runtime running at 90 percent of Fortune 500 companies, and the decoder at issue is part of the standard library, not an optional module. The Hacker News reported Oracle’s November update covered 11 Java flaws; Oracle shipped the Java4Shell fix on the same day Calif published its details, an unusually tight same-day turnaround for a coordinated disclosure of a 9.2-rated runtime flaw.

The AI pipeline behind it

The disclosure’s most consequential passage is about method, not the bug. In Calif’s write-up, director Quang Luong describes the team first investing effort in building pipelines and strategies, then directing AI agents to use those pipelines for initial exploitation — “afterwards, most of the later chains are built almost autonomously with AI”, the group says. Calif calls this the era of the centaur hacker: “AI brings the horsepower. Our researchers bring the context. The best hacker today is neither AI nor human.” The write-up frames Java4Shell as a sequel — the group says it used AI the same way to find and weaponize PHP2Shell, a flaw it disclosed earlier this year.

The claim matters because of what used to be slow. Finding a memory-corruption bug in hand-written SIMD code, then building a heap-grooming exploit chain reliable enough to demonstrate against enterprise software, is specialist work that historically took weeks of expert effort per target. Calif’s account of the pipeline — build the strategy once, let agents grind through the initial exploitation, mostly automate the later chains — describes that work as a directed workflow, and it raises the liability questions we have tracked as AI agents move into security work. We covered a related dynamic in February: an AI coding tool found a real Snowflake security flaw through code review, and the question then was whether AI on the defence side finds flaws faster than adversaries. Java4Shell shows the offence side running the same playbook, on the same schedule, and — per Calif’s account — with most of the later chain-building automated.

The Oracle tension

The disclosure also lands inside a running argument at Oracle itself. In August we covered OpenJDK’s prohibition on AI-written contributions — the open-source project behind Java now refuses AI-generated code, citing intellectual-property and security risks, even as Oracle, the project’s corporate sponsor, pours tens of billions into AI infrastructure. Java4Shell sharpens that picture: the project’s human-written code is being probed and broken by AI agents from the outside, while its maintainers are asked to review AI-written fixes from the inside. The same-day patch suggests the guardrails that work here are institutional — disclosure norms, fast vendor response — rather than anything in the code.

For New Zealand, Java’s presence is the practical part. Java servers sit behind a large share of the software NZ banks, telcos and government agencies run — much of it long-deployed and slow to upgrade — and the vulnerable decoding path runs on the x86 chips those systems overwhelmingly use. Rapid7’s write-up recommends patching the Java runtimes serving untrusted HTTP traffic first, which lands for most NZ operators as: fix the internet-facing Java services before the internal ones, and assume the exploit details being public means the window is already open.

FAQ

What is Java4Shell? CVE-2026-114938, a memory-corruption flaw rated 9.2 in OpenJDK’s accelerated Base64 decoding path (AVX-512), demonstrated by Calif Research as pre-authentication remote code execution in products like Keycloak, Jenkins, Jira and Confluence.

Do I need to patch if I run Java on ARM64? The vulnerable SIMD path runs on chips supporting AVX-512; ARM64 systems are unaffected, per Rapid7. Patch anyway — mixed-architecture estates and x86 services are where the exposure sits.

Did AI find the bug on its own? No. Calif describes a human-directed process: researchers built the pipelines and strategies, then set AI agents to work through them for initial exploitation, with later chains “built almost autonomously with AI”. The company calls this blend the “centaur hacker”.

Has the flaw been exploited in the wild? No in-the-wild exploitation has been reported at the time of writing; the demonstrations that are public are from Calif’s lab setup and independent researchers, and Oracle shipped a fix on disclosure day.


— CJ Murden, editor of Singularity.Kiwi. Former digital technologies teacher, author of AI-focused books.