Java4Shell: How One Piece of Text Could Let Hackers Take Over Java Apps Without a Login
Java's Base64 decoder, which turns encoded text back into data, has a fast route that writes past its memory; Oracle's 17 November update fixes it.
01What is Java4Shell?
An attacker who can reach one of your Java apps sends it a carefully crafted piece of text. They need no account and no password. Inside Java, that text can corrupt memory and, according to CISA, let the attacker run their own code on your server.
This is Java4Shell. On 17 November 2026, CISA and Canada's Cyber Centre told organisations to apply Oracle's security update immediately. No attacks have been reported so far. But the details are already out: Calif, the security firm that found the flaw, published how it works, along with test code, on the same day. Calif says it has used the flaw to run its own code inside widely used Java apps, and is holding those attack tools back until people have upgraded.
02How does the Java4Shell Base64 flaw work?
Base64 turns data into plain letters and numbers so it can travel inside web messages. It carries login tokens, passkey sign-ins and uploaded files. Java has a built-in Base64 decoder that turns those letters back into data.
On Intel and AMD server chips with a feature called AVX-512 VBMI, Java switches the decoder to a faster route. This piece calls it the fast route.
Crafted text sent into the fast route makes it write past the memory set aside for it. Canada's Cyber Centre lists what can follow: the app crashes, private data leaks, or the attacker's code runs.
Your app's own checks do not help. Datadog Security Labs, cited by Cloudflare, found that the damage happens before the app can look at the text and reject it.
-
1The attack
- An attacker with no login sends your Java app Base64 text.
- The server's AVX-512 VBMI chip sends it down the fast route.
-
2Where it breaks
- The fast route writes past its memory before your app checks.
- The attacker's code now runs on your server.
-
3The fix
- Oracle's 17 November update replaces the flawed Java.
- A restart puts the fixed Java into the running app.
- The same text arrives; memory holds, and the app rejects it.
-
4Find and patch
- Find every copy of Java: servers, containers, appliances, vendor software.
- Patch internet-facing apps first, restart, and check the version.
-
5Guard and watch
- Can't patch yet? Turn off the chip feature, or go offline.
- Watch for Java crashes, and ask vendors when fixes ship.
03How do I fix Java4Shell?
Oracle released fixed versions of Java on 17 November 2026: 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. Java from other vendors, such as Amazon, Azul, Microsoft, Red Hat and Linux distributions, gets its own fixed versions with different numbers.
Installing the update is not enough. A Java app that is already running keeps using the old, flawed copy until it is restarted.
If you cannot patch yet, Canada's Cyber Centre suggests the Java setting -XX:UseAVX=2. It stops Java using the AVX-512 chip feature, and with it the fast route. Cloudflare began switching off the fast route across its own Java systems about an hour after the patches came out, and reports no signs of attacks.
04What to do this week
- Find every copy of Javaon servers, in containers, in appliances and inside software bought from vendors. CISA warns that Java bundled inside other products may not appear in software inventories.
- Check your chipson Linux, Canada's Cyber Centre gives the check: lscpu | grep avx512. Servers without AVX-512 VBMI are not exposed to this flaw; patch them in your next routine round.
- Patch internet-facing apps firstthen the rest. Restart them, and confirm the new version is the one running.
- Where you cannot patch yetapply the setting above. If that is not possible either, take the app off the public internet until it is fixed.
- Treat crashes as warningsan unexpected Java crash is a warning sign, CISA advises. Investigate it rather than restarting and moving on.
- Ask your vendorsfor each product that contains Java, ask whether it is affected and when its fix ships. Track the answers until every system is fixed.
05Our view
Track each copy of Java as its own entry in your software inventory, and set up alerts for unexpected Java crashes. This could help organisations find where they are exposed to the next flaw like this, and respond within hours rather than days.
06Takeaway
A fix is available, and no attacks have been publicly reported so far. How the flaw works, and test code for it, are already public, so that may not last. Patch, restart and verify this week.
What it doesn't do yet
- Only x86-64 servers whose chips support AVX-512 VBMI are exposed.
- Attack status was checked on 20 November 2026 and may have changed since.
- Java 8 and 11 are left out of the version list because sources disagree on whether they are affected.
- Severity scores differ between early reports and Oracle, and the official CVE record was not yet published when we checked.
- Oracle's own advisory could not be reached; fixed versions come from Canada's Cyber Centre and Cloudflare.