Cloudflare published a blog post about deploying protections against php2shell. We're talking about flaws not in a plugin, not in a CMS, and not in a specific framework, but in the PHP runtime itself. According to the description in the source, exploitation lets an attacker execute malicious code on a vulnerable server and reach the data stored on it. The name "php2shell" reads as a path from PHP to a full-blown shell on the machine — that's our interpretation, not a quote from the source.
The protection works like this: Cloudflare enabled a set of rules in its web firewall. The WAF inspects the HTTP request before it hits the origin — headers, parameters, body — and cuts off anything that looks like an exploitation attempt. The request simply never reaches the PHP interpreter. Enabling it takes minutes in the dashboard, with no ssh, no apt, and no php-fpm restart. Updating the runtime itself is a whole different story.
PHP powers a huge chunk of the web, and that's the main reason this news matters at all. A hole in the runtime means a patch isn't "install a plugin" — it's upgrading the PHP version on every host. On shared hosting with hundreds of sites on one machine, such an upgrade stretches over weeks: someone breaks old code, someone simply doesn't notice. Our assessment: that's exactly why perimeter protection comes first — it relieves the pressure right now while admins deal with versions.
What this changes for a specific person. If your domain goes through Cloudflare, you got a stopgap filter for free and with almost no effort — but only as a stopgap. If it doesn't, nothing has changed for you, and the only path is updating PHP. The second change is subtler: the WAF becomes insurance against "until the patch ships." That's convenient, and it's also dangerous, because the habit of "turn on a rule and forget" accumulates over years.
Who wins. Cloudflare — yet another argument for "keep your traffic with us," and these appear to be managed rules from the standard set. Hosting providers that won't have to panic-update everything in 24 hours. The losers are those running old PHP with no proxy and no resources for migration — and by my experience, there are more of them than one would like to think.
The source is a truncated snippet, and it lacks the most important things: no CVE identifiers, no list of vulnerable PHP versions, no data on whether exploitation is being observed in the wild. It's unclear whether the rules are part of the free managed set or a paid option. There's also no assessment of how easily the filter can be bypassed by obfuscating the payload. So read Cloudflare's actual post and check your PHP version through the project's official channels, not through a retelling.
Prediction: within a quarter, major shared hosting providers will start forcibly moving accounts off affected PHP branches to current ones — unless it turns out that exploitation requires an exotic configuration.
Source: Cloudflare Blog
Source: blog.cloudflare.com · post in Telegram