Try for free Log in

CDN Exploit Shield against php2shell and phpAfterShell

php2shell crashes PHP while it reads an upload and reuses what the crash left behind; phpAfterShell plants PHP objects in session files; a forged FastCGI request can hide in an unread body. The CloudFilt CDN Exploit Shield spots these patterns and refuses them while you update PHP.

Free up to 3,000 requests per month and per site. No credit card required.

Exploit attempts Blocked

PHP exploit attempts

Goes after
PHP sites behind the CloudFilt CDN / WAF
Caught by
Crashed uploads, Second step caught, Session injection refused, phpAfterShell refused, Smuggled FastCGI refused, Optional rules, your choice, Observe, then block

How CloudFilt stops PHP exploit attempts

Running nginx too? The nginx2root flaws of November 18 are covered on their own page.

The PHP flaws the shield covers

Every flaw below is in PHP itself, not in your CMS, your plugins or your code: a site is exposed whatever it runs, as soon as its unpatched PHP uses the feature concerned (file uploads and sessions, PHP-FPM, the SOAP extension).

php2shell, disclosed October 21, 2026

  • CVE-2026-109618: PHP runs out of memory while it reads a crafted upload and stops halfway, leaving the request half set up.
  • CVE-2026-109619: What that crash leaves behind survives into the next request, for instance through the upload progress feature of PHP sessions.

Session upload progress, disclosed October 23, 2026

  • CVE-2026-115560: A crafted upload progress entry injects PHP session data when two parts of a site read the same sessions with different serializers.

phpAfterShell, disclosed November 19, 2026

  • CVE-2026-126714: phpAfterShell: an interrupted session write leaves old session data behind, which PHP then reads back as objects chosen by the attacker.

PHP-FPM request smuggling, disclosed November 19, 2026

  • CVE-2026-129289: A request body PHP leaves unread can carry a second, forged FastCGI request that PHP-FPM runs as if your web server had sent it. Covered by an optional rule, see below.

SOAP extension, disclosed November 19, 2026

  • CVE-2026-129506: A SOAP request carrying a DTD with entities makes the SOAP extension use memory it already freed, crashing the PHP worker. Covered by an optional rule, see below.
  • CVE-2026-15353: A SOAP array whose arraySize describes no dimension makes PHP read a few bytes of uninitialized memory into the decoded array. Covered by an optional rule, see below.

Update PHP first

Only a PHP update fixes these flaws: PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 or later, or the patched package of your Linux distribution or of your host. Debian, Ubuntu and most hosting panels ship the fix without changing the version number, so check the changelog of your package, or ask your host. Each advisory above lists the fixed versions. After the update, restart PHP-FPM or Apache so that every worker runs the new version.

A web firewall does not replace this update, ours included. What it can do is make the attack much harder to complete while you patch.

How the CDN Exploit Shield helps

When your site sits behind the CloudFilt CDN / WAF, every request goes through us, and so does the answer of your server. The Exploit Shield watches that exchange:

  • an upload that makes your server answer with an error 500 is the trace of the first php2shell step: twice from the same visitor within 10 minutes, and in Block mode that visitor is banned for 24 hours on all our servers, with no captcha to lift it;
  • an upload carrying the PHP upload progress field is the second step: after any crash it is paused for 10 minutes, whoever sends it, so switching IP does not finish the attack;
  • a “|” in a field name or in the upload progress value is how session data gets injected: in Block mode that upload is refused and its sender banned at once. A “|” in a file name, which macOS and Linux allow, only gets the upload refused;
  • phpAfterShell plants PHP objects in the session through upload progress: an upload whose field names, file names or progress value carry a serialized PHP object is refused;
  • a forged FastCGI request hidden in a request body, file contents included, is refused before PHP-FPM can read it.

For CVE-2026-126714, CVE-2026-129289, CVE-2026-129506, CVE-2026-15353, the shield refuses the request from day one; banning its sender starts once we have checked, across our network, that the rule refuses nothing legitimate.

Requests posted from another website are only ever refused, never banned: a malicious page could make any visitor's browser send them. When your server fails for many visitors at once, a crash under load or a maintenance, the shield raises its ban threshold instead of banning your customers.

Start in Observe mode: the shield lists what it would have refused, banned or paused and blocks no one. Switch to Block once you trust what you see.

Optional rules

Some flaws can only be stopped by refusing request shapes that a few legitimate clients also send. Each of these rules has its own switch in Settings, off until you turn it on:

  • SOAP requests with a DTD (CVE-2026-129506): Applies to every XML request body sent to this website, SOAP or not: an XML API or a feed that legitimately carries a DTD is refused too. XML in UTF-16 or another encoding we cannot read, and compressed bodies we cannot unpack, are refused as well.
  • SOAP arrays without dimensions (CVE-2026-15353): An XML request body whose arraySize attribute holds no number is refused, SOAP or not. Like the DTD rule, it also refuses XML in UTF-16 or another encoding we cannot read, and compressed bodies we cannot unpack.

What it does not do

  • The first malicious upload of php2shell still reaches your server. The shield breaks the chain, it does not make PHP safe.
  • A server set to display PHP errors answers a crash with a normal page instead of an error 500: the shield cannot see that crash.
  • Form uploads are always scanned in full. Other request bodies (API uploads, WebDAV, backups) are scanned on their first 64 MB by default; beyond that size they are refused in Block mode, unless you raise the size (up to 1024 MB) or let larger bodies through unscanned.
  • Traffic sent to your server directly, without going through the CDN, is not inspected.
  • It only applies to sites behind the CloudFilt CDN / WAF, not to sites protected by our plugins or code snippets alone.

The same PHP release fixes other critical flaws that no firewall can see, because they depend on the state of your server rather than on what a visitor sends. Only the update protects you from them:

  • CVE-2026-129496: A use-after-free in the timezone cache, reachable once PHP has written a startup diagnostic to its error log.
  • CVE-2026-129481: A use-after-free at session shutdown on PHP 8.3 and later.
  • CVE-2026-129474: A use-after-free in fatal error backtraces through magic methods, on PHP 8.5.
  • CVE-2026-129182: A use-after-free in fatal error backtraces under specific per-directory settings, on PHP 8.5.

Turn it on

Put your site behind the CloudFilt CDN / WAF, then open Settings, Exploit Shield, and choose Observe or Block. The same tab lists the flaws covered, the optional SOAP rules and the latest events.

Put your site behind the CDN / WAF

From request to verdict

Each request is scored from the front and the back end, then allowed, challenged or blocked before it reaches your server.

  1. Visitor

    A browser, a script or a bot sends a request to your website or API.

  2. Nearest point of presence

    The CDN / WAF, or your plugin, hands the request to the closest point of presence.

  3. Signals

    IP reputation, behaviour, rate, country and your own rules, weighed in real time.

  4. Verdict

    • Allowed to your site
    • Challenge captcha first
    • Blocked never reaches you

Other threats CloudFilt stops

All solutions