跳到主内容
@wquguru
精选88Hacker News Best(web_list)行业动态多源精选 ×4

Wiz利用前沿AI发现PHP核心严重RCE漏洞

PHP2Shell: AI uncovers critical RCE in PHP

原文
发到 X
推荐理由

揭示了AI如何实质性降低高危漏洞利用门槛,对Web安全从业者有重要警示意义,建议立即检查PHP版本并应用补丁。

Executive Summary

执行摘要

  • Wiz Research uncovered multiple critical vulnerabilities in core PHP, a popular general-purpose scripting language that powers 70% of all websites in the world. Successful exploitation could allow attackers to take control of affected servers, steal sensitive data, and deface the websites running on them.
  • PHP is a backbone of the web: it’s the programming language powering WordPress, Joomla, Drupal, Wikipedia’s MediaWiki, and many others.
  • These vulnerabilities include memory disclosure and unauthenticated remote code execution in PHP itself, independent of the application running on top of it, putting every affected website in immediate risk.
  • Every PHP version released in the last decade is affected by at least one of these vulnerabilities, going back to version 5.4. Attackers can exploit them remotely, in some cases fairly easily. Immediate patching is strongly advised.
  • On October 21, 2026, PHP released the patch fixing multiple memory-safety vulnerabilities in the core engine.
  • These findings rank among the most severe vulnerabilities discovered in PHP, and arguably in software history. The underlying flaws had been present for decades, but demonstrating their exploitability required an exceptionally complex chain of steps, at the edge of what human researchers could practically achieve. Frontier AI models substantially reduced that barrier, turning a longstanding flaw into an exploit.
  • Wiz 研究团队在核心 PHP(一种流行的通用脚本语言,支撑着全球 70% 的网站)中发现了多个严重漏洞。成功利用这些漏洞可能使攻击者控制受影响的服务器、窃取敏感数据,并对在其上运行的网站进行篡改。
  • PHP 是互联网的基石:它是驱动 WordPress、Joomla、Drupal、维基百科的 MediaWiki 等众多平台的编程语言。
  • 这些漏洞包括 PHP 自身中的内存泄露和未经身份验证的远程代码执行,与在其之上运行的应用程序无关,从而使每个受影响的网站立即面临风险。
  • 过去十年发布的每个 PHP 版本都至少受到其中一个漏洞的影响,最早可追溯至 5.4 版本。攻击者可以远程利用这些漏洞,在某些情况下甚至相当容易。强烈建议立即打补丁。
  • 2026 年 10 月 21 日,PHP 发布了修复核心引擎中多个内存安全漏洞的补丁。
  • 这些发现属于在 PHP 乃至软件历史上发现的最为严重的漏洞之一。底层缺陷已存在数十年,但证明其可被利用需要极其复杂的步骤链,这几乎达到了人类研究人员实际能力的极限。前沿 AI 模型大幅降低了这一门槛,将长期存在的缺陷转化为可利用的漏洞。

Overview

概述

In this post, we explain how frontier AI helped us find and fix vulnerabilities that had remained hidden in the PHP codebase for more than a decade. The issues described below all stem from key architecture decisions, some made over a decade ago, and were grouped under two CVEs, with severity reaching CVSS 9.2. The work grew into a cross-industry effort to protect customers, find variants, deploy detections and mitigations, and verify a patch in time for coordinated disclosure.

在本文中,我们解释了前沿 AI 如何帮助我们发现并修复隐藏在 PHP 代码库中长达十余年的漏洞。下文描述的所有问题均源于关键架构决策,其中一些决策是在十多年前做出的,并被归入两个 CVE 编号,严重程度最高达到 CVSS 9.2。这项工作演变为一项跨行业协作,旨在保护客户、查找变体、部署检测和缓解措施,并在协调披露前验证补丁。

Nearly every PHP version is affected by at least one of these issues, including releases dating back to PHP 5.4. The vulnerabilities can allow unauthenticated attackers to execute code on affected servers or read sensitive process memory. That memory may contain passwords, authentication tokens, API keys and certificates belonging to other requests or the server itself.

几乎所有 PHP 版本都至少受到其中一个问题的影响,包括可追溯至 PHP 5.4 的发行版。这些漏洞可能允许未经身份验证的攻击者在受影响的服务器上执行代码或读取敏感的进程内存。该内存可能包含其他请求或服务器本身的密码、身份验证令牌、API 密钥和证书。

PHP is the programming language behind much of the web, powering WordPress, Drupal and MediaWiki, the software that runs Wikipedia. A flaw in its core engine can affect websites across this ecosystem, even when their own application code is secure.

