Cloudflare adds WAF rules for Java4Shell
Published:
Cloudflare has introduced rules to detect attack patterns targeting the OpenJDK Java4Shell vulnerability. The rules do not replace a Java runtime update.
Cloudflare has released managed WAF rules for attack patterns associated with Java4Shell (CVE-2026-114938). The vulnerability affects OpenJDK's Base64 decoder and, according to Cloudflare, can be exploited remotely to corrupt memory and execute code. The rules are available on Pro, Business and Enterprise plans and initially log matches by default rather than blocking them. This reflects the possibility that legitimate application-specific token formats could trigger false positives. Administrators can review matches in Security Events and switch the action to block after checking their traffic. Cloudflare stresses that a WAF cannot observe every attack path and that updating the Java runtime is necessary for a complete fix.
Why it matters
Security teams need to review logged matches before deciding whether to switch the rules to blocking. Updating the Java runtime remains necessary.
Source retrieved: 2026-12-02