php2shell: is your site exposed, and what to do in the next 24 hours

If your website runs on PHP, and about 7 in 10 sites do, it needs PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 or newer today. Anything older is exposed to php2shell, two flaws that let an attacker run their own code on your server without logging in. PHP 8.1 and older get no official fix at all.
The flaws are CVE-2026-109618 and CVE-2026-109619. The PHP project shipped the fixes on 21 October 2026 and says every PHP install that serves web pages is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, with mod_php the most exposed (PHP security releases). The bug goes back to versions released in 2012, Amazon Web Services saw exploit attempts from 17 October, and Australia’s Signals Directorate issued a rare critical alert (ABC News, 22 October 2026). AI tools helped find it, and the race now is to patch before attackers reach you (Fortune, 21 October 2026).
I do web application security audits. Below is the check I run first: pick where your site lives, type its PHP version, and you get a verdict and the steps for your setup. Nothing you type leaves the page.
Which PHP versions are fixed?
| PHP branch | Fixed in | |—|—| | 8.5 | 8.5.12 | | 8.4 | 8.4.27 | | 8.3 | 8.3.36 | | 8.2 | 8.2.35 | | 8.1, 8.0, 7.4 and older | No official release. The PHP security team published backport branches; the safe move is to upgrade. |
Source: the PHP project’s security releases of 21 October 2026. The 8.6 release candidates are test builds, not for live sites.
How do I find my PHP version?
- WordPress: Tools, then Site Health, then Info, then Server.
- A web host or cPanel: look for “Select PHP version” or “PHP settings” in the hosting panel.
- Your own server: run
php -v, and check what the web server actually runs with a phpinfo page you delete straight afterwards. - Not sure: ask whoever hosts or built the site which PHP version is live, and whether it is one of the fixed versions above. Ask for the answer in writing.
What if I can’t update today?
Limit access or take the site offline until you can; that is the advice from the security experts quoted by ABC News. The PHP project also lists temporary settings for people running their own servers. They lower the risk but do not remove it:
ini
memory_limit = -1
post_max_size = 8M
upload_max_filesize = 2M
session.upload_progress.enabled = 0
Set them where your site cannot override them (the PHP-FPM pool or the server config), enforce request size limits at your web server or proxy, then restart every PHP worker. Updating is the only full fix.
What should I do after patching?
Assume anything the server could read may have been seen, especially if the site was unpatched after 17 October:
- Change database passwords, API keys and admin passwords, and turn on two-step sign-in for admins.
- Look for changes you did not make: new admin users, new or edited files in upload and plugin folders, and unknown scheduled tasks.
- Keep backups from before 17 October separate, in case you need a clean copy.
- Watch for unusual sign-ins and payment activity over the next few weeks.
Is my WordPress site affected?
If it runs on PHP older than the fixed versions, yes: WordPress runs on PHP, so the flaw sits underneath it whatever plugins you use. Most managed WordPress hosts update PHP for you, but check the version in Site Health rather than assuming.