Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 12h 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 · 12h 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 Команда оценки безопасности
← Назад
⚡ Разведотчёт

Как WAF Cloudflare помогает защититься от phpAfterShell и других критических уязвимостей PHP

19 ноября 2026 года компания по исследованию безопасности depthfirst раскрыла уязвимость phpAfterShell (CVE-2026-126714) в стандартном файловом обработчике сессий PHP, которая может привести к удаленному выполнению кода. По системе оценки уязвимостей (CVSS) 4.0 она получает 9.2 из 10 (Критическая). Проект PHP исправил ее в тот же день в версиях 8.2.36, 8.3.37, 8.4.28, 8.5.13 и 8.6.0. Эти релизы исправляют 16 других уязвимостей безопасности, шесть из которых также оценены как критические. Веб-аппликационный фаервол (WAF) Cloudflare блокирует известные шаблоны атак phpAfterShell, включая клиентов на бесплатном тарифе. Защита обеспечивается правилом удаленного выполнения кода PHP, которое мы впервые внедрили в октябре 2026 года для уязвимостей php2shell. Это правило уже обнаруживало часть шаблона атаки phpAfterShell до раскрытия уязвимости, а 19 ноября мы обновили его логику обнаружения, чтобы охватить phpAfterShell. Правило является частью как бесплатного управляемого набора правил Cloudflare, так и управляемого набора правил Cloudflare, включено по умолчанию, и его действие по умолчанию - Блокировать.

В том же релизе WAF мы добавили три новых правила в управляемый набор правил Cloudflare для платных тарифов: одно для уязвимости подмены запросов в PHP-FPM (CVE-2026-129289) и два для уязвимостей в расширении SOAP PHP (CVE-2026-15353 и CVE-2026-129506), которые PHP исправил в тех же релизах. Эти правила включены по умолчанию с действием Лог, поскольку шаблоны запросов, которые они ищут, также могут появляться в легитимном трафике, и блокировка по умолчанию может его нарушить. Клиенты могут просматривать совпадающие запросы в событиях безопасности и изменить действие на Блокировать, как только они подтвердят, что правила не влияют на легитимный трафик.

WAF является дополнительным уровнем защиты, а не заменой патча. Несколько критических уязвимостей зависят от конфигурации сервера или могут быть достигнуты через пути, которые WAF не видит, и единственным полным исправлением является обновление PHP и перезапуск каждого работника. Наши аналитики продолжают отслеживать активность атак и будут обновлять правила по мере появления новых техник и вариаций. Вы можете отслеживать изменения правил в журнале изменений WAF и следить за развитием уязвимостей в специальном брифинге Cloudflare Zero Wire.

На данный момент нет никаких признаков того, что эти уязвимости были использованы. На 19 ноября 2026 года ни одна из 17 уязвимостей не была указана в каталоге известных эксплуатируемых уязвимостей CISA, и ни один из источников, которые мы проверили, не сообщает о эксплуатации в дикой природе.

Что мы знаем о phpAfterShell

PHP по умолчанию хранит данные сессии в файлах. Когда приложение вызывает session_start(), PHP читает файл сессии и десериализует его содержимое в массив $_SESSION. Когда запрос заканчивается, PHP записывает обновленную сессию обратно в тот же файл. phpAfterShell срабатывает, когда эта запись прерывается. Файл сессии может содержать начало новых данных сессии, за которым следует конец старых. При следующем запросе session_start() десериализует это смешанное содержимое. Если злоумышленник контролировал старые данные, PHP может в конечном итоге десериализовать объекты по выбору злоумышленника.

Злоумышленник, пытающийся использовать уязвимость, вероятно, сначала будет искать способ поместить контролируемые данные в сессию. В уведомлении PHP упоминаются два способа:

Прогресс загрузки сессии, функция PHP, которая записывает информацию о текущей загрузке файла в сессию. Удаленный клиент может использовать это для формирования хранимых данных.

Приложения, которые хранят большие строки, контролируемые пользователем, в сессии.

Согласно PHP, выполнение кода также требует прерывания в полезной точке записи и подходящей цепочки гаджетов десериализации в приложении. depthfirst сообщает, что он достиг выполнения кода без гаджета приложения, связав второй, нераскрытый баг повреждения памяти в классе, родном для PHP. Источники, которые мы проверили, не устанавливают, исправлен ли этот второй баг в релизах 19 ноября.

depthfirst утверждает, что он обнаружил и сообщил о phpAfterShell. Запись CVE приписывает заслуги Лео Лину и Асахи как репортерам.

