On October 21, 2026 two serious flaws in PHP, the language behind a huge share of the web, were made public. They are called CVE-2026-109618 and CVE-2026-109619, have a score of 9.2 out of 10, and are already referred to in the industry as PHP2Shell. They allow an attacker to make the server run commands without knowing any password. It concerns anyone who runs a PHP site or application, WordPress included.
What worries people most is the timing: the first exploitation attempts appeared before the fixes were ready. Dane Knecht, Cloudflare's CTO, reported attacks already under way about six hours before the updates were released.
How it works, in brief
The problem arises when a web request is interrupted, for example because the server runs out of memory. At that point PHP leaves invalid data in a memory area and reuses it later, and that is where an attacker can insert their own code. One of the attack chains observed goes through the session.upload_progress directive, which is enabled by default.
The most exposed setup is Apache's mod_php. The PHP project notes that an unauthenticated request can trigger the flaw before the application even starts. That means no credentials are needed, and WordPress security plugins do not stop the attack. Installations with PHP-FPM, php-cgi, FrankenPHP and LiteSpeed also remain at risk.
Which versions are at risk
| Branch | Vulnerable | Fixed in |
|---|---|---|
| 8.5.x | before 8.5.12 | 8.5.12 |
| 8.4.x | before 8.4.27 | 8.4.27 |
| 8.3.x | before 8.3.36 | 8.3.36 |
| 8.2.x | before 8.2.35 | 8.2.35 |
| 8.1 and earlier | yes | no official update |
For the 8.1 branch and earlier, some Linux distributions and LTS vendors are preparing fixes on their own. If your version is no longer supported, the safest route is to move to an active branch. If that is not possible, ask your provider whether a backported fix exists.
Be careful with version numbers too: some distributions keep the same number even after applying the fix. Alongside php -v, it is worth checking the package changelog.
What to do now
- Check the PHP version on your server. If you are on shared hosting, ask your provider whether the update has already been applied.
- Update PHP to the correct branch, starting with sites exposed to the internet. On many hosts the provider does this, but it should be confirmed.
- Restart PHP-FPM or the web server and check the version again.
- Check the logs. Look for web server processes launching shells,
curl,wgetor similar tools, or for files and accounts you do not recognise. For the at-risk period, some advise starting from the logs of October 20, 2026. - If the update cannot be applied straight away, isolate the applications exposed to the internet, following the interim guidance published by the PHP project.
- Check third-party products. Appliances, containers and software that bundle their own copy of PHP must be updated separately.
What we don't know yet
On some points, reports do not agree. The Canadian Centre for Cyber Security, in its advisory, had not yet detected large-scale active exploitation, while warning that the situation could change quickly. Cloudflare, by contrast, reports attempts already in progress. It is not clear how many organisations have been compromised. There are also claims about older versions, back to 5.4, but they have no official confirmation.
For this reason, it is not worth waiting for certainty: if you run a PHP site, update now and check the logs.
Why it matters for small businesses too
Many shop, professional practice and tradesperson sites run on WordPress or on PHP-based management software hosted on shared hosting. Those who manage them often do not even know which PHP version is active. A call to your provider is enough to find out whether you are exposed. An update applied in time avoids the worst risk: customer data stolen or pages changed without anyone noticing.
If you want a check of your site or guidance on what to update, get in touch.
