How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938)

Denzil Correa · 2026年11月18日

AI 摘要 AI 生成,可能有误

Java4Shell (CVE-2026-114938) is a critical memory-corruption vulnerability (CVSS 9.2) in OpenJDK's AVX-512-accelerated Base64 decoder that allows unauthenticated attackers to overwrite heap memory and achieve remote code execution, demonstrated against applications like Keycloak, Jira, Confluence, Jenkins, and others. Cloudflare has released new WAF managed rules (enabled in Log mode by default on paid plans) to detect the malformed Base64 input patterns, complemented by ML-based WAF Attack Score to catch multi-stage exploit chains and post-exploitation traffic. However, the WAF is only an additional layer of defense and cannot cover all exploitation paths, so the only complete fix is to update the Java runtime to patched OpenJDK builds.

On November 17, 2026, the security research company Calif disclosed Java4Shell (CVE-2026-114938), a memory-corruption vulnerability in the Base64 decoder of OpenJDK, the most widely used Java runtime. Under the Common Vulnerability Scoring System (CVSS) 4.0, it scores 9.2 out of 10 (Critical). The flaw affects Java. OpenJDK published a security advisory and Oracle released patched builds in its November 2026 Critical Patch Update the same day, at 21:00 UTC.

The vulnerability lets a remote attacker with no credentials send malformed Base64 data to a Java application and overwrite memory next to the decoded output. Calif turned that overwrite into a leak of heap memory, similar to Heartbleed, and into remote code execution. Calif demonstrated pre-authentication remote code execution against Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins and PingFederate in their default configurations, and post-authentication remote code execution against Apache Kafka, Apache Solr, Elasticsearch, Gerrit, and Spinnaker.

Cloudflare has released a new set of rules in the Cloudflare Managed Ruleset designed to detect malformed Base64 input patterns associated with this vulnerability. The rules are available on Pro, Business and Enterprise plans and are enabled by default with the Log action because malformed input and some benign application-specific token formats can resemble exploitation attempts. Blocking by default could therefore disrupt legitimate traffic. Customers can review matching requests in Security Events now and change the rules action to Block once they confirm it does not affect legitimate traffic. 

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 The Cloudflare Blog

Varlock is joining Cloudflare

AI 摘要Varlock, an open-source toolkit for managing environment variables and secrets, is joining Cloudflare while remaining MIT-licensed, vendor-neutral, and actively developed. Varlock's .env.schema approach provides validation, type safety, and secure declarative secret loading as a single source of truth, and planned hosted Varlock features will be redirected into Cloudflare Secrets Store instead. The article also highlights the growing urgency of secrets management in the AI era, outlining work on agentic workflows, credential brokering, and pushing .env.schema as a broader open standard.

Post-quantum cryptography is still safe

AI 摘要Anthropic published theoretical research describing quantum algorithms for the lattice problems (Module-LWE and Module-SIS) underlying post-quantum cryptography standards ML-KEM and ML-DSA, prompting Cloudflare to reassure users that deployed cryptosystems remain secure. The proposed attacks are impractical because they would require quantum computers with billions of qubits—far beyond today's technology—and have runtime so large they qualify as 'galactic algorithms,' with no practical threat indicated. Cloudflare views AI-assisted cryptanalysis as a way to strengthen confidence in cryptography by finding and addressing risks faster, and it continues its post-quantum migration, with 73% of human traffic to Cloudflare now post-quantum encrypted.

Introducing Search for Agents

AI 摘要Cloudflare has introduced Search for Agents, a feature that automatically creates an AI Search instance for a zone, crawls and indexes its content, and exposes a search API from the customer's own domain—removing the need for manual setup and integration. The search endpoint is advertised to AI agents via metadata in HTML pages or YAML front matter when Markdown for Agents is enabled, and it returns retrieved content in Markdown while natively supporting the new HTTP QUERY method. The feature is available to all customers (with limits on Free plans) and follows existing AI Search pricing and configuration options.

Probing DNS at Cloudflare

AI 摘要The article describes how Cloudflare's DNS team extended Flamingo, its internal end-to-end testing framework built in Rust with a modular architecture, to continuously probe DNS record propagation in production from every data center. The DNS module measures how quickly record changes reach authoritative nameservers and the 1.1.1.1 public resolver, feeding these measurements into SLOs and error budgets that can automatically halt or roll back releases when issues appear. This approach addresses DNS failures that are slow, distributed, and partial, and Flamingo's extensibility opens the door to testing other protocols like TCP, UDP, and WebSockets.

How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)

AI 摘要Ruby disclosed ruby2shell (CVE-2026-132825), a critical heap buffer overflow in string case conversion involving legacy single-byte encodings and the German sharp s (ß), which can enable pre-authentication remote code execution in default Rails and Sinatra applications and is fixed in Ruby 3.3.14, 3.4.13, and 4.0.10. Cloudflare WAF now blocks the vulnerability—and a related integer overflow (GHSA-87fm-7w84-j2px)—for all customers, including those on the Free plan, though the WAF is only a compensating control and upgrading Ruby remains the complete fix. Cloudflare has patched its own Ruby systems with no indication of compromise, and urges users to upgrade Ruby runtimes, rebuild container images, and update bundled products like GitLab and Mastodon before public proof-of-concept exploits appear.