Cloudflare has released six managed rules for its Web Application Firewall (WAF) to help protect against Java4Shell, a critical vulnerability tracked as CVE-2026-114938. The flaw sits in OpenJDK's Base64 decoder, which converts Base64-encoded data back into usable information. Cloudflare describes it as a memory-corruption issue that can lead to remote code execution, meaning an attacker may be able to run malicious code on a vulnerable system.
What the rules do
The new rules are available to Cloudflare's paid plans. By default, they log requests that match the flaw. This gives security teams a record of potentially suspicious traffic, but the rules are not a substitute for fixing the vulnerable software.
What Cloudflare advises
Cloudflare's advice is direct: patch Java runtimes now. For organisations that cannot patch immediately, the WAF rules provide visibility into matching requests while remediation is planned.
