Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 11h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 11h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d
🛡️
ACyber Sentinel 安全评估团队
← 返回
⚡ 情报报告

关键PHP漏洞允许代码执行,但不要像“PHP2Shell”那样恐慌

5分钟阅读来源:scanrail via Getty ImagesPHP团队发布了一项新的安全更新,修复了广泛的漏洞和问题,但与上个月的PHP2Shell混乱相比,这些漏洞对攻击者的吸引力有多大则更难确定。这是因为,根据PHP的维护者,最新的月度安全更新中有七个被评为“关键”的问题“需要非默认配置或不常见的设置。”该更新于11月19日发布,影响所有受支持的PHP版本,维护者强烈建议用户及时升级。

此次最新更新是在威胁行为者大规模针对PHP2Shell——一对能够在PHP中进行远程代码执行(RCE)的漏洞(CVE-2026-109618和CVE-2026-109619)之后发布的。PHP是一种开源脚本语言,常用于Web开发,并存在于支撑互联网运作的许多服务器基础设施中。鉴于PHP的普遍性,修补的紧迫性在安全行业引发了一场热潮,自2021年的Log4Shell事件以来鲜有见过。

相关:光标痕迹恶意Claude代码扩展到第三方泄露

PHP版本8.2至8.5现在可以通过项目的下载页面获得补丁,版本号为8.2.36、8.3.37、8.4.28和8.5.13。最新的PHP主要版本8.6.0也在今天发布,并包含修复。

在变更日志中列出的数十个问题中,GitHub上标记为关键(CVSS 9.2)的七个问题是:会话序列化器不匹配的RCE漏洞CVE-2026-115560;通过在关闭后重新填充last_fatal_error_backtrace全局变量导致的use-after-free漏洞CVE-2026-129182;时区缓存的use-after-free RCE漏洞CVE-2026-129496;在会话关闭中断后导致的use-after-free漏洞CVE-2026-129481;魔术方法回溯中的use-after-free RCE漏洞CVE-2026-129474;通过未读HTTP请求体的PHP-FPM请求走私漏洞CVE-2026-129289;以及基于PHP文件的会话处理程序RCE漏洞CVE-2026-126714。

虽然维护者在大多数关键通告中包含了临时解决方案(不包括CVE-2026-115560),但这些被视为临时缓解措施,用户应尽快升级。Arctic Wolf的对手运营总监Justin Moore告诉Dark Reading,组织在修补这些问题时将面临的两个挑战是运行关键功能的服务器的业务连续性和可见性。

“许多组织没有完整的PHP运行清单,特别是在遗留应用程序、内部开发的Web服务、托管环境或第三方软件中。它嵌入在CMS平台、托管控制面板、供应商设备和旧的内部应用程序中,”他说。“当漏洞被披露时,主要挑战是识别受影响的业务的每个方面。现实情况是,面向互联网的PHP系统应该优先排在修补队列的前面,因为攻击者已经多次证明了在存在代码执行路径时迅速利用PHP漏洞的兴趣。”

相关:Grok Bots试图在未获得用户批准的情况下访问企业数据

PHP漏洞优先修补

在关键漏洞中,有一些专家建议优先关注。根据Upwind发布的安全发布分析,PHP-FPM漏洞CVE-2026-129289是首要解决的,因为它“允许未经身份验证的攻击者通过单个请求执行PHP代码”,而不需要内存损坏、设备链或竞争条件来利用。尽管Upwind评估这是通向代码执行的最直接路径,“但它确实需要一个重用FastCGI连接的前端和一个在不读取到末尾的情况下打开php://input的应用路径。”

Upwind还指出,三个漏洞解决了上个月PHP2Shell修复引入的漏洞。“PHP将CVE-2026-129481和CVE-2026-129182与10月修复CVE-2026-109619未覆盖的情况关联起来,”根据分析。“第三个漏洞CVE-2026-129474通过8.5.12中引入的更改变得可远程访问。”

相关:F-Secure识别出26种AI可能对消费者造成伤害的方式,以及如何阻止它们

这三个漏洞都依赖于特定的配置和版本。CVE-2026-129474和CVE-2026-129182仅适用于PHP 8.5,而CVE-2026-129481不适用于PHP 8.2。CVE-2026-129474和CVE-2026-129182都依赖于PHP 8.5的致命错误回溯引擎功能,该功能在该版本中引入;而CVE-2026-129481所利用的会话清理行为是在PHP 8.3中引入的。

