The “php2shell” PHP security alert: what happened, and what it means for your website
This week, a serious security flaw in PHP made headlines around the world. If you’ve seen the news and wondered whether your website is affected, this post explains what happened in plain terms, why WordPress sites deserve particular attention, what we’ve already done, and what every site owner should check.
The short version: the servers we host our clients’ websites on were protected within hours of the flaws becoming public, and patched by 22 October. If we host your site, you don’t need to do anything urgent. If your site was built or is hosted by someone else, please read on.
What happened, in plain terms
On 20 October, researchers at the security firms Wiz and Calif disclosed two critical flaws in PHP itself, tracked as CVE-2026-109618 and CVE-2026-109619 and nicknamed “php2shell”. The flaws had gone unnoticed in versions of PHP released over roughly the past decade, and they were found with the help of AI.
In simple terms, an attacker could send a website a specially crafted file upload. Depending on how the server is set up, that could crash the site or, at worst, let the attacker run their own code on the server: in effect, taking control of it. The attack relies on a PHP feature called “session upload progress”, which helps power the progress bars you see when uploading a file.
The response has been global. The PHP Foundation released fixes, and the UK’s National Cyber Security Centre (NCSC), US agencies, and agencies in the EU, Singapore and Australia issued urgent alerts. Organisations including Wikimedia, Edinburgh council, the BBC, the University of Geneva and several Scottish councils took websites offline as a precaution.
What is PHP?
Think of your website as a restaurant. The pages your visitors see are the meals on the table; PHP is the kitchen behind the scenes. Every time someone visits, PHP fetches the ingredients (your text, images and products from the database) and assembles the page they asked for.
According to Wiz, PHP runs around 70% of the world’s websites. That’s why a flaw in PHP itself, rather than in one particular website, caused such a scramble.
Why WordPress sites are especially exposed
WordPress runs on PHP, so every WordPress site sits on top of the affected software. But the risk isn’t only about PHP or WordPress core. Most WordPress sites also rely on add-ons, and that’s where weaknesses tend to pile up:
Outdated plugins that haven’t been updated in months or years.
Nulled or pirated themes and plugins, downloaded free from unofficial sites. These often contain hidden malicious code and never receive security updates.
Abandoned page builders and sliders whose developers have stopped maintaining them.
File-upload forms, such as CV uploads, quote requests or image galleries. Because php2shell is triggered through file uploads, any form that accepts files deserves a closer look.
Old PHP versions that no longer receive security updates. A site stuck on an unsupported version may never get a fix for this flaw, or the next one.
Experts expect attacks to continue for weeks. Smaller, poorly maintained sites are most at risk, because attackers scan the internet automatically, looking for whatever hasn’t been fixed.
How the incident unfolded
20 October: the flaws are disclosed publicly.
Within hours: tools for exploiting the flaws appear online, and attack attempts begin.
21 October: firewall protections start blocking the known attack patterns, buying time before patches arrive.
21–22 October: the PHP Foundation releases patched versions (8.5.12, 8.4.27, 8.3.36 and 8.2.35), and hosting providers roll them out.
The coming weeks: further attacks are expected, now that the technical details are public.
What site owners should do, step by step
- Confirm your host has patched. Ask your hosting provider directly whether PHP on your server has been updated to a fixed version. A firewall helps, but it’s a stopgap, not a fix.
- Check your PHP version is supported. You want PHP 8.2 or newer, because 8.1 and older no longer receive security updates. Your hosting control panel, or WordPress’s Site Health screen (under Tools), will usually show your version.
- Update WordPress core, plugins and themes. Then remove anything you aren’t using, and replace anything abandoned. A deactivated plugin can still be a risk while its files sit on the server.
- Check for signs of compromise. The NCSC advises checking for evidence of compromise, including backdoors left by attackers. Look out for:
- admin users you don’t recognise
- unfamiliar files, particularly in upload folders
- strange redirects to other websites, or pages you didn’t create
- forms or emails behaving oddly
5. Make sure you have backups. Keep recent, tested backups stored somewhere separate from the website, so you can recover quickly if the worst happens.
- Keep maintaining your site. This won’t be the last vulnerability. Regular updates and monitoring are what turn an emergency like this into a non-event.
What we’ve done for the sites we host and build
Every website we host is covered:
Attacks blocked: the servers we host on have been blocking the known attack patterns at the firewall since 21 October.
Scanners blocked: IP addresses scanning the internet for the flaw are blocked automatically.
Feature switched off: the upload feature the attack relies on was temporarily disabled as an extra safeguard.
Patches installed: patched PHP was installed on all servers by 22 October.
Health checks: we’ve reviewed every site we host, checking its PHP and WordPress versions, so we know straight away which need more attention.
Will you notice anything? Almost certainly not. While the fixes were rolling out, some upload progress bars may have appeared blank, but uploads carried on working normally.
On our own builds, we don’t use risky third-party plugins or themes: no nulled downloads, no abandoned page builders, and nothing we can’t vouch for. But no website is immune to a flaw in the software underneath it. Where an older site we look after still runs an unsupported version of PHP or WordPress, we’ll contact you directly to arrange an upgrade, taking a full backup first and testing afterwards.
Was your site built by someone else? Let us check it for free
If your website was built by another agency or a freelancer, or it relies on third-party plugins and themes, you may not know which PHP version it runs, whether your host has patched, or whether an attacker has left anything behind.
We’re offering a free security and PHP health check. We’ll look at your PHP version, your WordPress core, plugins and themes, and the common warning signs of compromise. Then we’ll give you a plain-English summary of what’s fine and what needs attention, with no obligation.
Get in touch with Purple Moon Designs to book your free check, whether you’re in the UK or the UAE.
Peace of mind with a care plan
Our website care plans include regular updates, security monitoring and backups, so issues like this are handled before you need to think about them. Ask us about a care plan that suits your site.
Sources
BBC News: What is
PHP and why did it spark a global cyber-security scramble?
Wiz: php2shell research
UK National Cyber Security Centre: Critical security issue affecting PHP
US CISA: Critical vulnerabilities in PHP require immediate patching
The PHP Foundation
