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 修复 7 个关键漏洞,包括可能导致远程代码执行的错误

PHP 基金会发布了安全更新,以解决多个关键安全漏洞,这些漏洞可能被利用以实现对受影响部署的远程代码执行,包括 CVE-2026-115560。

补丁的发布是在项目维护者提前通知用户的情况下进行的,通知中提到在特定条件下影响所有受支持的 PHP 版本的多个关键漏洞,包括非默认配置或不常见的设置。

从高层次来看,成功利用这些缺陷可能为远程代码执行、会话破坏、拒绝服务、内存损坏或本地特权提升铺平道路。

漏洞列表如下 -

CVE-2026-115560 (CVSS 分数: 9.2) - 一种不当输入验证漏洞,可能导致远程代码执行、文件修改、会话破坏或拒绝服务。 (在 PHP 8.2.36、8.3.37、8.4.28、8.5.13、8.6.0 中修复)

CVE-2026-129182 (CVSS 分数: 9.2) - 一种使用后释放漏洞,可能导致内存损坏和可能的完全远程代码执行,如 CVE-2026-109619 所示。 (在 PHP 8.5.13、8.6.0 中修复)

CVE-2026-126714 (CVSS 分数: 9.2) - 一种检查时使用时(TOCTOU)漏洞,可能导致以 PHP 工作者的权限执行任意代码。成功利用需要攻击者对会话数据的影响、在写入的有用点中断以及具有合适反序列化小工具链的应用程序。 (在 PHP 8.2.36、8.3.37、8.4.28、8.5.13、8.6.0 中修复)

CVE-2026-129289 (CVSS 分数: 9.2) - 一种不一致的 HTTP 请求解释漏洞,可能导致以工作者身份执行攻击者控制的 PHP 代码,而无需其他用户的交互或非默认的 PHP 配置。成功利用需要一个能够启用持久后端连接的前端和一个在未完全读取“php://input”的情况下打开的应用程序路径,例如 nginx 启用 fastcgi_keep_conn、Apache mod_proxy_fcgi 启用 enablereuse=on、HAProxy FastCGI 应用程序保持后端连接和 LSAPI。 (在 PHP 8.2.36、8.3.37、8.4.28、8.5.13、8.6.0 中修复)

CVE-2026-129474 (CVSS 分数: 9.2) - 一种使用后释放漏洞,可能导致 PHP 8.5 及更高版本上的远程代码执行。成功利用依赖于应用程序,并需要控制足够的请求数据以影响内存分配、可达的魔术方法调用以及相关点的致命错误。 (在 PHP 8.5.13、8.6.0 中修复)

CVE-2026-129481 (CVSS 分数: 9.2) - 一种使用后释放漏洞,可能导致应用程序的会话清理失败,并可能损坏内存、崩溃重用的 PHP 工作者,或可能允许远程代码执行。 (在 PHP 8.3.37、8.4.28、8.5.13、8.6.0 中修复)

CVE-2026-129496 (CVSS 分数: 9.2) - 一种使用后释放漏洞,可能允许未经身份验证的远程攻击者崩溃 PHP 工作者或以其权限在受影响的部署上执行任意代码。 (在 PHP 8.2.36、8.3.37、8.4.28、8.5.13、8.6.0 中修复)

CVE-2026-129291 (CVSS 分数: 8.8) - 一种使用后释放漏洞,可能导致本地特权提升。成功利用需要在 FPM 工作者中执行本地代码、受影响的池启用 catch_workers_output、epoll 事件后端,以及能够操纵工作者生命周期并保留继承的管道描述符。 (在 PHP 8.2.36、8.3.37、8.4.28、8.5.13、8.6.0 中修复)

Depthfirst 将 CVE-2026-126714 命名为“phpAfterShell”,并将其描述为一种关键漏洞,可以使远程攻击者在受影响的服务器上运行任意代码。

“如果 pwrite()/ftruncate() 更新被中断,PHP 可能会留下一个格式错误的会话文件,随后由 session_start() 加载,从而产生一个任意反序列化原语,”Depthfirst 说。“与我们另一个 PHP 原生反序列化到 RCE 的发现链在一起,这直接导致远程代码执行。”

换句话说,该漏洞通过操纵 PHP 将会话数据写入磁盘的方式,将中断的文件写入转换为潜在的远程代码执行原语,导致其将先前无害的数据解释为可执行对象数据。

然后,它利用 PHP 工作者在写入过程进行时死亡的意外会话状态,留下一个部分更新的文件,或者在写入完成后死亡,但在删除上一个会话的内容之前。两种情况都导致两种不同会话状态的混合。

“根据中断发生的位置,新会话的一部分可能已经被写入,而来自上一个会话的字节仍然保留在磁盘上,”安全研究员吴宇航说。“结果可能是一个会话文件,包含新序列化数据的前缀和旧数据的尾部。”

“通过仔细选择新前缀中的长度字段,攻击者可以使 PHP 的会话解码器将先前仅是普通字符串的一部分剩余字节解释为单独的会话条目和序列化对象。在上传进度回调本身中不需要进行反序列化。攻击者只需将正确的字节留在磁盘上,并等待应用程序调用 session_start(),此时 PHP 读取修改后的会话并反序列化这些对象。”

一旦一个有效会话的前缀与替换会话的尾部拼接,后续会话将把损坏的数据视为合法的服务器端状态。这反过来导致 PHP 将其解释为“不同的、有效的会话”,并最终通过将其与 PHP 原生类中的内存损坏链在一起,启用远程代码执行。

它影响任何运行受影响 PHP 版本并使用基于文件的会话的应用程序。如果无法立即修补,建议关闭会话上传进度。

针对这些缺陷的补丁可在以下版本中获得 -

PHP 8.2.36

PHP 8.3.37

PHP 8.4.28

PHP 8.5.13

PHP 8.6.0

相关漏洞

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-129291 CVSS 8.8 HIGH Awaiting Analysis
CVE-2026-129291 - PHP-FPM epoll use-after-free can lead to local privilege escalation
PHP-FPM epoll use-after-free can lead to local privilege escalation. When catch_workers_output is enabled and the epoll event backend is used, the PHP-FPM master can close a worker's output pipe in fpm_child_close() without removing the associated event, and the delayed cleanup can free the worker record while its epoll registration is still active. A later event is then dispatched through a pointer into freed memory. A local attacker who can execute PHP code in an FPM worker can crash the master or execute code with its privileges, commonly root. catch_workers_output is disabled by default but enabled in the official PHP-FPM Docker images. This issue affects PHP versions from 8.1.20 through 8.1.34, from 8.2.7 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-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-118383 CVSS 10 CRITICAL Analyzed
CVE-2026-118383 - Pre-authentication use-after-free in MongoDB Server replica set primary catch-up
A use-after-free in the replication component of MongoDB Server can occur when a newly elected replica set primary completes catch-up. The condition can be caused by requests that do not require authentication, and may result in the server terminating unexpectedly or, under certain conditions, arbitrary code execution in the context of the server process. Replica set members are affected, including the shard and config server replica set members of sharded clusters; standalone mongod instances are not.
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).