Sixty-five characters

Sixty-four letters "A" and one "=". That is the whole input. On a recent Intel Xeon or AMD EPYC server running 17, 21, 25 or 27, a string like that, decoded as , made the Java virtual machine write 62 bytes past the end of a buffer. With some craft around it, that write became a way to read memory the attacker should never see, and a way to run code. On 17 November OpenJDK and Oracle published the fix, -2026-114938, which its discoverers named Java4Shell.

The detail, the dates and the sources are in the Learn article on Java4Shell. This post is about what the event says.

The safe language and what sits under it

For thirty years I have told students that one of Java's gifts is that it manages memory for you. You cannot write past the end of an array in Java: the language checks, every time, and throws an exception instead. That is still true. What Java4Shell shows is where the promise stops. The virtual machine that enforces those checks is itself written in C, C++ and, for its fastest paths, hand-written assembly, and none of those check anything for you.

The flawed code is an intrinsic: a routine the virtual machine swaps in for an ordinary Java method because the processor can do the job faster. Here it decodes Base64 using AVX-512 VBMI, instructions that only recent processors have, and the bug sat in the part that handles the last few characters. That is the uncomfortable part. Almost nobody needed Base64 to be that fast. A service decoding a session token or a login header gains nothing measurable. But the optimization ships to every Java on every capable processor, and so did the flaw.

The researchers who found it make the same point, more bluntly: code you never needed is still code you have to defend. I would put it in the terms I use in class about network devices. Every feature switched on is attack surface, and the cheapest hardening is the feature you turn off.

A crash in June, a fix in October, a CVE in November

What interests me most is the timeline. Someone hit this bug in public in June, as an ordinary crash. In October it was fixed in OpenJDK's main repository under a quiet title about Base64 optimization. It became a vulnerability on the record only on 17 November, with an advisory, a score and a name.

That is not a scandal. Fixing quietly and disclosing in a coordinated release is how most serious flaws are handled, and the distributors did their part well: Temurin, Red Hat and Ubuntu had fixed builds within about a day, and Microsoft, Azul and Amazon list theirs too. But it is a reminder for anyone who triages crashes. A process that dies on malformed input is a report, whether or not anyone files it as a security bug, and a crash that only happens on certain processors is exactly the kind people close as "cannot reproduce".

Found by a machine in an hour

By the discoverers' own account, an AI agent asked to audit the Java virtual machine's x86-64 intrinsics found this bug within an hour, a first working exploit followed in two more, and the cost was under 200 dollars. The same team, a month earlier, was behind PHP2Shell.

I do not think the lesson is fear. I think it is arithmetic. Code that was safe because nobody had the time to read it closely is no longer safe for that reason. Reading it closely has become cheap, for defenders as much as for attackers, and the defenders who use that first will spend the next years fixing their own code before someone else reads it for them.

What I would do this week

If I ran Java anywhere, this is the list, in this order:

  1. Find every Java runtime, not every application. Servers, containers, build agents, and above all the runtimes bundled inside appliances and commercial software, which the host's never touches.
  2. Check the processors. The flaw needs x86-64 with AVX-512 VBMI; on Linux, all four flags avx512f, avx512bw, avx512vbmi and bmi2. and older x86-64 hosts are not exposed, which tells you where to start.
  3. Update to the ".1" releases: 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, or your 's build of them. OpenJDK's Java 8 and 11 are not affected, but Oracle's own list of affected versions includes one Java 8 build, Java SE 8u511b33-perf, of its Java SE 8 Enterprise Performance Pack (read 2026-11-24, 11:07).
  4. Rebuild the images. A container that carries its own Java stays vulnerable after the host is patched.
  5. If a patch must wait, use the flag with care. -XX:-UseBASE64Intrinsics takes the flawed routine out of the path, but only on x86-64: on ARM, the virtual machine will not start with it. Test it where it will run, never fleet-wide by default.
  6. Watch the catalogue. On 23 November the flaw was not in CISA's list of exploited vulnerabilities. With a trigger this short and a public , I would not count on that lasting.

The part that does not change

Java will keep its promise for the code written in it. The work is remembering that every safe language runs on something that is not, and that the speed we ask of it is paid for in code few people read. Now that reading has become cheap, it is worth making sure we are among the ones doing it.

CVE Watch follows this vulnerability, with its scores, exploitation status and fixed versions read from the sources, each with the time it was read: CVE-2026-114938.