Другие критические уязвимости

Те же релизы исправляют еще шесть критических уязвимостей. Каждая из них требует специфической конфигурации для эксплуатации:

CVE Компонент Влияние Условия

CVE-2026-129289 PHP-FPM Неаутентифицированный злоумышленник может подменить второй запрос FastCGI в PHP-FPM и выполнить код PHP как работник. Фронтенд, который повторно использует соединения FastCGI бэкенда (nginx с fastcgi_keep_conn включен, Apache mod_proxy_fcgi с enablereuse=on или HAProxy), путь приложения, который открывает php://input, не читая его до конца, и путь существующего скрипта PHP.

CVE-2026-115560 Сериализатор сессий Инъекция объектов через несоответствие между сериализаторами сессий. Впервые освещено в нашем брифинге php2shell, теперь исправлено. Прогресс загрузки сессии включен. PHP расширил область: приложения, пулы или задания командной строки, которые используют разные сериализаторы и делят хранилище сессий, подвержены воздействию.

CVE-2026-129496 Кэш часового пояса Использование после освобождения, которое может привести к сбою нового работника и, возможно, выполнению кода. PHP продемонстрировал выполнение кода локально с известными адресами памяти.

Не потокобезопасные сборки, где диагностическая информация запуска была записана в файл журнала ошибок PHP.

CVE-2026-129481 Завершение сессии Использование после освобождения, описанное PHP как неполное исправление для CVE-2026-109619. Выполнение кода не продемонстрировано. PHP 8.3 и новее.

CVE-2026-129474 Обратные трассировки фатальных ошибок Использование после освобождения в обратных трассировках магических методов. PHP 8.5 и новее, где обратные трассировки фатальных ошибок включены по умолчанию. Установка zend.exception_ignore_args=1, значение по умолчанию для php.ini-production, блокирует продемонстрированную атаку.

CVE-2026-129182 Обратные трассировки фатальных ошибок Использование после освобождения. Выполнение кода не продемонстрировано. PHP 8.5, специфические настройки на уровне пути и конфигурация Apache на уровне каталога или фронтенд, который производит раннюю диагностику.

Кто подвержен воздействию

Уязвимые версии - это PHP 8.2 до 8.2.36, 8.3 до 8.3.37, 8.4 до 8.4.28, 8.5 до 8.5.13 и кандидаты на релиз 8.6.0. Подверженность развертывания зависит от условий каждой уязвимости. PHP 8.1 и более ранние версии находятся на этапе завершения поддержки. depthfirst

Упомянутые уязвимости

CVE-2026-15353 CVSS 6.3 MEDIUM Awaiting Analysis
CVE-2026-15353 - SOAP information disclosure through malformed array dimensions
SOAP information disclosure through malformed array dimensions. The SOAP extension reads an uninitialized array position when decoding an encoded array whose arraySize attribute is empty, whitespace-only or non-numeric, or when such dimensions come from a WSDL definition. Four bytes of unrelated heap data can then be used as an integer key in the decoded array. An unauthenticated remote client can trigger this with a crafted request to a SoapServer endpoint, and a malicious SOAP server with a response to SoapClient. Heap memory is disclosed only if the application returns or otherwise exposes the decoded array. 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-129506 CVSS 6.3 MEDIUM Awaiting Analysis
CVE-2026-129506 - SOAP use-after-free when processing DTD entity references
SOAP use-after-free when processing DTD entity references. The SOAP extension frees the document type definition (DTD) of a parsed XML document while attribute values can still refer to entities it owns, and can then read freed memory. Removing the DTD also bypasses the SOAP server's rejection of documents that contain one. An unauthenticated remote attacker who can send a crafted request to a SOAP endpoint, or who controls a WSDL or schema document loaded by the application, can crash the PHP process and cause denial of service. Memory disclosure and code execution have not been confirmed. 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-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).
CVE-2023-50387 CVSS 7.5 HIGH Modified
CVE-2023-50387 - BIND DNSSEC CPU Denial of Service Vulnerability
Certain DNSSEC aspects of the DNS protocol (in RFC 4033, 4034, 4035, 6840, and related RFCs) allow remote attackers to cause a denial of service (CPU consumption) via one or more DNSSEC responses, aka the "KeyTrap" issue. One of the concerns is that, when there is a zone with many DNSKEY and RRSIG records, the protocol specification implies that an algorithm must evaluate all combinations of DNSKEY and RRSIG records.