Cloudflare adds six firewall rules against critical Java flaw Java4Shell
The rules log suspicious Base64 traffic on paid plans by default, but Cloudflare says patching Java runtimes remains the complete fix.
EDITOR | Wednesday 18 November 2026 | World

Cloudflare has released six managed web application firewall (WAF) rules to help customers guard against Java4Shell, a critical flaw in OpenJDK, the open source version of Java. The flaw is tracked as CVE-2026-114938 and scores 9.2 out of 10 on the CVSS 4.0 severity scale.
Calif disclosed the problem on 17 November 2026. OpenJDK published its advisory and Oracle released patches the same day. The flaw sits in the Base64 decoder, the code that turns encoded text back into data, and a remote attacker needs no credentials. Cloudflare says it has no indication that Java4Shell was exploited on its own infrastructure.
Systems are affected only if they run OpenJDK 17.0.6 or newer on x86-64 processors with AVX-512 VBMI support, and the application decodes untrusted Base64 with the standard Java decoder. ARM64 processors are not affected. Many distributions are covered, including Amazon Corretto and Eclipse Temurin.
The six rules sit in the Cloudflare Managed Ruleset and look for malformed Base64 in headers, query values, body values, path segments, JWT components and WebAuthn values. They are available on Pro, Business and Enterprise plans and are enabled by default with the Log action, to avoid blocking legitimate traffic. A rule for the Free plan is in development.
Cloudflare advises customers to patch every Java runtime, including those bundled in applications and container images, and then restart the services that use them. Where patching must wait, Calif documents JVM flags that disable the vulnerable path, though they may reduce performance. Customers should check the rule matches in Security Events and switch the action to Block if the traffic is not legitimate.