Cloudflare releases six WAF rules for Java4Shell vulnerability

  • Java4Shell
  • OpenJDK
  • Memory corruption

Cloudflare released six managed web application firewall (WAF) rules on November 17, 2026, to detect malformed Base64 input patterns linked to Java4Shell, a vulnerability in OpenJDK. The rules are available now to customers on Pro, Business and Enterprise plans.

Java4Shell, tracked as CVE-2026-114938, is a memory-corruption flaw in OpenJDK’s Base64 decoder. It can allow remote code execution when an attacker sends malformed Base64 data to an affected Java application. The vulnerability applies to OpenJDK 17.0.6 or newer running on x86-64 processors with AVX-512 VBMI support.

The rules are enabled by default in Log mode, which records matching requests without blocking them. Cloudflare says malformed input can resemble legitimate application-specific tokens, so customers can review matches before changing the action to Block.

Cloudflare says the WAF rules are an additional layer of defense, not a replacement for updating Java runtimes. The WAF cannot detect every route to the vulnerable decoder, including some internal traffic and non-HTTP protocols.