A critical PHP flaw can hand your whole site to an attacker.
Check a site now
Enter your site, a client's, or any site you are responsible for. It is read from the outside, one host. You see the result here and get the report with the fix steps by email. Your site and email are kept only to send that report; otherwise only anonymous totals are counted. It looks past the home page for the PHP system underneath: WordPress, WooCommerce, Drupal, Joomla, Magento, Laravel and more.
By pressing Check you agree that Kyle Clouthier (Clouthier Simulation Labs, simgen.dev) can email you this report, and at most one email a month about PHP fixes for your site after. Unsubscribe any time.
Look after several sites? Check up to 10 at once.
Built by Kyle Clouthier. I fix these for a living: PHP upgrades, patches and cleanups for small business and agency sites. Ontario, Canada.
Over 2,000 checks since 21 Oct. This checker and my check-php.php are listed in the Dutch NCSC's PHP2Shell community catalog.
PHP shipped an emergency fix on 21 October 2026 for flaws rated 9.2 out of 10 that let an attacker run their own code on the server with no password. The details leaked and exploit code was published before the patch was. About 69% of the web runs PHP, and government sites went offline to wait for it. Official updates only exist for PHP 8.2 to 8.5. Sites on 8.1 or older, WordPress or not, have no update to install, and stay open unless their host backports the fix.
Patched versions, released 21 Oct 2026
8.5.12 · 8.4.27 · 8.3.36 · 8.2.35
8.1, 8.0 and 7.4: no release, only raw source patches. Older than 7.4: nothing.
How to find your PHP version, and which versions are still supportedAGENCIES, IT AND MULTI-SITE OWNERS
Check all your sites at once
Paste up to ten sites and get one list, worst first: which are on an end-of-life version, which still need today's update, and which hide their version. Then get one review and one price for the whole lot.
Got more than ten, or client sites you are responsible for? Ask for a portfolio review and I will go through all of them.
THE EXACT ANSWER
Check the exact version from inside your own site
The checker above reads your site from the outside, so when the version is hidden it can only tell you it runs PHP. The one way to get the exact version is from inside the site itself. This is safe, it is what your own tools do, and it only works if you can already put a file on the server, which proves it is yours.
- 1Download check-php.php (or copy the code)
- 2Upload it to your site’s main folder
- 3Open yourdomain.com/check-php.php in a browser
- 4Read your version. The file deletes itself
<?php
// check-php.php - shows your exact PHP version once, then deletes itself.
// It sends nothing anywhere. The link below only opens if you click it.
echo 'PHP ' . PHP_VERSION;
echo PHP_VERSION_ID < 80200
? ' -> END OF LIFE, no official update. Upgrade needed.'
: ' -> supported. Apply the latest patch for your branch.';
// Remove this file so your version is not left public.
echo @unlink(__FILE__) ? ' (this file has deleted itself)' : ' (please delete this file now)';
$v = PHP_MAJOR_VERSION >= 8 ? PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION : PHP_MAJOR_VERSION;
echo '<p><a href="https://simgen.dev/php-patch-check/?v=' . $v . '&full=' . urlencode(PHP_VERSION) . '#ver">See what this means for your site</a></p>';Not sure how to upload a file, or want it done across every site you run? That is exactly what the free review covers.
FREE AND OPEN SOURCE
Run servers or ship code?
The same checks, built for hosts, sysadmins and dev teams. MIT licence, read every line before you run it.
Every PHP install on a server
One script lists every PHP build on the box (cPanel, Plesk, DirectAdmin, CloudLinux, LiteSpeed, multi-PHP), marks which still need the fix, and catches PHP-FPM still running old code after an update.
sudo bash check-all-php.shgithub.com/KyleClouthier/php2shell-check →
Fail the build, not the server
A GitHub Action that flags a PHP version without the fix in your runner, composer.json, Dockerfiles and workflows, right on the line in the pull request.
uses: KyleClouthier/php2shell-action@v1On the GitHub Marketplace →
RIGHT NOW
Do this in the next hour
Exploit code is already out, so the gap between the patch and an attack is short. In order:
- 1
Find out your PHP version
Use the checker above, your hosting panel, or run php -v on the server.
- 2
On 8.2 to 8.5: update now
Install 8.5.12, 8.4.27, 8.3.36 or 8.2.35, then restart PHP (PHP-FPM or the web server) so the fix actually loads.
- 3
Ask your host
Large managed hosts were given the patch early. Ask in writing whether your server is already on a fixed version.
- 4
On 8.1 or older: no update to install
PHP only published raw source patches for 7.4, 8.0 and 8.1, meant for people who build PHP themselves. Ask your host in writing whether they have applied one. If not, the fix is moving to a newer version, and if that cannot happen today, consider taking the site offline until it does.
- 5
Stopgap only
Setting session.upload_progress.enabled = Off in php.ini is being shared as a temporary measure. Security researchers say it may not fully protect you. It buys time; it is not a fix.
- 6
Then check nothing got in
Look for new admin users, files you did not upload and recently changed files. A site that was open before the patch may already have a backdoor. Security firms suggest looking back as far as June 2026.
LIVE UPDATES
What has happened so far
Last updated 23 Oct 2026, 16:30 UTC. Newest first.
23 Oct · afternoon · latest
PHP has disclosed a third flaw, CVE-2026-115560, and the 21 October updates do not fix it. It is narrow: it only affects applications that switch the session serialize handler to "php" at runtime while upload progress is on, and PHP considers it an unlikely risk. No attacks on it are reported. PHP will fix it in a normal release, not an emergency one, and until then recommends setting session.upload_progress.enabled to 0 at the server level, the same setting it already suggested for PHP2Shell. Keep the 21 October update installed: it still closes the two flaws attackers are actually going after. If you are on Ubuntu or Debian with an older PHP, your distribution has shipped backported PHP2Shell fixes, so check the package changelog rather than the version number.
Source: The Hacker News, Cybernews
23 Oct
Attackers are now trying to use PHP2Shell to plant botnet malware. Sophos and Arctic Wolf describe a Mirai-based botnet called Potassium being pushed through the flaw, built to turn hijacked servers into a flood weapon. Cloudflare counted tens of thousands of attempts 45 minutes after the flaws were announced and millions by early 22 October. Censys still counts more than 34.4 million PHP services as vulnerable as of today. The researchers tracking it report scanning and probing but no confirmed break-ins yet, and CISA has still not added the flaws to its list of exploited vulnerabilities. A botnet does not care how small your site is. If you have not checked yet, check now.
Source: The Hacker News, Amazon Threat Intelligence, CISA KEV
22 Oct · evening
Posts are claiming code execution on PHP 8.5.12, after the fix. Read the detail before you panic: the security firm tracking it says the demonstration is a lab setup that needs unusual session settings and a weakness in the application itself, is separate from the two PHP2Shell flaws, and is not proof the 21 October fixes were bypassed. PHP has not confirmed it. Keep the update installed. One real side effect: PHP verified a crash bug in 8.4.27 and 8.5.12 that affects some sites using SimpleXML. It is fixed in PHP's code and waiting for the next release. If your site crashes after updating, do not roll back to an unpatched version; ask your host or developer. If your site does not need upload progress, turning off session.upload_progress.enabled at the server level is extra protection PHP itself recommends.
Source: Syhunt research notes, PHP bug #24488
22 Oct · evening
The French data protection authority (CNIL) came back online at about 15:40 UTC, a little over a day after it went dark. When we checked at 19:00 UTC, the Dutch data protection authority still did not answer and the French prefecture sites still showed a maintenance page, so 48 of the 50 sites on the public outage tracker are back. Still no confirmed break-in has been reported: Amazon, watchTowr and Cloudflare describe exploitation attempts and attacks on their sensors, and CISA has not added the flaws to its list of exploited vulnerabilities.
Source: PHPocalypse Tracker, The Register, CISA KEV
22 Oct · midday
A day after the fix shipped, most sites that went dark are back, but not all. A public tracker of sites taken offline during the PHP2Shell scramble lists 50, and 47 have returned. Still offline when we checked at 12:00 UTC: the French data protection authority (CNIL), whose site shows only a maintenance page that gives no reason, the Dutch data protection authority, whose site did not answer, and several French prefecture sites. If the regulators who enforce data protection are still working on it, a small business site with nobody watching it is worth a check today.
Source: PHPocalypse Tracker, CNIL
22 Oct · NSA
The US National Security Agency published an advisory on PHP2Shell. It tells organizations to take an inventory of everything that relies on PHP and patch it, to replace end-of-life PHP that will not be compatible with patching, and, if an immediate update is not feasible, to take the system offline until it is fixed. It says attackers are likely to weaponize the flaws and that they are serious enough to require immediate patching across US government departments.
Source: NSA
22 Oct · Canada
In Canada, some Government of Canada websites were taken offline as a precaution on the advice of the Canadian Centre for Cyber Security, Minister Evan Solomon said, adding they will come back once patches are applied. Montreal’s transit authority, the STM, shut down stm.info before noon and moved riders to a backup site, and Quebec’s liquor board, the SAQ, took its site down as a preventive step, saying no breach was detected.
Source: CTV News
22 Oct · overnight
Palo Alto Networks counts more than 22.6 million exposed servers potentially vulnerable to PHP2Shell. VulnCheck’s decoy servers caught what an attack looks like: a request from a China-based address tried to plant a one-line backdoor that runs any command the attacker sends, using the upload-progress trick, then tried to read it back. That attempt failed: the page the attacker used to read the backdoor back did not exist on the decoy. Attackers are already trying this against real addresses.
Source: TechTarget (Palo Alto figure), VulnCheck
22 Oct · overnight
Not every host is patched yet. GoDaddy says its Managed WordPress servers are fixed, but its regular Web Hosting and Windows Hosting are still waiting on patched PHP packages from its vendor, with temporary mitigations in place (its last update was 19:30 UTC). GoDaddy VPS customers have to update PHP themselves. In Germany, the host Uberspace switched PHP off entirely while it patched. If you are on shared hosting, ask your host in writing whether your server has the fix.
21 Oct · late
DigitalOcean emails all of its customers: every PHP version from PHP 5 on is affected, and it is suspending its one-click WordPress, LAMP, LEMP and Laravel images until they are patched. Anyone who installed one earlier has to update it themselves. It also warns it “may temporarily restrict traffic to resources showing signs of compromise”, so an unpatched site that gets hacked can be taken offline by its own host. (Source: DigitalOcean customer email, 21 Oct.)
Source: PHP advisory it links to
21 Oct · night
Calif’s technical write-up adds a worrying detail: on Apache with mod_php, the attack works against “arbitrary PHP scripts”. No WordPress or framework is needed; a single forgotten PHP page, contact form or old script on the server can be enough. Calif also stresses that the temporary settings changes “do not replace a patch”.
Source: Calif write-up
21 Oct · night
Calif, one of the firms that found the bugs, says it confirmed full takeover without a password on WordPress, Drupal, Joomla, Magento, MediaWiki, Nextcloud, phpMyAdmin, Roundcube webmail, Laravel, Symfony and the WHMCS hosting billing system, and that the flaws are “always exploitable under default configurations”, reaching back to PHP 5.4.0 from 2012. Security firm Hadrian says the flaws are being exploited in the wild at scale, and still were after the fix shipped. Exploit attempts are hitting sensors at watchTowr, Cloudflare and Patchstack. CISA and Huntress say they have not yet seen a successful attack.
Source: Calif, Hadrian, SecurityWeek
21 Oct · night
Only some WordPress sites are covered. Automattic says sites hosted on WordPress.com, WordPress VIP, WP Cloud, Pressable and Tumblr are already protected. The millions of WordPress sites on other hosts are not: updating WordPress, themes or plugins does nothing, PHP itself has to be updated, and sites on 8.1 or older have no update to install at all.
Source: Automattic, Huntress
21 Oct · evening
Big names are pulling services while they patch: Nintendo took services offline, and the Wikimedia Foundation, which runs Wikipedia, shut down a number of its support services. How-To Geek also reports outages at Asana and GOG. The NSA now joins CISA in telling anyone who cannot update to take systems offline. Detectify estimates that about half of PHP websites run versions that no longer get patches, and researcher Silas Cutler puts up to 1.3 million hosts at risk. watchTowr says no attack has succeeded so far.
Source: The Record, How-To Geek, Insurance Business, Newsweek
21 Oct · evening
The US cyber security agency CISA issues an alert: it strongly urges organisations to patch immediately, and says systems that cannot be updated, or that run PHP 8.1 or earlier, should be taken offline until patched. CISA says it has not observed exploitation itself so far, while several security firms report attack attempts.
Source: CISA
21 Oct · evening
Governments are pulling sites offline. Finland’s state IT centre Valtori restricted public internet traffic to government web services as a precaution, with outages at the National Land Survey and the University of Helsinki. Cyber security agencies in Europe, Australia, Japan and Britain told PHP users to update immediately or take sites offline until they can. Wordfence warns that WordPress automatic updates will not apply this fix, because it is in PHP, not WordPress.
Source: Helsinki Times, Global News (Reuters), Bloomberg
21 Oct · evening
watchTowr now says it is observing active exploitation attempts against both flaws, and the Dutch NCSC expects large-scale exploitation in the short term. A public proof-of-concept lab for testing the flaws has been posted on GitHub. No confirmed break-in has been published yet, and neither flaw is on CISA’s exploited list.
Source: watchTowr, SecurityWeek, Cybersecurity News
21 Oct · evening
BambooHR, the HR and payroll service, takes itself offline in the US, Canada and Ireland over PHP2Shell, warning that payroll will be interrupted and giving no restore time. In the Netherlands the parliament’s site, the national cyber security centre, Tweakers and several education systems are also offline as a precaution.
Source: The Hacker News, Sansec
21 Oct · evening
Sansec expects mass exploitation now that the patch and the technical write-ups are public. Researchers say nearly every PHP version back to 5.4 is affected. No confirmed break-in has been published yet, and neither flaw is on CISA’s exploited list.
Source: Sansec, The Hacker News
21 Oct · afternoon
Exploitation reports still conflict. watchTowr says its honeypot network has seen attacks and Patchstack reports confirmed incidents, while Huntress and the Dutch NCSC have not seen exploitation. Neither flaw is on CISA’s list of exploited vulnerabilities yet. Huntress says the attack works on Apache with mod_php before any website code runs, and PHP-FPM is affected too.
Source: watchTowr, Huntress, Patchstack
21 Oct · afternoon
PHP’s advisory clarifies the old versions: there is no release for PHP 8.1 and older, but the security team published minimal source patches for 7.4, 8.0 and 8.1 for people who build PHP themselves, and Linux distributions and support vendors got the patches in advance. Anything older than 7.4 gets nothing.
Source: php.net
21 Oct · afternoon
With the patch out, Cloudflare reports early attempts to exploit the flaws and pushes emergency firewall rules for sites behind it. Aikido tells teams to patch now and check for compromise going back to June 2026.
Source: Aikido, The Hacker News
21 Oct · afternoon
Researchers warn the php.ini setting shared as a stopgap is not enough on its own, and that updating WordPress or a framework does not close the hole, because the bug is in PHP itself. Every PHP setup serving web pages is in scope, including PHP-FPM, Apache mod_php and LiteSpeed.
Source: The Hacker News, SOCRadar
21 Oct · about 13:35 UTC
PHP releases the fixed versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35, about 25 minutes ahead of schedule. PHP 8.1 and older get no official release; PHP published minimal source patches for 7.4, 8.0 and 8.1 for people who build PHP themselves.
21 Oct
Tenable publishes an FAQ and says it could not verify that the exploit code circulating online works against either flaw.
Source: Tenable
21 Oct
Dutch government sites including DigiD and MijnOverheid go offline as a precaution until the patch lands.
Source: Techzine, Patchstack
21 Oct, morning
Exploitation reports conflict. Some firms say attacks have started; watchTowr says it reproduced one of the bugs. Security teams start pushing stopgap settings.
Source: Patchstack, ITdaily, Help Net Security
20 to 21 Oct
Details leak before the planned disclosure and proof-of-concept exploit code appears online. Security press warns of mass exploitation.
Source: Infosecurity Magazine, SecurityWeek, The Hacker News
20 Oct
The PHP security team announces an emergency security release for 21 October at 14:00 UTC, rated 9.2 critical.
Source: PHP announcement, Laravel News
WHAT THE FIX REALLY INVOLVES
It depends where you start
For some sites this is a ten-minute update. For others it is a project. Here is what a professional has to do in each situation, and roughly how long it takes.
Simplest
On PHP 8.2 to 8.5, one site, a managed host
- Update to the patched release
- Restart PHP
- Click through the site to confirm it still works
Typically under an hour
More work
On 8.2 to 8.5, your own server or VPS, or several sites
- Patch every server and restart its services
- Check each site separately
- Read the server logs for signs of an attack before the patch
Typically a few hours
A real project
On PHP 8.1 or 8.0, no update to install
- Full backup that is proven to restore
- Copy the site to a staging server
- Update plugins, themes and code libraries that break on the new PHP
- Fix deprecated code, then test every page, form and checkout
- Move it live and watch the logs
Typically half a day to a few days per site
Possibly a rebuild
On PHP 7.x or 5.x, years out of date
- Old plugins and themes often no longer exist for modern PHP
- Custom code may need rewriting
- Database and character-set problems are common
- May need a new server altogether
Days to weeks. Sometimes rebuilding is cheaper than upgrading
Incident clean-up
Already broken into before you patched
- Find and remove backdoors and web shells
- Reset every password, key and database login
- Check the database for injected content and fake admin accounts
- Restore from a clean backup and harden the server
- Get the site off Google’s blacklist, and decide whether customers must be told
A day to a week or more, depending on the damage
Not sure which one you are?
That is what the free review is for. I tell you which situation each of your sites is in, and what it will take, before anyone touches anything.
Get a free reviewTimes are typical ranges from experience, not quotes. Every site is different.
You are almost certainly running PHP
PHP is the engine under most of the web. It is usually invisible, which is exactly why this catches people out.
Sources: W3Techs, October 2026. “End of life” counts PHP 7, PHP 5 and PHP 8.0 to 8.1.
WHAT IS ACTUALLY AT STAKE
What an attacker gets
Remote code execution is the worst kind of flaw. It is not a defaced page. It is the keys to the whole server.
Full control of your server
Remote code execution means they run their own commands on your server, as if they were sitting at it. No password needed. From there, everything below is on the table.
Your whole database, stolen
Customer names, emails, addresses, orders, password hashes, anything your site stores. Downloaded in minutes, quietly.
Your clients’ data too
If you host or build sites for others, their customers’ data sits on the same server. One breach can become a breach you have to report, with the liability that follows.
Ransomware and lockout
They encrypt or delete your files and your database and demand payment. If your backups are on the same server, they take those too.
Blacklisted by Google
Injected spam or malware gets your domain flagged with a red warning screen. Traffic and rankings you spent years on can vanish in a day.
A hidden backdoor
They leave a web shell behind so they can come back after you patch. This is why patching alone is not enough. Someone has to check the site was not already taken.
THE HIDDEN RISK
The sites you forgot run PHP
You do not have to know a site is PHP for it to be broken into. Attackers scan the entire internet automatically, around the clock, hitting every address they can find. The sites that get hit are usually the ones nobody is watching.
If you run a business online, or you have ever had sites built for you, it is worth taking five minutes to account for all of them.
- A WordPress or WooCommerce site, even one that looks like a simple brochure
- An old site or landing page you built years ago and forgot was still online
- A client’s site you set up and no longer think about
- A subdomain, a staging copy, or a microsite left running
- A contact form, booking tool or members area a plugin runs in PHP
- A Drupal, Joomla, Magento, Laravel, phpBB, MediaWiki or Moodle install
- An online store on WooCommerce, Magento, PrestaShop or OpenCart
- A cheap shared-hosting plan where the PHP version was set years ago and never changed
- Custom code a past developer wrote in PHP that nobody has touched since
WHY IT NEEDS CARE
Why you can't just click “update”
Upgrading PHP does not touch your files, but it changes the rules they run under. On sites still on 8.1 or older, there is no quick patch at all, you have to move versions. Done carelessly, that is how a working site goes dark. Here is what tends to break.
The white screen of death
The whole site goes blank, no error shown to visitors, nothing in the browser. Old code hit a rule the new PHP version removed.
Dead plugins and themes
Anything that has not shipped an update in a year or more can fatal-error the moment it runs on a newer PHP. On WordPress that is most sites.
A broken checkout
On a store, the part that breaks is often the cart or the payment step, so you lose orders without knowing until a customer complains.
Lost or corrupted data
A botched upgrade or a half-finished rollback can leave the database in a bad state. Without a clean backup taken first, that can be permanent.
The way to do it without taking the site down
- 1Back up the whole site and database, and confirm the backup actually restores
- 2Clone it to a staging copy and do the upgrade there first
- 3Update plugins, themes and dependencies to versions that support the new PHP
- 4Click through every page, form and checkout, and fix what breaks
- 5Move it live in a quiet window, then watch the logs
- 6Scan for backdoors, because a site on an old version may already be compromised
This is a few hours of careful work per site, and it is the kind of thing that is cheap to get right and expensive to get wrong. It is worth having someone who has done it before do it for you.
GET IT HANDLED
I can check it, and fix it properly
I have built and run PHP sites for twenty years. Start with a free review, no obligation. If you want it handled after that, I will do it safely and tell you the cost first.
START HERE · FREE
A free review
Send me your site, or a list of the sites you are responsible for. I will check what each one runs, whether it is exposed, and tell you plainly where you stand and what it would take to fix. No cost, no obligation.
IF YOU WANT IT DONE
The expert fix
I back up your site, upgrade and patch it on a copy, test every page, form and checkout, move it live with as little downtime as possible, and scan for anything already planted. One site or a whole portfolio.
STARTING PRICES (USD)
Every site is different, so these are starting points. After the free review you get a custom quote in writing, and nothing is paid until you approve it.
Free review
$0
What your site runs, whether it is exposed, what your host has done, and a written plan. Within one business day.
Patch confirmation and hardening
from $99
Already on PHP 8.2 or newer, or your host manages PHP. I confirm the fix is really live, close common gaps and check for signs of a break-in.
Move to a patched host
from $149
Your host has not patched yet, or will not let you pick a fixed PHP version. I move your site to a host that has the fix, test it, and switch it over with little or no downtime.
PHP upgrade, one WordPress or CMS site
from $350
On PHP 8.1 or older. Backup, a private copy, the move to supported PHP, fixing plugins and themes that break, testing, then live.
Custom PHP app or older framework
from $900
Laravel, CodeIgniter, CakePHP, Symfony or hand-written PHP. Older code needs more changes. Quoted after the review.
Complete website rebuild
from $1,500
When a site is so old that patching costs nearly as much as starting fresh. A new, fast, secure site on current software, your content carried over, mobile friendly. Quoted to the size of your site.
Break-in cleanup
from $750
If someone already got in: remove backdoors, rogue users and planted files, reset every login, harden the site.
Care plan
from $59 a month
Updates, daily backups, uptime and security monitoring, so the next one is handled before you hear about it.
Several sites, or an agency with client sites? Ask for a portfolio price.
Rather talk it through?
Tick the video call box on the guide or the review form. I look at your site first, then walk you through what I found in 20 minutes. Free.
or email kyle@simgen.dev · Clouthier Simulation Labs
Common questions
What is PHP2Shell?
PHP2Shell (also written php2shell, and occasionally PHP4Shell) is the name for two critical flaws in PHP itself, CVE-2026-109618 and CVE-2026-109619, rated 9.2 out of 10. They can let an attacker run code on a web server without logging in. Researchers at Wiz and Calif reported them, working with AI models, alongside OpenAI and the PHP security team. Details leaked a day early, so for a short time they were zero-day flaws with no fix available. PHP released the fix on 21 October 2026.
Which PHP versions are affected by PHP2Shell?
PHP’s advisories list every release before 8.2.35, 8.3.36, 8.4.27 and 8.5.12 as affected. Those four are the fixed versions. PHP 8.1 and older are affected too and got no official release: PHP published only minimal source patches for 7.4, 8.0 and 8.1, and Linux distributions or hosts may ship their own backports. Anything older than 7.4 gets no fix at all.
How do I check if my website is affected by PHP2Shell?
Find the PHP version your site runs: WordPress shows it under Tools, Site Health, Info, Server; cPanel under Software, Select PHP Version; or upload the self-deleting check-php.php file from this page. If it is 8.2.35, 8.3.36, 8.4.27, 8.5.12 or newer in its branch, and PHP has been restarted since the update, you have the fix. If it is 8.1 or older, ask your host in writing whether they have applied the backport. The free checker at the top of this page reads what a site shows from the outside, for one site or ten at once.
Is my WordPress.com site affected by PHP2Shell?
If your site is hosted on WordPress.com (or WordPress VIP, WP Cloud or Pressable), Automattic says it is already protected and there is nothing you need to do. If you use WordPress software on any other host, such as shared hosting, a VPS or a managed WordPress host, the fix depends on that host updating PHP. Check your PHP version under Tools, Site Health, Info, Server, and ask your host whether they have applied the PHP2Shell fix.
Does updating WordPress, plugins or my framework fix PHP2Shell?
No. The flaw is in PHP itself, underneath WordPress, Drupal, Laravel or any other app, so updating the app changes nothing. Wordfence notes that WordPress automatic updates will not apply this fix. PHP has to be updated to 8.2.35, 8.3.36, 8.4.27 or 8.5.12, or replaced with a vendor build that carries the backport.
Is setting session.upload_progress.enabled = Off in php.ini enough?
No. There are two separate bugs, and that setting only blocks one attack path. PHP’s advisory says its temporary measures (that setting, restarting workers, memory_limit and post_max_size guidance) are not complete fixes. Use it only to buy time until PHP is updated.
Does Cloudflare or another firewall protect me from PHP2Shell?
Only partly, and only for now. Cloudflare deployed emergency firewall rules and its CTO called them a stopgap only. Firewalls can miss new variants of an attack. Updating PHP is the fix.
I updated PHP. Am I safe now?
Only once PHP has been restarted. PHP-FPM pools and Apache keep running the old code in memory until they restart, so an updated package can still leave the site exposed. On cPanel, Plesk or CloudLinux servers there are often several PHP versions side by side, and each one needs its own fix.
My site hides its PHP version. Does that protect it?
No. Attackers do not need to know your version, they simply send the attack and see if it works. Hiding the version only stops outside checkers from telling you whether you are exposed, so find it from your hosting panel or WordPress Site Health instead.
Is only Apache mod_php affected?
No. PHP says every installation serving web requests is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. It considers mod_php the highest risk.
What is the PHP vulnerability on October 21, 2026?
Critical flaws in PHP core, rated 9.2 out of 10, that allow remote code execution: an attacker can run their own code on a server running PHP without any password. The details leaked and exploit code was published before the fix. PHP released the fix on October 21, 2026 as versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older get no official release; PHP published minimal source patches for 7.4, 8.0 and 8.1 for people who build PHP themselves, and Linux vendors may backport them.
Does it affect my site?
About 69% of all websites run on PHP, including every WordPress, WooCommerce, Drupal, Joomla, Magento and Laravel site. If your site runs any of those, or any custom PHP, it is affected. Versions 8.1 and older get no official update to install; unless your host has backported the fix, they should be upgraded.
Can I just click update?
Not safely. Changing the PHP version changes the rules your code runs under. Old plugins, themes and custom code can fail instantly with a blank white screen, and sites on 8.1 or older need a full version upgrade, which is where things break. It should be done on a copy first, tested, then moved live, then scanned for anything already planted.
What can an attacker do?
With remote code execution they can take full control of the server: steal your database and your clients’ data, install ransomware, deface the site, get it blacklisted by Google, use it to attack others, and leave a hidden backdoor that survives the patch.
Official sources
This page is general security information, not a scan of your site, and the checker reads only what a site shows publicly. php.net lists the fixes under advisories GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp; the CVE numbers circulating online (CVE-2026-109618 and CVE-2026-109619) were not shown on php.net when this was written. Always follow the official advisory above.