---
title: "Cloudflare WAF blocks phpAfterShell PHP RCE (CVE-2026-126714), including on Free — Cloud Changelog"
description: "On November 19, 2026, the security research company depthfirst disclosed phpAfterShell (CVE-2026-126714), a vulnerability in PHP's default file-based sess…"
url: "https://cloudchangelog.com/cloudflare/cloudflare-blog-2026-11-20-7066f202a884"
updated: "2026-11-20"
---

[Back to feed](https://cloudchangelog.com/feed/2026-W47)

November 20, 2026 · CloudflareRelease

# Cloudflare WAF blocks phpAfterShell PHP RCE (CVE-2026-126714), including on Free

- [WAF](https://cloudchangelog.com/products/cloudflare/waf)
- [Security, identity and compliance](https://cloudchangelog.com/search?q=security)

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.

Cloudflare’s web application firewall (WAF) blocks known phpAfterShell attack patterns, including for customers on the Free plan. 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.

In the same WAF release, we added three new rules to the Cloudflare Managed Ruleset for paid plans: one for a request smuggling flaw in PHP-FPM (CVE-2026-129289), and two for flaws in PHP's SOAP extension (CVE-2026-15353 and CVE-2026-129506) that PHP fixed in the same releases. These rules are enabled by default with the Log action, because the request patterns they look for can also appear in legitimate traffic, and blocking by default could disrupt it. Customers can review matching requests in Security Events now and change the action to Block once they confirm the rules do not affect legitimate traffic.

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. Our analysts continue to monitor attack activity and will update the rules as new techniques and variations appear. You can track rule changes in the WAF changelog and follow how the vulnerabilities develop in the dedicated Cloudflare Zero Wire briefing.

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.

PHP stores session data in files by default. When an application calls session\_start(), PHP reads the session file and deserializes its content into the $\_SESSION array. When the request ends, PHP writes the updated session back to the same file.

Free. Unsubscribe any time.

[Read on blog.cloudflare.com](https://blog.cloudflare.com/phpaftershell-waf-protection/)

## Related updates

- Nov 19, 2026

  [WAF Emergency Release - 2026-11-19](https://cloudchangelog.com/cloudflare/2026-11-19-emergency-waf-release)
- Oct 23, 2026

  [WAF Release - 2026-10-23 - Emergency - Cloudflare Free Ruleset](https://cloudchangelog.com/cloudflare/2026-10-23-emergency-waf-release-free)
- Oct 30, 2026

  [WAF Release - 2026-10-30](https://cloudchangelog.com/cloudflare/2026-10-30-waf-release)
- Nov 3, 2026

  [WAF Release - 2026-11-03](https://cloudchangelog.com/cloudflare/2026-11-03-waf-release)
- Oct 21, 2026

  [Buildpacks PHP patch updates: 8.5.12, 8.4.27, 8.3.36 and 8.2.35](https://cloudchangelog.com/gcp/2026-10-21-buildpacks-feature) · Google Cloud

[All WAF changes](https://cloudchangelog.com/products/cloudflare/waf)

## Contact

- [YouTube](https://www.youtube.com/@cloudchangelog)