PHP 是支撑互联网大部分应用的编程语言,为 WordPress、Drupal 和 MediaWiki(运行维基百科的软件)提供动力。其核心引擎中的缺陷可能会影响整个生态系统中的网站,即使它们自身的应用代码是安全的。

Some vulnerabilities become turning points because they challenge fundamental assumptions about security. In 2014, Heartbleed exposed the fragility of shared infrastructure securing the internet. In 2021, Log4Shell revealed how deeply embedded software dependencies could create widespread exposure that organizations struggled to identify. We believe PHP2Shell could mark a similar turning point for the AI era, illustrating how AI can change the practical exploitability of longstanding vulnerabilities. Building the exploit required chaining multiple flaws and adapting to each target’s memory layout through repeated testing and debugging. Frontier models were critical to making this process practical, enabling us to develop and adapt working exploits across multiple applications in hours. As the time and expertise required for this work decrease, complexity may no longer provide a meaningful barrier, changing how we define what is vulnerable in practice.

某些漏洞之所以成为转折点,是因为它们挑战了关于安全性的基本假设。2014 年,Heartbleed 暴露了保护互联网的共享基础设施的脆弱性。2021 年,Log4Shell 揭示了软件依赖项的深度嵌入如何造成组织难以识别的大范围暴露。我们认为 PHP2Shell 可能标志着 AI 时代的类似转折点,展示了 AI 如何改变长期存在的漏洞在实际利用中的可行性。构建该漏洞利用程序需要链接多个缺陷,并通过反复测试和调试适应每个目标的内存布局。前沿模型对于使这一过程变得切实可行至关重要,使我们能够在数小时内开发并适应适用于多种应用程序的有效漏洞利用程序。随着完成此项工作所需的时间和专业知识减少,复杂性可能不再构成有意义的障碍,从而改变我们对实际中何为易受攻击的定义。

Wiz Research would like to thank the PHP team, Calif and OpenAI for their work on discovery, coordination and patch verification. OpenAI and Calif also published blogs containing details on the vulnerability – its history, technical details, and insight into the disclosure process. PHP posted as well.

Wiz Research 感谢 PHP 团队、Calif 和 OpenAI 在发现、协调和补丁验证方面所做的工作。OpenAI 和 Calif 还发布了包含漏洞细节的博客文章——包括其历史、技术细节以及对披露过程的见解。PHP 也发布了相关内容。

We’d also like to express our sincere gratitude towards Automattic, Akamai, AWS, Cloudflare, Fastly, Google, Imperva, Microsoft, Vercel, and many others, for helping prepare guidance and out-of-the-box mitigations for customers who cannot apply the patch immediately.

我们还要向 Automattic、Akamai、AWS、Cloudflare、Fastly、Google、Imperva、Microsoft、Vercel 以及许多其他公司表示诚挚的感谢,感谢他们帮助为无法立即应用补丁的客户准备指导方针和开箱即用的缓解措施。

The Vulnerabilities

漏洞详情

All of the disclosed vulnerabilities are memory-safety issues that stem from bugs in how PHP handles fatal errors while processing requests, particularly out-of-memory errors. These bugs can leave a corrupted internal PHP state behind after a request ends unexpectedly. A later request or worker can reuse that stale state, leading to memory disclosure or corruption.

所有披露的漏洞都是内存安全问题,源于 PHP 在处理请求时处理致命错误(特别是内存不足错误)的方式中的缺陷。这些缺陷可能导致请求意外结束时留下损坏的内部 PHP 状态。后续的请求或工作进程可以重用该陈旧状态,导致内存泄露或损坏。

Below you can find a table that demonstrates what type of impact was demonstrated by each of the bugs we reported to PHP. The applications listed below are targets we chose for the RCE demonstrations. They are representative targets - exploitation does not require one of these CMSs, as the vulnerable code is in PHP itself.

下表展示了我们报告给 PHP 的每个缺陷所演示的影响类型。以下列出的应用程序是我们选择用于远程代码执行(RCE)演示的目标。它们是代表性目标——利用不需要其中任何一个 CMS,因为易受攻击的代码存在于 PHP 本身之中。

Tracking IDBugWhat an attacker can achieveWhat we demonstratedCVE-2026-109618

跟踪 ID 漏洞 攻击者能实现什么 我们演示了什么 CVE-2026-109618

Upload-progress unserializer use-after-free

上传进度反序列化器的释放后使用漏洞

Remote process-memory disclosure

远程进程内存泄露

Corrupt process memory and execute code

破坏进程内存并执行代码

Unauthenticated disclosure of PHP worker memory

未认证的 PHP 工作进程内存泄露

Pre-authentication RCE on WordPress, Drupal and Joomla

WordPress、Drupal 和 Joomla 上的预认证远程代码执行(RCE)

