On the evening of 20 October 2026 the PHP security team gave advance notice of two critical vulnerabilities, both rated 9.2 out of 10 under CVSS v4.0, and released the fixes on Wednesday 21 October at 16:00 South African time. PHP rarely pre-announces a release. It did so this time because details had already leaked.
PHP runs most of the web’s content management systems, including WordPress, WooCommerce, Magento, Drupal and Laravel applications. If your business has a website, there is a good chance PHP is behind it. This post covers what the flaws are, how to find every copy of PHP you are responsible for, and what to do now that the patches are out.
What the two flaws are
PHP’s advisories name the flaws as CVE-2026-109618 and CVE-2026-109619. Both allow remote code execution, meaning an attacker on the internet can run their own commands on your server, with no login needed. Both sit in PHP itself rather than in any plugin, theme or framework, so nothing you change inside WordPress or your shop closes them. The fix is a new PHP on the server.
The first flaw abuses the way PHP handles running out of memory while it is still reading a request, and every published method uses multipart requests, the format browsers use for file uploads. The second lets leftover state from one request survive into the next request handled by the same worker process. PHP has confirmed working exploits against Apache with mod_php, the setup most shared hosting uses, and says PHP-FPM, FrankenPHP and LiteSpeed are exposed too.
Details leaked on 20 October, a day before the fix, after a post on Hacker News named the flaws. The security firm watchTowr told BleepingComputer the bugs were real, and screenshots of an exploit tool called PHP2Shell circulated before the patch was out. At the time of writing, the evening of 21 October, no attacks had been confirmed. With the detail now public, expect that to change within days.
Which PHP versions are fixed
The fixed releases are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Every earlier release in those branches is affected. PHP 8.1 and everything older, including the whole of PHP 7 and 5, reached end of life and get nothing from the PHP project.
That matters because old PHP is common. Shared hosting accounts set up years ago, internal tools nobody has touched, and appliances with a web interface often run PHP 7.4 or earlier. Some Linux distributions carry their own security fixes for older PHP packages for a time, and some hosts maintain patched builds, so an old version is a question to ask rather than a lost cause. But the honest default is that unsupported PHP stays vulnerable.
Linux distributions and hosting panels ship the same fix under their own package versions, so the number on a Debian or Ubuntu server may read differently. Check the package changelog for the two CVE numbers, or ask your host to confirm the 21 October release is applied.
How to find every PHP you are responsible for
Most businesses discover during an incident that they run more PHP than they thought. Work through these four places.
- Hosted websites. Log in to your hosting control panel. cPanel, Plesk and most South African hosts show the PHP version under a setting called PHP version, MultiPHP or PHP selector. WordPress also shows it under Tools, then Site Health, then Info, then Server. Write down the version for each site.
- Servers you run yourself. On each Linux server, run the command below. Check for more than one copy, because a server often carries a system PHP and a second one installed for a particular application.
- Containers and images. Any Docker image built from a php, wordpress, or similar base image carries its own PHP, fixed at build time. List the images you deploy and the PHP tag each one uses.
- Things you forgot were websites. Intranet pages, a ticketing system, a supplier portal, a monitoring dashboard, a router or NAS admin page. If it has a login page, find out what serves it.
php -v
which -a php php-fpm php8.3 php8.2 php7.4
docker images | grep -i php
For sites a web agency or managed host looks after, send one message today: which PHP version runs our site, when will you apply the 21 October PHP release, and will you confirm when it is done. A host that cannot answer the first question is telling you something.
If you cannot patch today
- Apply the interim settings. PHP says the patch is the only complete fix, but two settings narrow the attack. Turn off session upload progress (session.upload_progress.enabled = 0) and restart PHP. If the application takes no file uploads, refuse multipart requests at the web server. We ran both on our own systems until the patched image arrived.
- Take a backup now. A fresh copy of each site’s files and database, stored somewhere the web server cannot reach. If a site is compromised before you patch, you want a clean point to go back to.
- Put a firewall in front of anything exposed. A web application firewall such as Cloudflare or your host’s equivalent will not fix PHP, but it buys time once rules for these flaws appear.
- Isolate what cannot be patched. An internal tool on PHP 7 should be reachable only from the office network or over a VPN. If it is on the public internet today, take it off until it is replaced.
- Decide who patches what. For each entry in your inventory, name the person or company responsible and the time by which they will have it done.
Patching, in order
- Patch internet-facing systems first. Public websites and anything with a login page on the open internet. Internal systems come next.
- Rebuild containers rather than patching inside them. Pull the updated base image, rebuild and redeploy. The official php and wordpress images were rebuilt on the fixed releases within hours of the announcement.
- Move off unsupported PHP. A site on PHP 7.4 or 8.1 needs an upgrade to 8.2 or later. For WordPress that is usually a setting change and a round of plugin updates; test it on a staging copy first.
- Watch for signs of compromise. Huntress recommends alerting when a PHP process starts a shell, an interpreter or a download tool. Look for new or recently changed PHP files in upload folders, which is where attackers plant their own code.
- Confirm and record. Check the version on each system after the update, and keep the inventory. You will need it again.
Most of the work here is knowing what you run. The patch itself takes minutes once that list exists, and the list is the part most businesses do not have. Build it today.
Need help finding or upgrading your PHP? Tell us what’s on fire