最后,在分析中提出的其他建议中,有一个更广泛的提示可能对使用PHP的组织广泛适用:“不要忘记容器镜像和捆绑自己PHP构建的设备。它们需要重新构建或供应商更新。”

与此同时,WatchTowr的Jake Knott告诉Dark Reading,CVE-2026-115560、CVE-2026-126714和CVE-2026-129289是该公司预计攻击者首先会攻击的漏洞。

无论如何,尽管这次的紧急程度不及上个月,但用户绝对应该尽快应用此最新更新。

每个人的PHP优先级将不同

仅仅因为一个漏洞被评为关键,并不一定意味着它对所有组织都同样适用,或者威胁行为者一定会像上个月的PHP2Shell漏洞那样针对每个问题。

Knott,WatchTowr的威胁情报负责人表示,组织必须考虑漏洞的利用方式,以及现实世界中利用的可能性。更具体地说,考虑该组织是否使用受影响的配置或满足利用的先决条件。只有这样,才能确定攻击者是否有可行路径,以及防御者如何优先保护他们的环境。

他说,开始的最佳地方是三个问题。首先,PHP是如何运行的(无论是PHP-FPM、Apache mod_php、php-cgi还是其他)?其次,会话是如何配置的,是否启用了会话上传进度?

相关漏洞

CVE-2026-129496 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129496 - Timezone cache use-after-free can lead to remote code execution
Timezone cache use-after-free can lead to remote code execution. In non-thread-safe builds, a diagnostic written to a file-based error_log during module startup, for example for an invalid date.timezone value or a session configuration warning, causes the timezone cache to be allocated in startup memory that is freed while a reference to it is kept. A diagnostic raised early in the first request of a worker, such as the max_input_vars warning, then accesses the freed cache. On such a deployment an unauthenticated remote attacker can crash PHP-FPM, Apache mod_php or CGI workers with a crafted request. Arbitrary code execution may be possible and has been demonstrated with known memory addresses. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129481 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129481 - Use-after-free after interrupted session shutdown
Use-after-free after interrupted session shutdown. The session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as stream_close() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache. This issue affects PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129474 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129474 - Use-after-free in magic method backtraces can lead to remote code execution
Use-after-free in magic method backtraces can lead to remote code execution. When collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this. This issue affects PHP versions 8.5.* before 8.5.13.
CVE-2026-129289 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129289 - PHP-FPM request smuggling through an unread HTTP request body
PHP-FPM request smuggling through an unread HTTP request body. PHP does not discard the unread part of an HTTP request body at request shutdown when the application has opened php://input without reading it to the end. When the front end reuses backend connections, which is not the default in nginx or Apache (for example nginx with fastcgi_keep_conn on, or Apache mod_proxy_fcgi with enablereuse=on), PHP-FPM can parse the leftover bytes as a new FastCGI request. An unauthenticated remote attacker can use a single crafted multipart/form-data request to forge a backend request with chosen parameters such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE, which can lead to execution of attacker-controlled PHP code. With LSAPI, subsequent requests on the connection can be disrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129182 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129182 - Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown. A fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution. This issue affects PHP versions 8.5.* before 8.5.13.
CVE-2026-126714 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-126714 - Partially overwritten session files can lead to remote code execution
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one, and bytes of an ordinary string can later be unserialized as objects. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-115560 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-115560 - Session serializer mismatch can lead to remote code execution
Session serializer mismatch can lead to remote code execution. Session upload progress, when enabled, can store attacker-controlled data in a session key using the php_binary or php_serialize session serializer. If the same session is later read with the php serializer, because session.serialize_handler is changed at runtime or differs between applications sharing a session store, bytes inside the key can be passed to the unserializer. A remote attacker able to submit a multipart upload can inject objects, which may lead to code execution when the reading application contains a suitable gadget chain, or to session corruption or denial of service. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-109619 CVSS 9.8 CRITICAL Analyzed
CVE-2026-109619 - PHP Stale Internal Request-State Vulnerability - [Actively Exploited]
PHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repopulated after being reset. The global state may then refer to request memory even after it has been freed. Subsequent requests may read or branch on this stale state before it is fully initialized. Multiple strategies can trigger this condition and produce remote code execution (RCE).
CVE-2026-109618 CVSS 9.8 CRITICAL Analyzed
CVE-2026-109618 - PHP Memory Corruption Vulnerability - [Actively Exploited]
PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).