PHP2Shell is two critical flaws in PHP itself, the language behind roughly seven in ten websites, including every WordPress site. One unauthenticated request can be enough to take over the server, and attacks have already been seen. Fixed versions came out on 21 October 2026. If your site runs on PHP, find out who patches the server (usually your host or web agency), ask them to confirm in writing that it is done, and use the check at the top of this page to see what your site gives away.
On 21 October 2026 the PHP project released emergency fixes for two critical vulnerabilities, now known as PHP2Shell (CVE-2026-109618 and CVE-2026-109619). The release was brought forward a day because details had already leaked online, and Amazon’s threat intelligence team says it saw an exploitation attempt against one of its honeypots on 17 October, four days before anything was public.
This is not a WordPress plugin problem or a bad password problem. It sits in the engine that runs the website, which is why it matters even if your site is small, simple and up to date.
Why this one is different
Most website security advice is about the application: keep WordPress, themes and plugins updated, use strong admin passwords, add MFA. All still true. PHP2Shell goes underneath all of that.
It runs before your site does. According to the PHP security team, the exploit can fire before any of your website’s own code runs. A perfectly maintained WordPress install on an unpatched server is still exposed.
It hits every common setup. PHP-FPM, Apache with mod_php, php-cgi, LiteSpeed and FrankenPHP are all named as affected. Apache with mod_php is rated the highest risk.
Attacks have started. Cloudflare, Amazon and watchTowr have all reported exploitation attempts since disclosure. Nobody has publicly confirmed a successful break-in yet, but that is usually a matter of time, and proof-of-concept code is already circulating.
If your website runs on PHP, the question is not whether you are affected. It is who is responsible for patching the server, and whether they have.
Who actually needs to do something
Most small businesses do not run their own web server, and that is fine. What matters is knowing who does.
| How your website is hosted | Who patches PHP | What you should do |
|---|---|---|
| Shared hosting or managed WordPress (cPanel, Plesk and similar) | Your hosting company | Ask them to confirm the servers running your site are on a fixed PHP version |
| A web agency built and hosts it | The agency, or whoever they host with | Email them today and ask for written confirmation |
| Your own VPS or cloud server | You, or your IT provider | Update PHP, restart every PHP worker, then check for signs of compromise |
| Wix, Squarespace, Shopify and similar builders | The platform | Nothing on the server side; they run their own infrastructure |
If you do not know which row you are in, that is the first thing to find out. It is also worth knowing for the next critical flaw, because there will be one.
The fixed versions
The PHP project released fixes in these versions:
- PHP 8.5.12 or later for the 8.5 branch
- PHP 8.4.27 or later for the 8.4 branch
- PHP 8.3.36 or later for the 8.3 branch
- PHP 8.2.35 or later for the 8.2 branch
PHP 8.1 and older are out of support. The PHP security team published source-code patches for 7.4, 8.0 and 8.1, but there are no official releases. If your site is on one of these, it is relying on your host or Linux vendor having applied those patches, and it is overdue an upgrade regardless.
Linux distributions such as Ubuntu, Debian and Red Hat often fix PHP without changing the version number you see. A server reporting an "old" version may already be patched, and the only reliable answer comes from whoever manages it. That is why we say "ask for written confirmation", not "check the number".
If it cannot be patched today
Updating PHP is the only complete fix. In the meantime:
- Put the site behind a web application firewall. Cloudflare has deployed rules for the known attack patterns, including on its free plan. It only protects traffic that goes through Cloudflare, and Cloudflare itself calls it a stopgap.
- Apply the configuration workarounds. The PHP team lists setting
memory_limitto-1(in a way applications cannot override) andsession.upload_progress.enabledto0, then restarting every PHP worker. These reduce exposure; they do not remove it. - Take it offline if you have to. The UK’s National Cyber Security Centre has urged organisations to consider taking offline any system that cannot be fixed immediately.
It is not just your website
PHP turns up in more places than the marketing site. Intranets, booking systems, ticket desks, file-sharing tools and some network appliances run on it. Palo Alto Networks has said all PAN-OS and Panorama versions are affected, with fixes still to come, and Cisco and Fortinet are assessing dozens of products. If you have a firewall, VPN or management portal facing the internet, check the vendor’s advisory page this week.
After patching: look back, not just forward
Because attempts were seen from 17 October, a patched server is not automatically a clean one. Amazon recommends treating that date as the starting point for any investigation. On a server you manage, look for:
- New or unexpected admin accounts in your CMS or on the server
- Unfamiliar PHP files in upload folders or the web root
- Changed files you did not change, or scheduled tasks you did not create
- Unusual outbound connections from the web server
If you hold Cyber Essentials, remember that critical and high-risk updates must be applied within 14 days of release. For PHP2Shell, that clock started on 21 October. Unpatched internet-facing servers are one of the most common reasons businesses fail.
Check your own site
The check at the top of this page is free. Enter your domain and it makes one normal request to your homepage, the same as any visitor, and reports what your server reveals: whether it looks like PHP, the version if it is shown, and whether that version is in the affected range.
It does not attack or probe anything, so it has limits. Many well-run servers hide their version, and distribution backports can make a patched server look vulnerable. Treat it as a quick first look, not a clean bill of health.
Where we come in
For our managed clients, critical patches like this are already handled: we know where every server sits, who hosts it, and what version it runs. For everyone else, we are happy to find out who is responsible for your website and other internet-facing systems, chase the confirmation for you, and tell you plainly whether there is anything to worry about.
Last updated 22 October 2026. This is a fast-moving story; details on exploitation and vendor fixes may change. Sources include the PHP security advisory, Tenable and Help Net Security.