跳转到内容

PHP2Shell:修订间差异

轻之舟百科,让知识轻装启航
删除的内容 添加的内容
云云​(留言 | 贡献)
重写词条:中文正文,补充来源与配图
云云​(留言 | 贡献)
调整内链
第24行: 第24行:
}}
}}


'''PHP2Shell''' 是 2026 年公开的两项 [[PHP]] 高危[[漏洞]]的合称,编号分别为 '''CVE-2026-109618''' 和 '''CVE-2026-109619'''。两者都是 PHP 解释器中的[[内存安全]]问题,影响 PHP 5.4 至 8.5 版本,可导致[[远程代码执行]](RCE)。PHP 是使用最广泛的[[服务器]]端[[编程语言]]之一,这两项漏洞在公开时被认为可能影响[[全球]]约七成的[[服务器|网站服务器]]。
'''PHP2Shell''' 是 2026 年公开的两项 [[PHP]] 高危漏洞的合称,编号分别为 '''CVE-2026-109618''' 和 '''CVE-2026-109619'''。两者都是 PHP 解释器中的内存安全问题,影响 PHP 5.4 至 8.5 版本,可导致远程代码执行(RCE)。PHP 是使用最广泛的[[服务器]]端[[编程语言]]之一,这两项漏洞在公开时被认为可能影响[[全球]]约七成的网站。


