What to know now
PHP2Shell is a flaw in the PHP engine itself, so anything running on PHP is in scope, WordPress or hand-written. When php.net shipped 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on 21 October, it said there is no complete mitigation short of updating. Four weeks on, pre-fix versions still show up in our sample of Korean organisations every week.
What we saw
Across the four weeks, only three organisations in the sample stated a PHP version in their response headers at all, and all three were pre-fix. One stayed the same in all four runs. One stopped showing a version in the last run; from outside we cannot tell whether it hid the header or updated. The third showed a pre-fix version for the first time in the last run.
Most servers hide their version. So two is not the number of organisations running a pre-fix PHP; it is the floor of what can be seen from outside.
What to do
- Check the PHP your web server really runs, on the server (
php -valone is not enough: look at the version PHP-FPM and the web server use). - Update to the fixed release of your branch (8.5.12, 8.4.27, 8.3.36 or 8.2.35) or later and restart PHP-FPM and the web server. 8.1 and older get no fix; move to 8.2 or later.
- For distribution packages (Ubuntu, Debian, RHEL), don’t judge by the number; compare with your distribution’s security notice.
- Separately from updating, stop announcing the version in headers (
expose_php = Off). It does not fix the flaw, but makes you a less obvious target next time.