English edition · cyberattaques.org in FrenchFrançais
IT news

Cloudflare WAF blocks PHP flaw phpAfterShell for all customers, including Free plans

Cloudflare says its web application firewall now blocks phpAfterShell, a critical flaw in PHP's default session handler that can lead to code execution. The change covers every Cloudflare customer, Free plans included, and matters to anyone running PHP sites.

What to do now Illustration photo (web server code security)

On 20 November 2026 Cloudflare published a blog post about phpAfterShell, a vulnerability it describes as critical in PHP's default session handler. According to the company, exploiting it can result in code execution on the affected server.

The change Cloudflare is announcing concerns its web application firewall: the rules that block this flaw apply to all customers, including those on the Free plan. Some managed rules are normally limited to paid tiers.

Cloudflare is also adding new rules for other PHP flaws that were fixed in the same PHP release. The available summary does not name those flaws or give CVE identifiers for them.

The source does not state which PHP versions are vulnerable or which version contains the fix. It only says the flaws were fixed in a single PHP release, which indicates a fix is available from the PHP project.

WAF filtering only covers traffic that passes through Cloudflare. PHP servers that can be reached directly, or that sit behind another provider, remain exposed until PHP itself is updated.

Action plan

What to do now

  1. Identify PHP servers that rely on the default session handler and check the official PHP release notes for the version that fixes phpAfterShell.
  2. Upgrade PHP to the fixed release as soon as it has been validated in your environment.
  3. If your sites are proxied through Cloudflare, confirm in the dashboard that WAF managed rules are enabled.
  4. As general good practice, make sure origin servers cannot be reached directly in a way that bypasses the WAF.

Sources