漏洞由美国安全公司 Calif 的研究者借助[[人工智能]]发现,以色列与美国的云安全公司 Wiz 也独立发现了同样的问题。PHP 维护团队于 2026 年 10 月 20 日提前公布消息,次日在发布紧急[[修补程序|补丁]]的同时公开了漏洞细节<ref name="oct20">{{cite web |title=PHP: News Archive - 20 Oct 2026 |url=https://www.php.net/archive/2026.php#2026-10-20-1 |website=www.php.net |date=2026-10-20 |access-date=2026-11-19 |language=en}}</ref><ref name="oct21">{{cite web |title=PHP: News Archive - 21 Oct 2026 |url=https://www.php.net/archive/2026.php#2026-10-21-5 |website=www.php.net |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。由于影响范围大,多国网络安全机构建议无法立即更新的机构将网站临时下线,[[维基媒体基金会]]、[[互联网档案馆]]等网站以及日本多家网络服务在修补期间暂停了服务<ref name="nbc">{{cite news |last=Collier |first=Kevin |title=Critical vulnerabilities in commonly used web code spark rush to update systems |url=https://www.nbcnews.com/tech/security/critical-vulnerabilities-php-update-systems-rcna604751 |work=NBC News |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref><ref name="reuters">{{cite news |last1=Satter |first1=Raphael |last2=Marchandon |first2=Leo |last3=Ghosh |first3=Kanjyik |last4=Pardesi |first4=Rajveer |title=Government websites go dark after AI-discovered flaw sparks security scramble |url=https://www.reuters.com/world/asia-pacific/eu-agency-warns-websites-may-need-be-taken-offline-php-prepares-patches-2026-10-21/ |work=Reuters |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref><ref name="itmedia">{{cite news |title=著名ITサービス相次いで緊急メンテへ コドモン、シャドバ、BASE、さくらのレンタルサーバなど 「PHP」脆弱性に起因か |url=https://www.itmedia.co.jp/news/article/2610/21/2000002472/ |work=ITmedia |date=2026-10-21 |access-date=2026-11-19 |language=ja}}</ref>。
漏洞由美国安全公司 Calif 的研究者借助[[人工智能]]发现,以色列与美国的云安全公司 Wiz 也独立发现了同样的问题。PHP 维护团队于 2026 年 10 月 20 日提前公布消息,次日在发布紧急补丁的同时公开了漏洞细节<ref name="oct20">{{cite web |title=PHP: News Archive - 20 Oct 2026 |url=https://www.php.net/archive/2026.php#2026-10-20-1 |website=www.php.net |date=2026-10-20 |access-date=2026-11-19 |language=en}}</ref><ref name="oct21">{{cite web |title=PHP: News Archive - 21 Oct 2026 |url=https://www.php.net/archive/2026.php#2026-10-21-5 |website=www.php.net |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。由于影响范围大,多国网络安全机构建议无法立即更新的机构将网站临时下线,[[维基]]媒体基金会、[[互联网]]档案馆等网站以及日本多家网络服务在修补期间暂停了服务<ref name="nbc">{{cite news |last=Collier |first=Kevin |title=Critical vulnerabilities in commonly used web code spark rush to update systems |url=https://www.nbcnews.com/tech/security/critical-vulnerabilities-php-update-systems-rcna604751 |work=NBC News |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref><ref name="reuters">{{cite news |last1=Satter |first1=Raphael |last2=Marchandon |first2=Leo |last3=Ghosh |first3=Kanjyik |last4=Pardesi |first4=Rajveer |title=Government websites go dark after AI-discovered flaw sparks security scramble |url=https://www.reuters.com/world/asia-pacific/eu-agency-warns-websites-may-need-be-taken-offline-php-prepares-patches-2026-10-21/ |work=Reuters |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref><ref name="itmedia">{{cite news |title=著名ITサービス相次いで緊急メンテへ コドモン、シャドバ、BASE、さくらのレンタルサーバなど 「PHP」脆弱性に起因か |url=https://www.itmedia.co.jp/news/article/2610/21/2000002472/ |work=ITmedia |date=2026-10-21 |access-date=2026-11-19 |language=ja}}</ref>。


== 背景 ==
== 背景 ==
第36行: 第36行:
== 发现 ==
== 发现 ==


两项漏洞由两方独立发现。2026 年 8 月,Calif 的研究者 Ryan Austin 在源码审计中借助 [[OpenAI]] 的 GPT-5.6 Sol 模型发现了它们,这项工作属于 OpenAI 的「Patch the Planet」项目<ref name="wsj" /><ref name="nyt1">{{cite news |last=Volz |first=Dustin |title=A Hacking Tool Built With A.I. Can Breach Phones Without a Click |url=https://www.nytimes.com/2026/09/08/us/politics/calif-ai-worm-wechat-hack.html |work=The New York Times |date=2026-09-08 |access-date=2026-11-19 |language=en}}</ref>。Wiz 的研究者使用 Gemini 4 Argon、GPT-5.6 Sol 以及自研的 Wiz Atlas 工具,独立得到了相同的结果<ref name="reuters" />。「PHP2Shell」这个名字由 Wiz 提出,意指攻击者可以借此在受影响的服务器上执行 shellcode<ref name="rf">{{cite web |title=PHP2Shell Exploitation: Two Critical PHP Flaws Explained |url=https://www.recordedfuture.com/blog/php2shell-vulnerability-exploitation |website=Recorded Future |access-date=2026-11-19 |language=en}}</ref>。
两项漏洞由两方独立发现。2026 年 8 月,Calif 的研究者 Ryan Austin 在源码审计中借助 OpenAI 的 GPT-5.6 Sol 模型发现了它们,这项工作属于 OpenAI 的「Patch the Planet」项目<ref name="wsj" /><ref name="nyt1">{{cite news |last=Volz |first=Dustin |title=A Hacking Tool Built With A.I. Can Breach Phones Without a Click |url=https://www.nytimes.com/2026/09/08/us/politics/calif-ai-worm-wechat-hack.html |work=The New York Times |date=2026-09-08 |access-date=2026-11-19 |language=en}}</ref>。Wiz 的研究者使用 Gemini 4 Argon、GPT-5.6 Sol 以及自研的 Wiz Atlas 工具,独立得到了相同的结果<ref name="reuters" />。「PHP2Shell」这个名字由 Wiz 提出,意指攻击者可以借此在受影响的服务器上执行 shellcode<ref name="rf">{{cite web |title=PHP2Shell Exploitation: Two Critical PHP Flaws Explained |url=https://www.recordedfuture.com/blog/php2shell-vulnerability-exploitation |website=Recorded Future |access-date=2026-11-19 |language=en}}</ref>。


PHP 开发者依照通用漏洞评分系统(CVSS)4.0 版将漏洞评为 9.2 分,属于「严重」等级;安全公司 watchTowr 则给出了满分 10.0 的评价<ref name="announce">{{cite web |title=php.announce: [ANNOUNCE] Upcoming Critical PHP Security Release |url=https://news-web.php.net/php.announce/509 |website=PHP Mailing Lists |access-date=2026-11-19 |language=en}}</ref><ref name="abrams">{{cite web |last=Abrams |first=Lawrence |title=PHP warns admins of two critical flaws, emergency patches coming tomorrow |url=https://www.bleepingcomputer.com/news/security/php-warns-admins-of-two-critical-flaws-emergency-patches-coming-tomorrow/ |website=BleepingComputer |date=2026-10-20 |access-date=2026-11-19 |language=en}}</ref>。
PHP 开发者依照通用漏洞评分系统(CVSS)4.0 版将漏洞评为 9.2 分,属于「严重」等级;安全公司 watchTowr 则给出了满分 10.0 的评价<ref name="announce">{{cite web |title=php.announce: [ANNOUNCE] Upcoming Critical PHP Security Release |url=https://news-web.php.net/php.announce/509 |website=PHP Mailing Lists |access-date=2026-11-19 |language=en}}</ref><ref name="abrams">{{cite web |last=Abrams |first=Lawrence |title=PHP warns admins of two critical flaws, emergency patches coming tomorrow |url=https://www.bleepingcomputer.com/news/security/php-warns-admins-of-two-critical-flaws-emergency-patches-coming-tomorrow/ |website=BleepingComputer |date=2026-10-20 |access-date=2026-11-19 |language=en}}</ref>。
第64行: 第64行:
根据欧盟电脑紧急应变小组(CERT-EU)和英国国家网络安全中心(NCSC)的建议,欧洲多国机构在等待补丁期间预防性地将网站下线,包括荷兰政府门户 Overheid.nl、丹麦全国学校通讯平台、芬兰政府的全部对外网络服务,以及法国内政部下属地方行政机关的网站<ref name="reuters" /><ref name="bbc">{{cite news |last=Gerkin |first=Tom |title=Websites taken down worldwide as critical PHP cyber-security update issued |url=https://www.bbc.com/news/articles/cmly0lg3w5x2o |work=BBC News |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。美国国家安全局建议,无法立即更新的网站应考虑暂时下线<ref name="kan" /><ref name="nsa">{{cite web |title=NSA Advisory: PHP Updates |url=https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4630238/nsa-advisory-php-updates/ |publisher=National Security Agency |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>;英国 NCSC 也发出类似警告,提醒各机构留意后门风险<ref name="guardian">{{cite news |last1=Booth |first1=Robert |last2=Down |first2=Aisha |title=Flaw in PHP computer language leads to shutdown of websites around world |url=https://www.theguardian.com/technology/2026/oct/21/flaw-in-php-computer-language-leads-to-shutdown-of-websites-around-world |work=The Guardian |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。日本国家网络安全办公室建议 PHP [[用户]]立即更新系统<ref name="itmedia" />。加拿大政府部分网站依据加拿大网络安全中心的指引临时下线<ref name="cp24">{{cite web |last=Beauchemin |first=Genevieve |title=Canadian apps and government websites go offline to ward off online danger |url=https://www.cp24.com/news/canada/2026/10/21/canadian-apps-and-government-websites-go-offline-to-ward-off-online-danger/ |website=CP24 |date=2026-10-22 |access-date=2026-11-19 |language=en}}</ref>,新加坡网络安全局也敦促当地机构尽快修补<ref name="cna">{{cite web |title=Singapore organisations urged to patch critical PHP flaws immediately amid cyberattack threat |url=https://www.channelnewsasia.com/singapore/php-vulnerabilities-csa-singapore-firms-cybersecurity-6482006 |website=CNA |date=2026-10-22 |access-date=2026-11-19 |language=en}}</ref><ref name="csasg">{{cite web |title=Critical Vulnerabilities in PHP (PHP2Shell) |url=https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-151/ |website=Cyber Security Agency of Singapore |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。
根据欧盟电脑紧急应变小组(CERT-EU)和英国国家网络安全中心(NCSC)的建议,欧洲多国机构在等待补丁期间预防性地将网站下线,包括荷兰政府门户 Overheid.nl、丹麦全国学校通讯平台、芬兰政府的全部对外网络服务,以及法国内政部下属地方行政机关的网站<ref name="reuters" /><ref name="bbc">{{cite news |last=Gerkin |first=Tom |title=Websites taken down worldwide as critical PHP cyber-security update issued |url=https://www.bbc.com/news/articles/cmly0lg3w5x2o |work=BBC News |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。美国国家安全局建议,无法立即更新的网站应考虑暂时下线<ref name="kan" /><ref name="nsa">{{cite web |title=NSA Advisory: PHP Updates |url=https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4630238/nsa-advisory-php-updates/ |publisher=National Security Agency |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>;英国 NCSC 也发出类似警告,提醒各机构留意后门风险<ref name="guardian">{{cite news |last1=Booth |first1=Robert |last2=Down |first2=Aisha |title=Flaw in PHP computer language leads to shutdown of websites around world |url=https://www.theguardian.com/technology/2026/oct/21/flaw-in-php-computer-language-leads-to-shutdown-of-websites-around-world |work=The Guardian |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。日本国家网络安全办公室建议 PHP [[用户]]立即更新系统<ref name="itmedia" />。加拿大政府部分网站依据加拿大网络安全中心的指引临时下线<ref name="cp24">{{cite web |last=Beauchemin |first=Genevieve |title=Canadian apps and government websites go offline to ward off online danger |url=https://www.cp24.com/news/canada/2026/10/21/canadian-apps-and-government-websites-go-offline-to-ward-off-online-danger/ |website=CP24 |date=2026-10-22 |access-date=2026-11-19 |language=en}}</ref>,新加坡网络安全局也敦促当地机构尽快修补<ref name="cna">{{cite web |title=Singapore organisations urged to patch critical PHP flaws immediately amid cyberattack threat |url=https://www.channelnewsasia.com/singapore/php-vulnerabilities-csa-singapore-firms-cybersecurity-6482006 |website=CNA |date=2026-10-22 |access-date=2026-11-19 |language=en}}</ref><ref name="csasg">{{cite web |title=Critical Vulnerabilities in PHP (PHP2Shell) |url=https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-151/ |website=Cyber Security Agency of Singapore |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。


[[维基]]媒体基金会关闭了多个支持服务,论坛网站 4chan 和 Something Awful 也暂时下线<ref name="nbc" /><ref name="mashable">{{cite web |last=Tauber |first=Olivia |title=PHP vulnerability: Which websites and services are affected? |url=https://mashable.com/tech/php-vulnerability-websites-offline-affected-services |website=Mashable |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>;[[互联网]]档案馆曾短暂停止服务以处理相关问题<ref name="afr">{{cite news |last1=Smith |first1=Paul |last2=Mizen |first2=Ronald |title=AI just discovered a bug putting 70pc of world's websites at risk |url=https://www.afr.com/world/north-america/websites-go-dark-as-ai-discovered-bug-sparks-global-security-scramble-20261022-p617nf |work=Australian Financial Review |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。日本多家网站和在线服务因应这次漏洞进行紧急维护,包括托育机构管理系统 CoDMON、SAKURA internet 的租用服务器、网店平台 BASE、视频分享网站 Niconico、创作社区 pixiv,以及《赛马娘 Pretty Derby》《Shadowverse: Worlds Beyond》等游戏<ref name="itmedia" /><ref name="vgc">{{cite news |last=Scullion |first=Chris |title=Capcom has temporarily delisted Street Fighter 5 and turned off its servers as it works on PHP security issue |url=https://www.videogameschronicle.com/news/capcom-has-temporarily-delisted-street-fighter-5-and-turned-off-its-servers-as-it-works-on-php-security-issue/ |work=Video Games Chronicle |date=2026-10-27 |access-date=2026-11-19 |language=en}}</ref>。
维基媒体基金会关闭了多个支持服务,论坛网站 4chan 和 Something Awful 也暂时下线<ref name="nbc" /><ref name="mashable">{{cite web |last=Tauber |first=Olivia |title=PHP vulnerability: Which websites and services are affected? |url=https://mashable.com/tech/php-vulnerability-websites-offline-affected-services |website=Mashable |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>;互联网档案馆曾短暂停止服务以处理相关问题<ref name="afr">{{cite news |last1=Smith |first1=Paul |last2=Mizen |first2=Ronald |title=AI just discovered a bug putting 70pc of world's websites at risk |url=https://www.afr.com/world/north-america/websites-go-dark-as-ai-discovered-bug-sparks-global-security-scramble-20261022-p617nf |work=Australian Financial Review |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。日本多家网站和在线服务因应这次漏洞进行紧急维护,包括托育机构管理系统 CoDMON、SAKURA internet 的租用服务器、网店平台 BASE、视频分享网站 Niconico、创作社区 pixiv,以及《赛马娘 Pretty Derby》《Shadowverse: Worlds Beyond》等游戏<ref name="itmedia" /><ref name="vgc">{{cite news |last=Scullion |first=Chris |title=Capcom has temporarily delisted Street Fighter 5 and turned off its servers as it works on PHP security issue |url=https://www.videogameschronicle.com/news/capcom-has-temporarily-delisted-street-fighter-5-and-turned-off-its-servers-as-it-works-on-php-security-issue/ |work=Video Games Chronicle |date=2026-10-27 |access-date=2026-11-19 |language=en}}</ref>。


== 漏洞利用 ==
== 漏洞利用 ==


[[Amazon Web Services|亚马逊]]威胁情报团队在 MadPot 遥测数据中发现,早在 2026 年 10 月 17 日,也就是公开披露前四天,就已经出现了针对 PHP2Shell 的利用尝试<ref name="aws">{{cite web |title=Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot |url=https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/ |website=AWS Security Blog |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。[[Cloudflare]] 表示在补丁发布前就观察到了早期利用迹象,并部署了临时的网页应用防火墙(WAF)规则作为过渡措施<ref name="gatlan">{{cite web |last=Gatlan |first=Sergiu |title=PHP ships emergency patches for critical PHP2Shell flaws |url=https://www.bleepingcomputer.com/news/security/php-ships-emergency-patches-for-critical-php2shell-flaws/ |website=BleepingComputer |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。watchTowr 称其蜜罐网络到 10 月 21 日已观察到实际环境中的利用活动,而美国网络安全和基础设施安全局(CISA)则表示截至同日尚未观察到漏洞被利用<ref name="watchtowr">{{cite web |title=PHP RCE FAQ: PHP2Shell CVE-2026-109618 & CVE-2026-109619 |url=https://watchtowr.com/intelligence/php-cve-2026-109618-faq/ |website=watchTowr |date=2026-10-20 |access-date=2026-11-19 |language=en}}</ref><ref name="nbc" />。
亚马逊威胁情报团队在 MadPot 遥测数据中发现,早在 2026 年 10 月 17 日,也就是公开披露前四天,就已经出现了针对 PHP2Shell 的利用尝试<ref name="aws">{{cite web |title=Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot |url=https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/ |website=AWS Security Blog |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。[[Cloudflare]] 表示在补丁发布前就观察到了早期利用迹象,并部署了临时的网页应用防火墙(WAF)规则作为过渡措施<ref name="gatlan">{{cite web |last=Gatlan |first=Sergiu |title=PHP ships emergency patches for critical PHP2Shell flaws |url=https://www.bleepingcomputer.com/news/security/php-ships-emergency-patches-for-critical-php2shell-flaws/ |website=BleepingComputer |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。watchTowr 称其蜜罐网络到 10 月 21 日已观察到实际环境中的利用活动,而美国网络安全和基础设施安全局(CISA)则表示截至同日尚未观察到漏洞被利用<ref name="watchtowr">{{cite web |title=PHP RCE FAQ: PHP2Shell CVE-2026-109618 & CVE-2026-109619 |url=https://watchtowr.com/intelligence/php-cve-2026-109618-faq/ |website=watchTowr |date=2026-10-20 |access-date=2026-11-19 |language=en}}</ref><ref name="nbc" />。


10 月 25 日,安全研究员 Jaydip Modhwadia 在一项名为「Steal My Bitcoin」的在线安全挑战中,利用 PHP2Shell 在运行未修补版本 PHP 的服务器上取得了远程代码执行权限,证明该漏洞在特定条件下确实可以被利用<ref name="register">{{cite web |title=UK pentester 'killa' claims $2K Bitcoin prize in PHP2Shell capture-the-flag contest |url=https://assets.theregister.com/2026/10/26/202616/ |website=The Register |date=2026-10-26 |access-date=2026-11-19 |language=en}}</ref>。
10 月 25 日,安全研究员 Jaydip Modhwadia 在一项名为「Steal My Bitcoin」的在线安全挑战中,利用 PHP2Shell 在运行未修补版本 PHP 的服务器上取得了远程代码执行权限,证明该漏洞在特定条件下确实可以被利用<ref name="register">{{cite web |title=UK pentester 'killa' claims $2K Bitcoin prize in PHP2Shell capture-the-flag contest |url=https://assets.theregister.com/2026/10/26/202616/ |website=The Register |date=2026-10-26 |access-date=2026-11-19 |language=en}}</ref>。
第74行: 第74行:
== 评价 ==
== 评价 ==


Wiz 的研究者认为,这次事件的影响可与 2014 年的[[心脏出血漏洞]]相比:当年的漏洞影响 OpenSSL,而当时约三分之二的网站使用这一加密库<ref name="cnn">{{cite news |last=Eadicicco |first=Lisa |title=Global websites shut down after AI found a critical flaw affecting 70% of the internet |url=https://edition.cnn.com/2026/10/21/tech/php2shell-vulnerability-ai |work=CNN |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。《纽约时报》称 PHP 的使用「无处不在」,并推测普通用户的个人[[数据]]也可能面临风险<ref name="nyt2">{{cite news |last1=Adam |first1=Karla |last2=Volz |first2=Dustin |title=What Is PHP? Why Are Government and Business Websites Going Offline? |url=https://www.nytimes.com/2026/10/22/technology/what-is-php-vulnerability-risks.html |work=The New York Times |date=2026-10-22 |access-date=2026-11-19 |language=en}}</ref>。《卫报》的评论指出,维护 PHP 的 PHP 基金会只有 13 名全职和兼职员工,主要依靠捐款运作,而协助发现漏洞的人工智能研究获得了「数十亿」美元的投资<ref name="guardian2">{{cite news |last=Taylor |first=Josh |title=What is PHP, and how bad is the computer language flaw causing website shutdowns globally? |url=https://www.theguardian.com/technology/2026/oct/22/what-is-php-computer-language-flaw-causing-global-website-shutdowns |work=The Guardian |date=2026-10-22 |access-date=2026-11-19 |language=en}}</ref>。
Wiz 的研究者认为,这次事件的影响可与 2014 年的心脏出血漏洞相比:当年的漏洞影响 OpenSSL,而当时约三分之二的网站使用这一加密库<ref name="cnn">{{cite news |last=Eadicicco |first=Lisa |title=Global websites shut down after AI found a critical flaw affecting 70% of the internet |url=https://edition.cnn.com/2026/10/21/tech/php2shell-vulnerability-ai |work=CNN |date=2026-10-21 |access-date=2026-11-19 |language=en}}</ref>。《纽约时报》称 PHP 的使用「无处不在」,并推测普通用户的个人[[数据]]也可能面临风险<ref name="nyt2">{{cite news |last1=Adam |first1=Karla |last2=Volz |first2=Dustin |title=What Is PHP? Why Are Government and Business Websites Going Offline? |url=https://www.nytimes.com/2026/10/22/technology/what-is-php-vulnerability-risks.html |work=The New York Times |date=2026-10-22 |access-date=2026-11-19 |language=en}}</ref>。《卫报》的评论指出,维护 PHP 的 PHP 基金会只有 13 名全职和兼职员工,主要依靠捐款运作,而协助发现漏洞的人工智能研究获得了「数十亿」美元的投资<ref name="guardian2">{{cite news |last=Taylor |first=Josh |title=What is PHP, and how bad is the computer language flaw causing website shutdowns globally? |url=https://www.theguardian.com/technology/2026/oct/22/what-is-php-computer-language-flaw-causing-global-website-shutdowns |work=The Guardian |date=2026-10-22 |access-date=2026-11-19 |language=en}}</ref>。

== 参见 ==

* [[Log4Shell]]
* [[心脏出血漏洞]]


== 参考文献 ==
== 参考文献 ==

2026年11月19日 (四) 11:07的版本

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]。

影响

维基媒体基金会的 Phabricator 在漏洞修补前暂停服务的画面

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]。

参考文献

  1. ↑ PHP: News Archive - 20 Oct 2026. www.php.net. 2026-10-20 [2026-11-19] (English). 
  2. ↑ 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. ↑ 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. ↑ 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. ↑ 5.0 5.1 5.2 著名ITサービス相次いで緊急メンテへ コドモン、シャドバ、BASE、さくらのレンタルサーバなど 「PHP」脆弱性に起因か. ITmedia. 2026-10-21 [2026-11-19] (日本語). 
  6. ↑ PHP: Releases. www.php.net. [2026-11-19] (English). 
  7. ↑ 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. ↑ 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. ↑ 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). 
  10. ↑ Today's PHP Security Release, and How We're Strengthening PHP Security. The PHP Foundation. 2026-10-21 [2026-11-19] (English). 
  11. ↑ 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). 
  12. ↑ Usage statistics of PHP for websites. W3Techs. [2026-11-19] (English). 
  13. ↑ 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). 
  14. ↑ PHP2Shell Exploitation: Two Critical PHP Flaws Explained. Recorded Future. [2026-11-19] (English). 
  15. ↑ php.announce: [ANNOUNCE] Upcoming Critical PHP Security Release. PHP Mailing Lists. [2026-11-19] (English). 
  16. ↑ 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. ↑ 17.0 17.1 17.2 RCE via OOM corruption. GitHub. 2026-10-21 [2026-11-19] (English). 
  18. ↑ 18.0 18.1 18.2 RCE via stale global state. GitHub. 2026-10-21 [2026-11-19] (English). 
  19. ↑ PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet. Wiz Blog. 2026-10-21 [2026-11-19] (English). 
  20. ↑ Scherzer, Daniel. Blog: PHP2Shell: a Timeline. scherzer.dev. 2026-10-22 [2026-11-19] (English). 
  21. ↑ Critical PHP Security Release - CVE-2026-109618 and CVE-2026-109619. cPanel. 2026-10-22 [2026-11-19] (English). 
  22. ↑ Galov, Niko. PHP CVE-2026-109618 and CVE-2026-109619: CloudLinux Package Status and Imunify360 Protection. CloudLinux. 2026-10-21 [2026-11-19] (English). 
  23. ↑ The PHP developer who became the unsung hero of the internet. BBC News. 2026-10-24 [2026-11-19] (English). 
  24. ↑ Warzel, Charlie. 'If Anything Happens to This Guy ... Everyone Is Screwed'. The Atlantic. 2026-10-22 [2026-11-19] (English). 
  25. ↑ Tell HN: 2x PHP RCE CVEs with CVSS 10.0 Incoming. Hacker News. 2026-10-20 [2026-11-19] (English). 
  26. ↑ Goodin, Dan. PHP warns it plans to release 2 emergency patches imminently. Ars Technica. 2026-10-20 [2026-11-19] (English). 
  27. ↑ Gerkin, Tom. Websites taken down worldwide as critical PHP cyber-security update issued. BBC News. 2026-10-21 [2026-11-19] (English). 
  28. ↑ NSA Advisory: PHP Updates. National Security Agency. 2026-10-21 [2026-11-19] (English). 
  29. ↑ 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). 
  30. ↑ Beauchemin, Genevieve. Canadian apps and government websites go offline to ward off online danger. CP24. 2026-10-22 [2026-11-19] (English). 
  31. ↑ Singapore organisations urged to patch critical PHP flaws immediately amid cyberattack threat. CNA. 2026-10-22 [2026-11-19] (English). 
  32. ↑ Critical Vulnerabilities in PHP (PHP2Shell). Cyber Security Agency of Singapore. 2026-10-21 [2026-11-19] (English). 
  33. ↑ Tauber, Olivia. PHP vulnerability: Which websites and services are affected?. Mashable. 2026-10-21 [2026-11-19] (English). 
  34. ↑ 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). 
  35. ↑ 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). 
  36. ↑ Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot. AWS Security Blog. 2026-10-21 [2026-11-19] (English). 
  37. ↑ Gatlan, Sergiu. PHP ships emergency patches for critical PHP2Shell flaws. BleepingComputer. 2026-10-21 [2026-11-19] (English). 
  38. ↑ PHP RCE FAQ: PHP2Shell CVE-2026-109618 & CVE-2026-109619. watchTowr. 2026-10-20 [2026-11-19] (English). 
  39. ↑ UK pentester 'killa' claims $2K Bitcoin prize in PHP2Shell capture-the-flag contest. The Register. 2026-10-26 [2026-11-19] (English). 
  40. ↑ 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). 
  41. ↑ 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). 
  42. ↑ 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). 

外部链接