PHP2Shell
CaelLab 的 Phabricator 在漏洞修补前暂停服务的公告 | |
| 类型 | 计算机安全漏洞 |
|---|---|
| CVE 编号 | CVE-2026-109618、CVE-2026-109619 |
| CVSS 评分 | 9.2(CVSS 4.0,严重) |
| 发现日期 | 2026年8月 |
| 公开日期 | 2026年10月20日 |
| 修补日期 | 2026年10月21日 |
| 发现者 | Calif、OpenAI、Wiz |
| 影响软件 | PHP 5.4 至 8.5 |
| 网站 | php2shell.com |
PHP2Shell 是 2026 年公开的两项 PHP 高危漏洞的合称,编号分别为 CVE-2026-109618 和 CVE-2026-109619。两者都是 PHP 解释器中的内存安全问题,影响 PHP 5.4 至 8.5 版本,可导致远程代码执行(RCE)。PHP 是使用最广泛的服务器端编程语言之一,这两项漏洞在公开时被认为可能影响全球约七成的网站。
漏洞由美国安全公司 Calif 的研究者借助人工智能发现,以色列与美国的云安全公司 Wiz 也独立发现了同样的问题。PHP 维护团队于 2026 年 10 月 20 日提前公布消息,次日在发布紧急补丁的同时公开了漏洞细节[1][2]。由于影响范围大,多国网络安全机构建议无法立即更新的机构将网站临时下线,维基媒体基金会、互联网档案馆等网站以及日本多家网络服务在修补期间暂停了服务[3][4][5]。
背景
PHP 5.4 于 2012 年发布,这两项漏洞从那时起便存在于 PHP 的源代码中[6]。内存安全方面的问题在更早的时候就有人指出,但当时认为实际利用并不可行,因此没有采取行动[7][8]。2024 年,一名 PHP 核心开发者在安全审计中发现了其中一个漏洞背后的内存耗尽(out-of-memory)错误,但开发团队未能就修复方式达成一致,加上当时还没有已知的利用方法,问题被搁置[9][10]。
PHP 广泛用于内容管理系统和各类网站后台,也随部分主机控制面板和设备一起分发[11]。根据 W3Techs 的统计,在能识别服务器端编程语言的网站中,约 69% 使用 PHP[12]。
发现
两项漏洞由两方独立发现。2026 年 8 月,Calif 的研究者 Ryan Austin 在源码审计中借助 OpenAI 的 GPT-5.6 Sol 模型发现了它们,这项工作属于 OpenAI 的「Patch the Planet」项目[8][13]。Wiz 的研究者使用 Gemini 4 Argon、GPT-5.6 Sol 以及自研的 Wiz Atlas 工具,独立得到了相同的结果[4]。「PHP2Shell」这个名字由 Wiz 提出,意指攻击者可以借此在受影响的服务器上执行 shellcode[14]。
PHP 开发者依照通用漏洞评分系统(CVSS)4.0 版将漏洞评为 9.2 分,属于「严重」等级;安全公司 watchTowr 则给出了满分 10.0 的评价[15][16]。
漏洞
CVE-2026-109618 与内存耗尽时的状态损坏有关,CVE-2026-109619 则与跨请求残留的全局状态有关,两者都可能导致远程代码执行[17][18]。按 CVSS 3.1 计算,两项漏洞的评分分别为 9.8 和 8.1;按 CVSS 4.0 计算则均为 9.2[17][18]。
漏洞位于 PHP 解释器本身,因此受影响的不仅是调用特定函数的应用,还包括以常见方式运行 PHP 的服务器[19]。除 PHP 8.2、8.3、8.4、8.5 外,7.4、8.0、8.1 等已停止支持的版本同样受这些问题影响[2]。
修补
PHP 维护团队发布了 PHP 8.2.35、8.3.36、8.4.27 和 8.5.12,分别对应 8.2、8.3、8.4、8.5 四个分支[2]。对于已经终止支持的 PHP 7.4、8.0 和 8.1,官方只提供了源代码补丁,没有发布更新后的二进制文件[2]。官方同时给出了一些临时缓解措施,但表示没有一种措施能完全消除风险,升级到修补版本是唯一安全的选择[2]。
两项漏洞的安全公告于 2026 年 10 月 21 日 13 时 34 分(UTC)通过 GitHub 发布,比原定的 14 时提前了 26 分钟,PHP 官网随后更新[20][17][18]。主机控制面板 cPanel 和 CloudLinux 在各自的软件源中提供了回移补丁[21][22];志愿维护者 Ondřej Surý 提前拿到了修复代码,并为旧版本准备了可以直接安装的软件包,使管理员不必自行编译 PHP[23][24]。
提前披露
PHP 维护团队之所以提前公布消息,是因为漏洞信息在 10 月 20 日已经外泄,渠道包括 Hacker News 上的匿名帖、watchTowr 在 X 上的帖子,以及 Calif 误发的一段概念验证利用视频[25][8][9]。PHP.net 的提前公告呼吁使用者做好准备,在补丁发布后立即更新[2]。安全公司 Sansec 当时预计,「大规模攻击会在补丁发布后 15 分钟内开始」[26]。在保密期限结束前,网络上已经开始流传概念验证代码、技术分析和部分缓解措施,原因是开发平台 Chainguard 提前发布了修补后的版本,攻击者因此可以比对出修改了哪些代码[16][9]。
影响

