Updating WordPress will not fix PHP2Shell. Your host has to.
A serious flaw in PHP, the software under every WordPress site, is being used in attacks. Here is how to check your site in five minutes.
The short version
- PHP2Shell is a pair of critical flaws in PHP, the software that runs WordPress and a large share of the web. Fixes came out on 21 October.
- Attackers are now using the flaws. US cyber security officials confirmed this on 26 October.
- The fix has to go on the server that runs your website. Updating WordPress or its plugins does not apply it.
- Check your PHP version and ask your host to confirm the fix in writing. Support for PHP 8.2 ends on 31 December, so plan an upgrade if you are on 8.2 or older.
What happened
On 21 October, the people who maintain PHP released emergency fixes for two critical security flaws. Together they are known as PHP2Shell. Under the right conditions, they let an attacker take control of a web server without logging in.
PHP is the code that runs behind the scenes on a huge number of websites, including every WordPress site. When you load a page, PHP builds it on the server before it reaches your browser. Most visitors never know it is there.
The flaws had gone unnoticed for over a decade. Researchers at the security firms Calif and Wiz found them with the help of AI tools, which can read code far faster than people can. Details leaked before the planned announcement, so the fixes came out early.
The UK's National Cyber Security Centre (NCSC) issued an alert the same day. Organisations around the world took sites offline as a precaution, including Wikimedia, Edinburgh council and some UK government services.
Attacks have started
When the BBC first reported on PHP2Shell, nobody knew of a successful attack. That has changed.
- On 24 October, researchers saw attackers use the flaws successfully against decoy servers, which are set up to attract attackers.
- On 26 October, the US Cybersecurity and Infrastructure Security Agency added PHP2Shell to its list of flaws known to be used in attacks.
- Researchers have shown working attacks against sites built on WordPress, Drupal and Joomla.
- A third, separate PHP flaw has since been found. It only affects servers with an unusual mix of settings. PHP has published a workaround while it prepares a full fix.
Experts quoted by the BBC said smaller organisations with poorly maintained websites are most at risk. That includes many small business websites.
Why updating WordPress is not enough
Many business owners assume they are safe if WordPress says everything is up to date. Not in this case.
WordPress and its plugins sit on top of PHP. The update button in your WordPress dashboard updates WordPress, but it does not touch the PHP software on the server underneath. Whoever manages your hosting has to update that.
Check your website in five minutes
- Find your PHP version. In WordPress, go to Tools, then Site Health, then the Info tab, and open the Server section. Your hosting control panel usually shows it too.
- Compare it with the fixed versions. You need PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or a later version in the same series. PHP 8.1 and older are no longer supported and will not get the fix.
- Email your host. Ask them to confirm in writing that the PHP2Shell fixes are on your server. Quote the official reference numbers, CVE-2026-109618 and CVE-2026-109619. Many hosts patched quickly, but get it in writing.
- Look beyond your website. Booking systems, client portals, old microsites and even some office network equipment can run PHP. The NCSC advises finding every PHP installation you have, not only the old ones.
If a fix cannot go on quickly, the NCSC says to consider taking the site offline until it can. That sounds drastic, but it costs far less than cleaning up a hacked server.
Ethical hacker Ken Munro told the BBC that patching is "a bit like running a Windows update". It is usually quick. The hard part is knowing it needs doing, and knowing whose job it is.
Two dates for your diary
31 December 2026: PHP 8.2 support ends
After this date PHP 8.2 gets no more security fixes. If your site runs on 8.2 or older, plan the move to a supported version now. Some older themes and plugins stop working on newer PHP, so test on a copy of the site first.
Around 8 December 2026: WordPress 7.2
This is the last major WordPress release of the year. If you are upgrading PHP anyway, test both changes together on a staging site, which is a private copy of your website. Take a full backup first and have a plan to roll back.
More of these fixes are coming
These flaws were not new. What changed was the ability to find them. AI tools can now search old code for weaknesses faster than any person, and attackers have the same tools. OpenAI, whose tools helped find PHP2Shell, has said as much.
Expect more urgent fixes like this, not fewer. Agree now who looks after the software under your website, rather than finding out after something goes wrong.
The publicity around PHP2Shell also helps scammers. Be wary of unexpected emails offering to "fix" your website or asking you to log in somewhere.
What we would do
For most small businesses, this comes down to one question: who checks that the software under your website is up to date? If you are not sure, settle that first.
We look after WordPress websites for small businesses, from updates and backups to the hosting underneath. If you would like us to check your site for PHP2Shell, get in touch and we will tell you where you stand.
Sources
- BBC News, What is PHP and why did it spark a global cyber security scramble? (22 October 2026, updated 23 October)
- NCSC: Critical security issue affecting PHP
- BankInfoSecurity: PHP2Shell actively exploited, US cybersecurity agency warns
- SecurityWeek: PHP2Shell exploitation moves from probes to working shells
- NHS England Digital: Critical vulnerabilities in PHP (CC-4875)
- OffSeq Radar: PHP threats, including CVE-2026-115560
- PHP2Shell campaign tracker
- TechEnclave: PHP releases emergency fixes for two critical server flaws
- InstaWP: WordPress 7.2 release date and features