Application-agnostic remote memory disclosure

与应用程序无关的远程内存泄露

CVE-2026-109619

Fatal-error backtrace use-after-free

致命错误回溯的释放后使用漏洞

OPcache type confusion

OPcache 类型混淆

Corrupt process memory and execute code

破坏进程内存并执行代码

Corrupt shared PHP state and execute code

破坏共享 PHP 状态并执行代码

Pre-authentication RCE on Drupal

Drupal 上的预认证远程代码执行(RCE)

Pre-authentication RCE on WordPress

WordPress 上的预认证远程代码执行(RCE)

While this blog covers only four instances of exploitable bugs (grouped under two CVEs) that follow this problematic pattern, there are other tracked, and likely untracked, variants of this issue in the PHP codebase. These variants have different requirements for exploitation and can lead to different types of impact. In any case, the patch provided by the PHP team fixes the issue at its core and eliminates all variants in the patched release.

虽然这篇博客仅涵盖遵循此问题模式的四个可利用漏洞实例(归为两个 CVE),但 PHP 代码库中还存在其他已追踪和可能未追踪的此类问题变体。这些变体在利用方面有不同的要求,并可能导致不同类型的危害。无论如何,PHP 团队提供的补丁从核心层面修复了该问题,并在修补后的版本中消除了所有变体。

Impact

影响

We combined these vulnerabilities into a single exploit script, php2shell, and demonstrated that it could execute code remotely without authentication on deployments of WordPress (wordpress:latest), Drupal (drupal:latest), and Joomla (joomla:latest), using their latest container images at the time of testing.

我们将这些漏洞组合成一个单一的利用脚本 php2shell,并演示了它可以在 WordPress(wordpress:latest)、Drupal(drupal:latest)和 Joomla(joomla:latest)的部署环境中无需认证即可远程执行代码,使用的是测试时最新的容器镜像。

These platforms illustrate the impact, but the vulnerabilities are in PHP itself. Exploitation does not depend on a flaw in the application’s code: even a simple “Hello World” application running on an affected PHP version can be vulnerable.

这些平台展示了影响范围,但漏洞存在于 PHP 本身。利用并不依赖于应用程序代码中的缺陷:即使在受影响的 PHP 版本上运行的简单“Hello World”应用程序也可能存在漏洞。

Separately, we demonstrated that attackers could read sensitive data from the PHP process’s memory, including passwords, tokens, and API keys, without needing to achieve remote code execution.

此外,我们演示了攻击者可以从 PHP 进程的内存中读取敏感数据,包括密码、令牌和 API 密钥,而无需实现远程代码执行。

Demonstrations of PHP2Shell with Wordpress, Joomla, and Drupal:

PHP2Shell 针对 Wordpress、Joomla 和 Drupal 的演示:

The AI inflection point

AI 拐点

The vulnerable code had been present for more than a decade. Turning these flaws into working exploits required chaining multiple bugs and accounting for how PHP allocates and reuses memory across requests. Memory bugs are notoriously complex; differences in PHP versions, configurations and application behavior can break assumptions the exploit depends on. An attack that works against one deployment may need substantial adjustments to work against another, each requiring further analysis, testing and debugging. Pre-AI, this manual work would be difficult to implement and even harder to scale.

易受攻击的代码存在已超过十年。将这些缺陷转化为可用的利用程序需要链接多个漏洞,并考虑 PHP 如何在请求之间分配和重用内存。内存漏洞以复杂著称;PHP 版本、配置和应用程序行为的差异可能会破坏利用所依赖的假设。在一个部署中有效的攻击可能需要大幅调整才能在另一个部署中生效,这需要进一步的分析、测试和调试。在 AI 出现之前,这种手动工作难以实施,更难规模化。

With AI this is no longer a barrier. LLMs can help adapt an exploit to different PHP versions, configurations and memory layouts. With testing and debugging tools, models can analyze failures and iterate on adjustments, reducing the specialist effort required for each target. This significantly lowers the barrier to scaling attacks across different deployments.

有了 AI,这不再是障碍。大型语言模型(LLMs)可以帮助将漏洞利用代码适配到不同的 PHP 版本、配置和内存布局中。借助测试和调试工具,模型可以分析失败原因并迭代调整,从而降低针对每个目标所需的专业人力投入。这显著降低了在不同部署环境中规模化攻击的门槛。

This changes the economics of both discovery and exploitation. As AI reduces the effort needed to develop and adapt complex exploits, vulnerabilities that once seemed impractical to exploit become viable targets.

这改变了发现与利用的经济性。随着 AI 减少了开发及适配复杂漏洞利用所需的精力,那些曾经被认为难以利用的漏洞变得可行且成为潜在目标。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →