Cloudflare has added new Web Application Firewall (WAF) rules that detect malformed Base64 input linked to Java4Shell, a critical flaw in OpenJDK, the most widely used Java runtime. Cloudflare says the rules are available on Pro, Business and Enterprise plans.
The rules are enabled by default with the Log action, not Block. Cloudflare says malformed input and some harmless application-specific token formats can resemble exploitation attempts, so blocking by default could disrupt legitimate traffic. Customers can review matching requests in Security Events and switch the action to Block after confirming legitimate traffic is unaffected.
Security firm Calif disclosed the flaw, tracked as CVE-2026-114938, on November 17, 2026. It scores 9.2 out of 10 under CVSS 4.0. A remote attacker with no credentials can send malformed Base64 data to a Java application and overwrite memory next to the decoded output. Calif turned that into a heap memory leak and remote code execution, and demonstrated attacks on Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate in default configurations.
Cloudflare says the WAF is an extra layer, not a replacement for the patch. Java4Shell can be reached through paths a WAF does not see, such as outbound TLS responses. Oracle released patched builds the same day, and Cloudflare says updating the Java runtime is the only complete fix.
Source: How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938) | Cloudflare Blog.