Cloudflare WAF блокирует известные шаблоны атак, использующих уязвимость phpAfterShell в PHP, в том числе для клиентов бесплатного тарифа Free, сообщила Cloudflare. Уязвимость может привести к удалённому выполнению кода и получила оценку 9,2 из 10 по шкале CVSS 4.0.[1][2]
Проект PHP исправил phpAfterShell и ещё 16 уязвимостей в версиях 8.2.36, 8.3.37, 8.4.28, 8.5.13 и 8.6.0. По данным проекта PHP, шесть из остальных уязвимостей также получили критический рейтинг.[3]
Защита Cloudflare основана на правиле PHP remote code execution, которое компания впервые развернула в октябре 2026 года против уязвимостей php2shell. 19 ноября Cloudflare обновила логику обнаружения, чтобы она охватывала phpAfterShell. Правило входит в Cloudflare Free Managed Ruleset и Cloudflare Managed Ruleset, включено по умолчанию и по умолчанию выполняет действие Block.[4][5]
phpAfterShell возникает при прерывании записи сессии: файл может сохранить начало новых данных и конец старых. При следующем запросе PHP десериализует смешанное содержимое.[6]
Cloudflare предупредила, что WAF не заменяет установку исправления: «Единственное полное исправление — обновить PHP и перезапустить каждый worker». По данным компании, на 19 ноября ни одна из 17 уязвимостей не входила в каталог CISA Known Exploited Vulnerabilities; пока, по всей видимости, признаков их эксплуатации нет.[7][8]
On November 19, 2026, the security research company depthfirst disclosed phpAfterShell (CVE-2026-126714), a vulnerability in PHP's default file-based session handler that can lead to remote code execution. Under the Common Vulnerability Scoring System (CVSS) 4.0, it scores 9.2 out of 10 (Critical).
The PHP project fixed it the same day in versions 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0. These releases fix 16 other security vulnerabilities, six of them also rated critical.
The protection comes from a PHP remote code execution rule we first deployed in October 2026 for the php2shell vulnerabilities. That rule already detected part of the phpAfterShell attack pattern before the vulnerability was disclosed, and on November 19 we updated its detection logic to cover phpAfterShell.
The rule is part of both the Cloudflare Free Managed Ruleset and the Cloudflare Managed Ruleset, is enabled by default, and its default action is Block.
phpAfterShell is triggered when that write is interrupted. The session file can then hold the beginning of the new session data followed by the end of the old one. On the next request, session_start() deserializes this mixed content.
The WAF is an additional layer of defense, not a replacement for the patch. Several of the critical flaws depend on server configuration or can be reached through paths a WAF does not see, and the only complete fix is to upgrade PHP and restart every worker.
There appears to be no indication so far that these vulnerabilities have been exploited. As of November 19, 2026, none of the 17 vulnerabilities was listed in CISA's Known Exploited Vulnerabilities catalog, and no source we reviewed reports exploitation in the wild.