PHP 在网站中的普遍使用,使这两项漏洞的潜在影响范围很广。除内容管理系统外,PHP 也随部分厂商设备、虚拟主机管理面板和 Windows 应用程序分发[11]。
根据欧盟电脑紧急应变小组(CERT-EU)和英国国家网络安全中心(NCSC)的建议,欧洲多国机构在等待补丁期间预防性地将网站下线,包括荷兰政府门户 Overheid.nl、丹麦全国学校通讯平台、芬兰政府的全部对外网络服务,以及法国内政部下属地方行政机关的网站[4][27]。美国国家安全局建议,无法立即更新的网站应考虑暂时下线[7][28];英国 NCSC 也发出类似警告,提醒各机构留意后门风险[29]。日本国家网络安全办公室建议 PHP 用户立即更新系统[5]。加拿大政府部分网站依据加拿大网络安全中心的指引临时下线[30],新加坡网络安全局也敦促当地机构尽快修补[31][32]。
维基媒体基金会关闭了多个支持服务,论坛网站 4chan 和 Something Awful 也暂时下线[3][33];互联网档案馆曾短暂停止服务以处理相关问题[34]。日本多家网站和在线服务因应这次漏洞进行紧急维护,包括托育机构管理系统 CoDMON、SAKURA internet 的租用服务器、网店平台 BASE、视频分享网站 Niconico、创作社区 pixiv,以及《赛马娘 Pretty Derby》《Shadowverse: Worlds Beyond》等游戏[5][35]。
漏洞利用
亚马逊威胁情报团队在 MadPot 遥测数据中发现,早在 2026 年 10 月 17 日,也就是公开披露前四天,就已经出现了针对 PHP2Shell 的利用尝试[36]。Cloudflare 表示在补丁发布前就观察到了早期利用迹象,并部署了临时的网页应用防火墙(WAF)规则作为过渡措施[37]。watchTowr 称其蜜罐网络到 10 月 21 日已观察到实际环境中的利用活动,而美国网络安全和基础设施安全局(CISA)则表示截至同日尚未观察到漏洞被利用[38][3]。
10 月 25 日,安全研究员 Jaydip Modhwadia 在一项名为「Steal My Bitcoin」的在线安全挑战中,利用 PHP2Shell 在运行未修补版本 PHP 的服务器上取得了远程代码执行权限,证明该漏洞在特定条件下确实可以被利用[39]。
评价
Wiz 的研究者认为,这次事件的影响可与 2014 年的心脏出血漏洞相比:当年的漏洞影响 OpenSSL,而当时约三分之二的网站使用这一加密库[40]。《纽约时报》称 PHP 的使用「无处不在」,并推测普通用户的个人数据也可能面临风险[41]。《卫报》的评论指出,维护 PHP 的 PHP 基金会只有 13 名全职和兼职员工,主要依靠捐款运作,而协助发现漏洞的人工智能研究获得了「数十亿」美元的投资[42]。
参考文献
- ↑ PHP: News Archive - 20 Oct 2026. www.php.net. 2026-10-20 [2026-11-19] (English).
- ↑ 2.0 2.1 2.2 2.3 2.4 2.5 PHP: News Archive - 21 Oct 2026. www.php.net. 2026-10-21 [2026-11-19] (English).
- ↑ 3.0 3.1 3.2 Collier, Kevin. Critical vulnerabilities in commonly used web code spark rush to update systems. NBC News. 2026-10-21 [2026-11-19] (English).
- ↑ 4.0 4.1 4.2 Satter, Raphael; Marchandon, Leo; Ghosh, Kanjyik; Pardesi, Rajveer. Government websites go dark after AI-discovered flaw sparks security scramble. Reuters. 2026-10-21 [2026-11-19] (English).
- ↑ 5.0 5.1 5.2 著名ITサービス相次いで緊急メンテへ コドモン、シャドバ、BASE、さくらのレンタルサーバなど 「PHP」脆弱性に起因か. ITmedia. 2026-10-21 [2026-11-19] (日本語).
- ↑ PHP: Releases. www.php.net. [2026-11-19] (English).
- ↑ 7.0 7.1 Kan, Michael. This Flaw Is So Serious Websites Should Consider Going Offline, NSA Says. PCMag. 2026-10-21 [2026-11-19] (English).
- ↑ 8.0 8.1 8.2 McMillan, Robert. Exclusive: AI Just Found a Bug That Puts up to 70% of the World's Websites at Risk. The Wall Street Journal. 2026-10-21 [2026-11-19] (English).
- ↑ 9.0 9.1 9.2 Constantin, Ana Maria. PHP knew about one of the flaws in 2024 but could not agree a fix. The Next Web. 2026-10-21 [2026-11-19] (English).
- ↑ Today's PHP Security Release, and How We're Strengthening PHP Security. The PHP Foundation. 2026-10-21 [2026-11-19] (English).
- ↑ 11.0 11.1 Hammond, John. Rapid Response: php2shell, Leaked Critical PHP Vulnerabilities (CVE-2026-109618 & CVE-2026-109619). Huntress. 2026-10-21 [2026-11-19] (English).
- ↑ Usage statistics of PHP for websites. W3Techs. [2026-11-19] (English).
- ↑ Volz, Dustin. A Hacking Tool Built With A.I. Can Breach Phones Without a Click. The New York Times. 2026-09-08 [2026-11-19] (English).
- ↑ PHP2Shell Exploitation: Two Critical PHP Flaws Explained. Recorded Future. [2026-11-19] (English).
- ↑ php.announce: [ANNOUNCE] Upcoming Critical PHP Security Release. PHP Mailing Lists. [2026-11-19] (English).
- ↑ 16.0 16.1 Abrams, Lawrence. PHP warns admins of two critical flaws, emergency patches coming tomorrow. BleepingComputer. 2026-10-20 [2026-11-19] (English).
- ↑ 17.0 17.1 17.2 RCE via OOM corruption. GitHub. 2026-10-21 [2026-11-19] (English).
- ↑ 18.0 18.1 18.2 RCE via stale global state. GitHub. 2026-10-21 [2026-11-19] (English).
- ↑ PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet. Wiz Blog. 2026-10-21 [2026-11-19] (English).
- ↑ Scherzer, Daniel. Blog: PHP2Shell: a Timeline. scherzer.dev. 2026-10-22 [2026-11-19] (English).
- ↑ Critical PHP Security Release - CVE-2026-109618 and CVE-2026-109619. cPanel. 2026-10-22 [2026-11-19] (English).
- ↑ Galov, Niko. PHP CVE-2026-109618 and CVE-2026-109619: CloudLinux Package Status and Imunify360 Protection. CloudLinux. 2026-10-21 [2026-11-19] (English).
- ↑ The PHP developer who became the unsung hero of the internet. BBC News. 2026-10-24 [2026-11-19] (English).
- ↑ Warzel, Charlie. 'If Anything Happens to This Guy ... Everyone Is Screwed'. The Atlantic. 2026-10-22 [2026-11-19] (English).
- ↑ Tell HN: 2x PHP RCE CVEs with CVSS 10.0 Incoming. Hacker News. 2026-10-20 [2026-11-19] (English).
- ↑ Goodin, Dan. PHP warns it plans to release 2 emergency patches imminently. Ars Technica. 2026-10-20 [2026-11-19] (English).
- ↑ Gerkin, Tom. Websites taken down worldwide as critical PHP cyber-security update issued. BBC News. 2026-10-21 [2026-11-19] (English).
- ↑ NSA Advisory: PHP Updates. National Security Agency. 2026-10-21 [2026-11-19] (English).
- ↑ Booth, Robert; Down, Aisha. Flaw in PHP computer language leads to shutdown of websites around world. The Guardian. 2026-10-21 [2026-11-19] (English).
- ↑ Beauchemin, Genevieve. Canadian apps and government websites go offline to ward off online danger. CP24. 2026-10-22 [2026-11-19] (English).
- ↑ Singapore organisations urged to patch critical PHP flaws immediately amid cyberattack threat. CNA. 2026-10-22 [2026-11-19] (English).
- ↑ Critical Vulnerabilities in PHP (PHP2Shell). Cyber Security Agency of Singapore. 2026-10-21 [2026-11-19] (English).
- ↑ Tauber, Olivia. PHP vulnerability: Which websites and services are affected?. Mashable. 2026-10-21 [2026-11-19] (English).
- ↑ Smith, Paul; Mizen, Ronald. AI just discovered a bug putting 70pc of world's websites at risk. Australian Financial Review. 2026-10-21 [2026-11-19] (English).
- ↑ Scullion, Chris. Capcom has temporarily delisted Street Fighter 5 and turned off its servers as it works on PHP security issue. Video Games Chronicle. 2026-10-27 [2026-11-19] (English).
- ↑ Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot. AWS Security Blog. 2026-10-21 [2026-11-19] (English).
- ↑ Gatlan, Sergiu. PHP ships emergency patches for critical PHP2Shell flaws. BleepingComputer. 2026-10-21 [2026-11-19] (English).
- ↑ PHP RCE FAQ: PHP2Shell CVE-2026-109618 & CVE-2026-109619. watchTowr. 2026-10-20 [2026-11-19] (English).
- ↑ UK pentester 'killa' claims $2K Bitcoin prize in PHP2Shell capture-the-flag contest. The Register. 2026-10-26 [2026-11-19] (English).
- ↑ Eadicicco, Lisa. Global websites shut down after AI found a critical flaw affecting 70% of the internet. CNN. 2026-10-21 [2026-11-19] (English).
- ↑ Adam, Karla; Volz, Dustin. What Is PHP? Why Are Government and Business Websites Going Offline?. The New York Times. 2026-10-22 [2026-11-19] (English).
- ↑ Taylor, Josh. What is PHP, and how bad is the computer language flaw causing website shutdowns globally?. The Guardian. 2026-10-22 [2026-11-19] (English).
外部链接
- php2shell.com(英文)
- PHP 项目安全公告(英文)
- CVE-2026-109618 安全公告(英文)
- CVE-2026-109619 安全公告(英文)
- Calif 对漏洞的说明(英文)
- Wiz 对漏洞的说明(英文)