# php2shell: what happened, who is affected, what to do

> The page https://skaldanalytics.com/security/php2shell/ as Markdown. Every page and guide: https://skaldanalytics.com/llms.txt . Skald is source-available (Elastic License 2.0).

Two critical PHP flaws, fixed on 21 October 2026, with attacks already seen. Only what the sources confirm, each linked.

Published 21 Oct 2026 · Updated 23 Oct 2026 · Sources, read 25 Oct 2026: [php.net, 21 Oct](https://www.php.net/archive/2026.php#2026-10-21-5), [php.net, 23 Oct](https://www.php.net/archive/2026.php#2026-10-23-1), [Cloudflare blog, 21 Oct 2026](https://blog.cloudflare.com/php-vulnerabilities-waf-protection/), [nodejs.org, 21 Oct 2026](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases)

On 21 October 2026 PHP fixed two critical flaws that let anyone on the internet run code on a PHP server without signing in. Cloudflare calls them php2shell and reports attacks already. This page lists only what the sources confirm. To see what your own site shows the world, [run the free check](https://skaldanalytics.com/check/): it takes ten seconds.

## What happened

1. 20 Oct PHP announced a critical security release for the next day: unauthenticated remote code execution, rated 9.2 on CVSS v4.0, a 0 to 10 severity score ([php.net, 20 Oct 2026](https://www.php.net/archive/2026.php#2026-10-20-1)).
2. 21 Oct, 03:02 UTC Cloudflare deployed firewall rules for the flaws, which it calls php2shell, on every plan with its WAF (web application firewall, which filters requests before they reach your server), the Free plan included. It reports attack traffic against its customers, and says the flaw leaked before the official release date ([Cloudflare blog, 21 Oct 2026](https://blog.cloudflare.com/php-vulnerabilities-waf-protection/)).
3. 21 Oct PHP released 8.5.12, 8.4.27, 8.3.36 and 8.2.35, which fix **CVE-2026-109618** and **CVE-2026-109619** ([php.net, 21 Oct 2026](https://www.php.net/archive/2026.php#2026-10-21-5)).
4. 21 Oct Node.js shipped its October security releases the same day: 22.23.4, 24.22.1 and 26.12.1 ([nodejs.org, 21 Oct 2026](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases)).
5. 23 Oct PHP published an informational advisory, **CVE-2026-115560**: an unlikely code execution path through session upload progress, under an unusual set-up. It suggests `session.upload_progress.enabled=0` until its next regular bugfix release; if you set it on 21 October, keep it ([php.net, 23 Oct 2026](https://www.php.net/archive/2026.php#2026-10-23-1)).

Some reports on social media go further; we only list what the sources above confirm.

## Who is affected

Every server running a PHP release older than the fixed release of its branch: PHP's advisory says all PHP installations serving web requests are at risk. It names the ways of running PHP that are at risk: **PHP-FPM** (the PHP process nginx or Apache hands requests to), **mod_php** inside Apache (the highest risk), **php-cgi**, **FrankenPHP** and **LiteSpeed**.

That includes sites you may not think of as PHP: WordPress and WooCommerce, Drupal, Joomla, Magento, Laravel and many shared hosting plans. A headless site whose pages come from Next.js can have a WordPress behind it on another address, such as `wp.` of your domain; that server needs the update too.

**PHP 8.1 and older get no official release with the fix.** PHP published source backports for 7.4, 8.0 and 8.1, and some distributions and LTS vendors ship backported fixes: ask yours. On those branches, plan the move to a supported one now.

If your site is hosted on a platform such as Shopify, Wix or Squarespace, the platform runs and patches its own servers; there is nothing for you to update.

## Is my server patched?

Compare your version with the fixed release of its branch: 8.3.36 fixes 8.3, and 8.3.10 is not fixed even though it is newer than 8.2.35.

- **On the server:** `php -v`. The command-line PHP can differ from the one serving your site; check the FPM binary too, for example `php-fpm8.3 -v`.
- **In WordPress:** Tools › Site Health › Info › Server.
- **From outside:** [the free check](https://skaldanalytics.com/check/) shows what your server tells anyone, with the proof for each finding. If your server hides the version, which is good practice, only the server itself can say.

## What to do now

1. **Update PHP** to the fixed release of its branch, then restart PHP: the FPM pool, or the web server when PHP runs inside it.
2. **Until you can update,** PHP's advisory lists mitigations. They reduce the exposure; they do not make a site safe:
  - `memory_limit=-1` through `php_admin_value` in the pool or virtual host;
  - `post_max_size` to 8M (32M on a site that takes uploads);
  - `session.upload_progress.enabled=0`, then restart the PHP workers;
  - on PHP 8.5, `fatal_error_backtraces=0`;
  - at the proxy, limit the request size, the number of form fields and the number of multipart parts.
3. **Behind Cloudflare?** Its rules help on plans with the WAF, and Cloudflare itself says customers should patch even with these protections.
4. **Node.js:** update to 22.23.4, 24.22.1 or 26.12.1, rebuild the app's image if it runs in a container, and restart it. Four of the ten fixes are rated High, among them CVE-2026-111497 in the Brotli decoder.

## What scanners do to every site

Scanners do not wait for an advisory: they ask every server for secret and config files every day. Skald's own audited Security figures for one of our sites, 17 to 20 October 2026:

Scanner probes a day on one of our sites

| Day | Probes | From addresses |
|---|---|---|
| 17 Oct | 4,148 | 102 |
| 18 Oct | 2,487 | 147 |
| 19 Oct | 3,039 | 115 |
| 20 Oct | 1,085 | 104 |

That is between 1,085 and 4,148 scanner probes a day, from 100 to 150 different addresses, asking for files like `/.env`, SSH keys, cloud credentials and Terraform files. Some got a page back. We checked every probe that got a page back: each was the same harmless app page any unknown address gets.

One of them, up close: [the AI-key thief](https://skaldanalytics.com/security/ai-key-thief/), a “visitor” that made 150 requests in 14 seconds, hunting our AI keys. The real log, line by line.

## Check your own log for probes

Your web server's access log has the same story. On a log in the common "combined" format, this lists the secret-file requests that got a 200, with the size of each answer:

```
awk '$9==200 && $7 ~ /\.(env|git|aws|ssh|sql|bak|tf|tfvars|key|pem)/ {print $7, $10}' access.log \
  | sort | uniq -c | sort -rn | head
```

In that format `$7` is the path, `$9` the status and `$10` the bytes sent. If every line shows the same size, the server answered all of them with one page, usually its harmless fallback page. A different size is worth opening yourself: it may be a real file.

Skald does this every day for every host, sets each answer against the host's own fallback page, and shows who is scanning you and which advisories apply to your stack. [See Security in Skald](https://skaldanalytics.com/security/).

## Next step

[Check what your site shows the world](https://skaldanalytics.com/check/): your PHP, WordPress and Node.js versions as anyone sees them, with the proof for each finding and the commands to check it yourself. Run sites for clients? [Check up to 10 at once](https://skaldanalytics.com/check/?urls=), with one PDF for all of them.

### Run it from your terminal or CI

The same check as a free command-line tool (MIT), one Python file with no dependencies, and a GitHub Action that can fail a build when an update is needed. [github.com/spcaeo/php2shell-check](https://github.com/spcaeo/php2shell-check)

Terminal

```
curl -sSL https://raw.githubusercontent.com/spcaeo/php2shell-check/main/php2shell_check.py | python3 - example.com
```

GitHub Action: a job under `jobs:` in your workflow

```
  php2shell:
    runs-on: ubuntu-latest
    steps:
      - uses: spcaeo/php2shell-check@v1
        with:
          url: example.com
```

[Check my site free](https://skaldanalytics.com/check/) [Security in Skald](https://skaldanalytics.com/security/)

Share this check: [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fskaldanalytics.com%2Fcheck%2F) [X](https://twitter.com/intent/tweet?text=php2shell%3A%20I%20just%20checked%20my%20site.%20Check%20yours%20in%2010%20seconds.&url=https%3A%2F%2Fskaldanalytics.com%2Fcheck%2F) [WhatsApp](https://wa.me/?text=php2shell%3A%20I%20just%20checked%20my%20site.%20Check%20yours%20in%2010%20seconds.%20https%3A%2F%2Fskaldanalytics.com%2Fcheck%2F)

Live demo

## Click around the real dashboard with sample data

Every section, 60 days of a made-up site. In your browser, nothing to install, no sign-up.

[Open the live demo](https://spcaeo.github.io/skald/)

Hosted Skald

## Start free. We set it up for you.

30 days free, no card. Your account is ready within one working day. Or run it yourself, free, with the [install guide](https://skaldanalytics.com/install/).

[Start free trial](https://skaldanalytics.com/beta/?choice=trial#signup) [Join the beta](https://skaldanalytics.com/beta/?choice=beta#signup)
