返回综合榜
安全与数据Cloudflare Blog

Cloudflare WAF 如何帮助防御 Java4Shell (CVE-2026-114938)

Cloudflare 新增了托管 WAF 规则,用于检测 Java4Shell (CVE-2026-114938) 背后的畸形 Base64 输入模式。该漏洞是 OpenJDK Base64 解码器中的严重内存损坏漏洞,由安全公司 Calif 于 2026 年 11 月 17 日披露,CVSS 4.0 评分 9.2。

漏洞位于处理 Base64 输入尾部的手写 AVX-512 汇编 intrinsic 中:位置不当的填充字符会导致计算出负的输出长度,进而变成一次完整的 64 字节写入,越过输出缓冲区末尾,在 Java 拒绝输入之前就损坏了相邻的堆内存。受影响的是在支持 AVX-512 VBMI 的 x86-64 处理器上运行的 OpenJDK 17.0.6 及更新版本(包括 Corretto、Temurin、Zulu、GraalVM、Oracle Java SE 等),ARM64 不受影响。Calif 演示了对 Keycloak、Jira、Confluence、Artifactory、Jenkins 和 PingFederate 的预认证远程代码执行,以及对 Kafka、Solr、Elasticsearch、Gerrit 和 Spinnaker 的认证后远程代码执行,并借助 AI 代理在大约三小时内完成了首个本地漏洞利用。Oracle 已于同日 21:00 UTC 在 2026 年 11 月关键补丁更新中发布修复版本。

Cloudflare 的新规则属于 Cloudflare 托管规则集,覆盖头部、查询值、请求体、路径段、JWT 组件和 WebAuthn 值中的 Base64,面向 Pro、Business 和 Enterprise 套餐,默认以 Log 模式启用,因为正常流量可能类似利用尝试。客户应先在 Security Events 中查看匹配项,再将规则动作改为 Block;Business 和 Enterprise 用户还可叠加 WAF Attack Score 来捕获多阶段利用链和后渗透流量。免费托管规则集的规则仍在开发中。

WAF 只是额外的防护层,并非修复方案:它无法覆盖嵌套或压缩的编码、Kafka 等非 HTTP 协议、出站 TLS 连接(Calif 分享了一个客户端利用)或绕过 Cloudflare 的流量。唯一的彻底补救措施是更新所有 Java 运行时,包括应用程序和容器镜像中捆绑的 JDK,并重启每个服务。如果无法立即修补,可使用 JVM 标志 -XX:-UseBASE64Intrinsics 或 -XX:UseAVX=2(仅限 x86-64)移除存在漏洞的代码路径,但会带来一定性能损失。

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

Cloudflare has added managed WAF rules to detect the malformed Base64 input patterns behind Java4Shell (CVE-2026-114938), a critical memory-corruption vulnerability in OpenJDK's Base64 decoder disclosed by Calif on November 17, 2026, with a CVSS 4.0 score of 9.2.

The flaw lies in the handwritten AVX-512 assembly intrinsic that handles the tail of Base64 input: a misplaced padding character causes a negative output length that becomes a full 64-byte write past the end of the output buffer, corrupting adjacent heap memory before Java rejects the input. It affects OpenJDK 17.0.6 or newer (including Corretto, Temurin, Zulu, GraalVM, Oracle Java SE and others) on x86-64 processors with AVX-512 VBMI support; ARM64 is unaffected. Calif demonstrated pre-authentication remote code execution against Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and post-authentication RCE against Kafka, Solr, Elasticsearch, Gerrit and Spinnaker, having built its first local exploit in about three hours with AI agents. Oracle shipped patched builds in its November 2026 Critical Patch Update at 21:00 UTC on the same day.

Cloudflare's new rules, part of the Cloudflare Managed Ruleset, cover Base64 in headers, query values, bodies, path segments, JWT components and WebAuthn values, and are available on Pro, Business and Enterprise plans, enabled by default in Log mode because benign traffic can resemble exploitation attempts. Customers should review matches in Security Events and then switch the rule action to Block; Business and Enterprise users can also layer WAF Attack Score to catch multi-stage exploit chains and post-exploitation traffic. A rule for the Free Managed Ruleset is still in development.

The WAF is only an additional layer, not a fix: it cannot see nested or compressed encodings, non-HTTP protocols such as Kafka's, outbound TLS connections (Calif shared a client-side exploit), or traffic that bypasses Cloudflare. The only complete remediation is updating every Java runtime, including JDKs bundled in applications and container images, and restarting each service. If patching is delayed, the JVM flags -XX:-UseBASE64Intrinsics or -XX:UseAVX=2 (x86-64 only) remove the vulnerable code path at some performance cost.

Java4ShellCVE-2026-114938OpenJDKWAFCloudflarevulnerabilityremote code executionpatch
综合9
质量89
猎物热度0
时效0
信息来源1 个来源,主来源:Cloudflare Blog

猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。

查看来源