
Fifteen years building engineering platforms, currently focused on advanced AI infrastructure at yeet. I love turning the deeply complex topics into something everyone can understand. I relate deeply with the core yeet philosophy that you can just build things.
Last updated: November 2026
I'm an engineer at yeet, and the part of it this post touches is the programmable firewall, which is one of the options below.
Quick answer. The fix is openJDK 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1. Unusually for a bug of this kind, there is also a real workaround: starting every JVM with
-XX:-UseBASE64Intrinsicsremoves the vulnerable code path, and red hat calls it the preferred option. The catch is that it is a JVM start flag, so it needs a restart of every java process and, in containers, a recreation rather than a restart. If that cannot happen tonight, a rule on each origin host can refuse the malformed Base64 shape before any JVM decodes it. Java4Shell has no confirmed exploitation as of 23 november 2026 and is not on CISA's KEV list, so the window here is real.
Java4Shell is CVE-2026-114938, a heap buffer overflow in the Base64 decoder the openJDK hotspot JVM uses on x86-64 CPUs with AVX-512 VBMI. A malformed Base64 string sent to a java service that decodes it makes the JVM write past the end of an array, which can crash the service and, with an exploit built for the specific application, leak memory or run code without a login. The Java4Shell reference page carries the affected versions, the four-line patch and the check commands.
This post is about the operational shape of the response, which is stranger than most. There is a fix you can apply without upgrading anything, and applying it is harder than it sounds, because it changes how a JVM starts rather than what it runs. That one detail reorders the whole plan.
Five, and unlike most CVEs in this family the list includes a genuine vendor-endorsed workaround rather than only stopgaps. That changes the shape of the decision: the question is not which partial control to stack, but how quickly you can get a restart through every java service you run.
| Route | How fast it lands | Needs a JVM restart | Sees requests that skip your CDN or WAF | What its own source says |
|---|---|---|---|---|
| A virtual patch on each origin host, such as the yeet programmable firewall | under a minute to install, 3 to 6 ms to apply the rule | No | Yes, east-west included | cleartext only, so TLS terminates upstream of the host |
| Edge or gateway WAF rule on the malformed Base64 shape | minutes, if you already route through one | No | No | cloudflare: "not a replacement for the patch", defaults to Log |
Start every JVM with -XX:-UseBASE64Intrinsics | a rolling restart | Yes, and containers must be recreated | n/a, it removes the code path | red hat: "the preferred option", keeps other AVX-512 optimizations |
Start every JVM with -XX:UseAVX=2 | a rolling restart | Yes | n/a | x86 only; turns off all AVX-512, not just Base64 |
| Run on ARM64 or x86-64 without AVX-512 VBMI | a migration | n/a | n/a | red hat: such systems "do not require either flag" |
This is the only option that blocks the attack without restarting a single JVM, which is the whole difficulty with this bug. Both vendor flags work, and both of them need every java process to stop and start again before they take effect anywhere.
The indicator is better than usual, for a reason worth understanding. Valid Base64 always has a length divisible by four. The trigger for Java4Shell is a string of 64 characters on most JDKs, or 128 on the JDK 17 branch, followed by one to three more characters ending in =, which puts padding where valid Base64 never has it. As CrowdSec puts it, "Valid Base64 always has a length divisible by 4, so legitimate tokens cannot match." The malformed shape is the attack, not an approximation of it.
Put the rule on the origin host rather than at the edge and it sits behind your TLS termination, so it reads the same cleartext the JVM is about to decode, and it covers every route into that machine: service-to-service calls carrying tokens, requests addressed to the host directly, and internal java services that were never behind an edge at all.
Two properties matter tonight. The rule is data for an already-verified kernel program rather than a new program each time, so it can be exercised against both the trigger shape and a corpus of your own tokens in CI before it touches traffic. And getting there is quick: installing the runtime on a host takes under a minute, and applying a rule is a compile and an atomic swap into the running program, measured at 3 to 6 milliseconds in our lab, with no JVM restarted and no container recreated.
Run it in monitor mode first regardless. Cloudflare ships its own Java4Shell rule in Log mode by default, "because malformed input and some benign application-specific token formats can resemble exploitation attempts", and that caution is worth inheriting: CrowdSec's point about valid Base64 is correct, and some applications carry token formats that were never valid Base64 to begin with.
-XX:-UseBASE64Intrinsics, the workaround that actually worksRed Hat calls this the preferred option, and for once the vendor workaround removes the vulnerable code path outright rather than narrowing the route to it. The flag disables the hardware-accelerated Base64 intrinsic, which is where the overflow lives, while leaving other AVX-512 optimizations in place. It is defined in shared hotspot code, so it works on any architecture.
The cost is in applying it, and it is larger than a flag suggests. This is a JVM start flag, so every java process has to restart to pick it up, and as CrowdSec notes, "containers must be recreated, not just restarted." On an estate of containerised java services that is a full redeploy, which puts it on the same operational footing as the JDK upgrade you were trying to avoid tonight.
Where you set it depends on the product, and getting the variable wrong means the flag silently does nothing. JAVA_TOOL_OPTIONS works for many agents, JAVA_OPTS_APPEND for the keycloak server, JDK_JAVA_OPTIONS for the keycloak operator, JAVA_OPTS for jenkins, ES_JAVA_OPTS or a file in config/jvm.options.d/ for elasticsearch, and JVM_SUPPORT_RECOMMENDED_ARGS for bitbucket. Verify on a running process rather than trusting the deployment manifest.
There is a throughput cost to decoding Base64 without the hardware intrinsic, and it applies in both directions, to encoding as well as decoding. No vendor publishes a measured number for it, which is itself worth noting when somebody asks for one. For most services the difference is noise against everything else the request does; for a service decoding Base64 in a hot path it is worth measuring on your own workload rather than assuming either way.
-XX:UseAVX=2, the blunter flagThis turns off AVX-512 entirely rather than just the Base64 intrinsic, so it also removes the vulnerable path, with a broader performance effect across anything else in the JVM that was using those instructions. It reaches the same outcome by a blunter route, and on most estates that difference is the whole argument for preferring the other flag.
Two constraints make it the second choice rather than the first. It is x86 only, and JVMs on ARM64 do not recognise the flag and will refuse to start, which on a mixed fleet means pairing it with -XX:+IgnoreUnrecognizedVMOptions so that a single setting is safe to roll everywhere. And it gives up considerably more optimization than this bug actually requires. Prefer -XX:-UseBASE64Intrinsics unless something specific about your deployment pushes you here.
Cloudflare, Traefik and CrowdSec all published Java4Shell detection, matching the trigger shape in the fields they inspect. If you already route through one of them, turning it on costs nothing and should happen immediately, whatever else you decide about the flags and the upgrade.
The limits are the familiar ones plus one specific to this bug. An edge rule sees traffic crossing the edge, so internal java services and direct-to-origin requests are outside it. It inspects the fields it knows about, so a Base64 value nested inside another encoding, carried in an upload, or arriving over a non-HTTP protocol is not covered. Traefik measured "under 1%" throughput cost for typical requests to a java service, more for large bodies. Cloudflare's own framing is that it is "not a replacement for the patch".
It blocks the shape in the fields it inspects, on the traffic that crosses it, and java services are unusually likely to sit outside both of those boundaries. The usual coverage argument applies here with more force than it does for a public web framework.
Java estates skew internal. The services decoding Base64 tokens are frequently internal APIs, message consumers and batch processors that no edge fronts, reached by other services rather than by browsers. An edge rule covers the public HTTP surface, and on a typical java estate that is a minority of the places a Base64 string gets decoded.
The second gap is where the string hides. The attack is a malformed Base64 value, and Base64 values travel inside JSON fields, authorization headers, cookies, multipart uploads, XML documents and message queue payloads. A rule inspecting known request fields covers the ones it knows.
So: turn the edge rule on if you have one, and then treat it as covering your public HTTP surface rather than your java estate. Those two are the same thing on some architectures and very different on most, and the gap between them is where the unprotected decoders are.
No confirmed exploitation as of 23 november 2026, and the honest answer about how much time that buys is that it is less certainty than it first appears. The absence of observed attacks is evidence about the present rather than a forecast, and two specific properties of this bug cut in opposite directions.
CVE-2026-114938 is not on CISA's KEV catalog. GreyNoise observed 7 IPs sending 261 requests on 23 november 2026, with zero successful intrusions, and some of that traffic identified itself with a java4shell-scanner/1.0 user agent, which is research rather than attack. The EPSS score was 0.573.
Two things temper that. The bug is hardware-conditional, needing an x86-64 CPU with AVX-512 VBMI, which narrows the vulnerable population and also means a cloud instance type change can quietly re-expose a JVM you thought was out of scope. And a working exploit needs to be built against a specific application's memory layout, which raises the skill floor without lowering the ceiling.
What that justifies is sequencing rather than deferral. It is enough time to apply the flag through a normal release process instead of an emergency one, and to roll the JDK upgrade at a sane pace behind it, provided something is covering the request path while that work proceeds.
By checking the running JVM's version and the CPU underneath it, because both conditions have to hold for a host to be vulnerable. Either one alone is a false positive, and the hardware half is the one most inventories do not record at all.
The version trap on this CVE is specific and catches people: 17.0.21 is not the fix. Versions 17.0.21 through 17.0.21.0.3 are vulnerable, and the fixed release is 17.0.21.1. A version check that stops at the third component reports the wrong answer on the branch most likely to be running.
The hardware condition is readable from the CPU flags:
grep -o 'avx512vbmi' /proc/cpuinfo | head -1
No output means that host is not vulnerable to this bug, whatever JDK version it runs, because the overflow lives in a code path the CPU cannot take. A JVM on ARM64 is likewise out of scope, and red hat confirms such systems "do not require either flag". That makes the hardware check worth running first on a large estate, since it can remove whole fleets from the work.
Two places JVMs hide. Container images bundling their own JDK need rebuilding rather than a host package upgrade. And anything that moves between instance types can move onto an AVX-512 VBMI CPU later, so "not vulnerable because of the hardware" is a statement about today's placement rather than a permanent property.
Four things, and together they decide how much of your java estate a request rule actually covers. On a public web application the answer is most of it; on an estate of internal services and queue consumers it can be considerably less.
Traffic inside TLS the host does not terminate. A rule at XDP reads what arrives at the NIC. If TLS terminates inside the JVM rather than at an edge, a load balancer or a sidecar, the rule sees ciphertext.
Base64 nested inside another encoding. A value that is URL-encoded, wrapped in a second Base64 layer, or carried inside a compressed body does not present the trigger shape to a rule reading the request bytes as they arrive. The application decodes the outer layer first and hands the inner value to the decoder, by which point no network control is watching.
Non-HTTP paths into a decoder. Java services decode Base64 from message queues, file uploads and scheduled jobs reading from object storage. A rule on HTTP request bytes covers HTTP, and a queue consumer pulling a malformed token off a topic never presents a request for it to inspect.
Application token formats that are not valid Base64. This one cuts the other way: it is a false-positive source rather than a miss, and it is why both cloudflare and this post recommend monitor mode before enforcement.
No. The flag removes the vulnerable code and a rule does not, so the rule is cover for the window before every JVM has restarted. Java4Shell is the rare bug with a real workaround and a hard rollout, and the two facts interact. The flag genuinely removes the vulnerable code, which is better than any request rule can promise, and it needs every JVM restarted and every container recreated to take effect. So sequence it: put a rule on each origin host tonight, where it covers the internal java services an edge never fronts, and run it in monitor mode until you have looked at what your own tokens do. Apply -XX:-UseBASE64Intrinsics at the next restart each service gets. Roll openJDK 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1 behind that, rebuild every image that bundles a JDK, and remember that 17.0.21 is not the fix.
Two ways, and they suit different timelines. Starting every JVM with -XX:-UseBASE64Intrinsics removes the vulnerable code path and is red hat's preferred option, but it is a start flag, so it needs a restart of every java process and a recreation of every container. For cover before that happens, a virtual patch on each origin host refuses the malformed Base64 shape before any JVM decodes it, with no restart at all. The reference page carries the versions that fix it outright.
Java4Shell is CVE-2026-114938, a heap buffer overflow in the Base64 decoder the openJDK hotspot JVM uses on x86-64 CPUs with AVX-512 VBMI. A malformed Base64 string sent to a java service that decodes it makes the JVM write past the end of an array, which can crash the service and, with an application-specific exploit, leak memory or run code without a login. The Java4Shell reference page carries the full record.
OpenJDK 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, released 17 november 2026. Note the trap on the 17 branch, because it catches version checks that stop at the third component: 17.0.21 is not the fix, since 17.0.21 through 17.0.21.0.3 are all vulnerable and 17.0.21.1 is the first fixed release. Every upgrade needs a JVM restart, and container images bundling their own JDK need rebuilding rather than a host package update.
-XX:-UseBASE64Intrinsics fully fix Java4Shell?It removes the vulnerable code path, which red hat calls the preferred option, and nothing is known to remain exposed for this CVE. Two caveats: it is lost if anyone re-adds -XX:+UseBASE64Intrinsics, and it costs some Base64 throughput in both directions, with no vendor publishing a measured number. It is a workaround rather than the patch, so the JDK upgrade still belongs on the plan.
Because the mitigation is a JVM start flag, and a container's command and environment are fixed at the moment it is created. Changing JAVA_TOOL_OPTIONS or an equivalent variable means a new container carrying the new environment, not a restart of the existing one, which would come back with the settings it was built with. On a containerised estate that turns the flag from a configuration change into a full redeploy.
No confirmed exploitation as of 23 november 2026, and it is not on CISA's KEV catalog. GreyNoise observed 7 IPs and 261 requests on that date with zero successful intrusions, some of it self-identifying as scanner traffic. Treat that as time to sequence the work properly rather than as a reason to defer it.
No. The bug is in an x86-64 AVX-512 VBMI code path, so ARM64 hosts are out of scope entirely and red hat confirms such systems "do not require either flag". Check an x86 host with grep -o 'avx512vbmi' /proc/cpuinfo, and remember that this is a statement about where a workload runs today: a container rescheduled onto a different instance type can land on an affected CPU later with an unpatched JDK.
It blocks the trigger shape in the fields it inspects, on traffic that crosses it. Cloudflare's own framing is that it is "not a replacement for the patch", and it ships the rule in Log mode by default because some benign token formats resemble the attack. Java estates skew internal, so a large share of the services decoding Base64 sit behind no edge at all.
Because valid Base64 has a length divisible by four, and the trigger does not. CrowdSec's reading is that "legitimate tokens cannot match" the shape, which is unusual: most request rules approximate a vulnerability, while this one matches a structural property real tokens do not have. Monitor mode is still worth running, because some applications carry token formats that were never valid Base64.
l7-firewall-in-the-kernel. The enforcement point described here and its measured compile-and-swap timing.