Sixty-four letter A's followed by a single equals sign are enough to make Java write past the end of an array. Hand that string to the standard Base64 decoder on a recent Intel or AMD server, once the JIT compiler has warmed the decoder up, and a few dozen bytes land in memory that belongs to something else. Java rejects the input a moment later, after the damage is done.
The bug, which the security firm Calif named Java4Shell, sits in a hand-written assembly routine that OpenJDK uses to decode Base64 faster with AVX-512 instructions. The routine miscounts the padded tail of a short input, so it writes a full block where only a few bytes belong. Calif turned that into remote code execution without a login against Jenkins, Jira, Confluence, Keycloak and Artifactory in their default setups, because sign-in flows and file uploads decode Base64 all day. The firm says its researcher found the bug by pointing OpenAI's Codex at the riskiest corners of the JVM and wading through useless findings until a real one came up. The search took about an hour on a token bill under $200. Java4Shell was the worst of ten vulnerabilities fixed in OpenJDK's latest update.
The same week, Wiz disclosed two flaws in nginx's HTTP/2 code that let an attacker run code on the server without logging in. One is a use-after-free. The other is a flow-control counter that can go negative, a bug old enough to have survived more than a decade of nginx releases. Wiz got code running through it on a server that did nothing but hand out static files. The company found both bugs with its own AI scanning harness and confirmed the impact with Gemini and OpenAI models. Four other teams found the same bugs on their own. The nginx release that fixed them closed ten security issues in one go.
Ruby followed with fixes for a batch of memory bugs in its regular-expression engine and string case conversion, several with proofs of concept for remote code execution. The neatest one comes from Veria Labs, a start-up that sells an autonomous AI pentester. In most of Ruby's legacy single-byte encodings, upcasing the German ß produces two letters, SS. The C loop that does the job checks for room for one byte before writing two, so a string with enough ß characters spills past its buffer. Veria calls the bug Ruby2ßhell and says Rails and Sinatra reach it in their default setups. PHP went through the same drill recently, when Calif and Wiz independently found the same critical bugs, each with AI help.
The basement under safe languages
Every one of these bugs lives in the unsafe basement that memory-safe software stands on. Java checks every array access in the code you write, while its own Base64 fast path is assembly. Ruby developers never free memory by hand, while C upcases their strings. nginx, written in C from top to bottom, sits in front of applications that teams wrote in safe languages on purpose. The phrase "memory-safe language" was always a claim about the code a team writes. It never covered the runtime, the web server or the regex engine underneath, which is exactly where the remaining bugs have been hiding.
The bugs also share a neighbourhood. They sit in the last few bytes of a padded Base64 string, in a German letter inside an encoding almost nobody chooses on purpose, and in a flow-control window that dips below zero under load. These are tails of tails. Reviewers skim such cases because they are dull, while tests miss them because nobody thought to write one. Human attention has always been thinnest there, which is how such bugs survive for a decade. A model does not get bored on the fourth encoding table or the ninth padding variant. Auditing those corners used to cost a specialist weeks of tedium. Now it costs an afternoon and pocket money in tokens, for attackers as much as for Calif.
Five teams, one bug
The detail that deserves the most attention is the collision. Five teams found the same nginx bugs independently, just as two teams had found the same PHP bugs before them. Coordinated disclosure assumes the finder holds a rare secret, so a few quiet weeks before the patch cost little. When discovery is this cheap, the secret has company. Anyone with the same models and the same public source code could have been the sixth team, minus the polite email to the maintainers.
For people who run software, that moves the line of defence from the scanner to the deploy pipeline. The number that matters is how long it takes to get a patched JVM, nginx or Ruby onto every machine that faces the internet. Few teams have ever measured it. Runtimes hide in base images, vendor appliances and the one Jenkins box nobody admits to owning. Upgrading a runtime still feels like a project with a ticket and a sprint. It should feel like a dependency bump that a bot opens and CI merges, rehearsed often enough that a bad week turns boring.
Every fast path needs an off switch
The most useful line in the Java write-up is a JVM flag. Starting Java with -XX:-UseBASE64Intrinsics drops the vulnerable assembly and falls back to plain Java code, which was safe all along. nginx operators had a similar lever in switching HTTP/2 off. Until patched builds reached the servers, those switches were the whole defence.
Calif's broader prescription is what it calls vibe-uncoding, using AI to find and delete the code a system does not need. The instinct is sound, but deletion at the scale of a language runtime is slow politics. Somebody's benchmark depends on that AVX-512 decoder, so removing it would bring a regression report within the hour.
The cheaper move is to treat every hand-tuned fast path like a feature flag. Ship it with a switch, document the switch, and let operators trade a little speed for a smaller attack surface when a bad week arrives. Browsers learned this years ago. Microsoft Edge has a security mode that turns off its JavaScript JIT on unfamiliar sites, since the JIT is where so many browser exploits begin.
Expect language runtimes and web servers to grow the same kind of hardened profile, with hand-written intrinsics and rarely used protocol paths off unless someone asks for them. The big clouds will be the first to flip such switches across whole fleets while patches roll out. The next test comes when Calif publishes the product-specific exploit chains it is holding back until people upgrade. By then, every JVM facing the internet should be patched or running with its fast path switched off.
