PHP2Shell and WordPress
PHP2Shell is a pair of flaws in PHP, the language WordPress runs on. Updating WordPress or its plugins doesn’t fix them. The PHP on the server has to be updated, and on most WordPress sites the hosting company does that.
Updated
WordPress and WooCommerce sites are affected
PHP2Shell is the name for CVE-2026-109618 and CVE-2026-109619, two flaws in PHP rated critical (CVSS v4.0 9.2). They let an attacker run code on the server without logging in, and they affect PHP 5.4 and later. PHP released fixed versions on 21 October 2026: 8.2.35, 8.3.36, 8.4.27 and 8.5.12.
Every WordPress site runs on PHP, so each one is exposed until the PHP behind it has the fix. The flaw is in PHP itself, so any PHP application — including stores on Magento, Shopware or WooCommerce — is exposed regardless of its own code. CERT-EU notes that “one unauthenticated request can trigger the attack before any application code runs.”
No WordPress or plugin update is needed
WordPress.org published a notice on 21 October 2026. It says the flaws affect any server running PHP, and that “No WordPress update is required or planned for these issues.”
Updating WordPress, themes and plugins still protects against other flaws. About this one, Cloudflare writes: “These flaws are in the PHP runtime, so updating website code or a plugin(s) alone does not fix these vulnerabilities.”
Who installs the fix
PHP runs on the server, outside WordPress. On shared or managed hosting the hosting company runs PHP, so it has to install the fix. WordPress.org’s page on updating PHP says: “Your hosting company determines which versions of PHP are available for your site.” If you don’t manage your own server, ask the hosting company to apply the update now.
If WordPress runs on a server or VPS you manage yourself, updating PHP is your job. The fixed versions and update guides cover the common setups.
If the site is on PHP 8.1 or older, the PHP project has no fixed version for it. Ask your hosting company whether they have installed a backported fix, or move the site to PHP 8.2 or later. WordPress.org notes that many hosting companies let you change the PHP version yourself. Make a backup first and check that your theme and plugins work on the newer version. The page on PHP 8.1 and older has more on this.
Find your PHP version in WordPress
In the WordPress dashboard, go to Tools → Site Health, open the Info tab and expand the Server section. The PHP version is listed there. Many hosting companies also show it in their control panel.
The number alone may not tell you whether the fix is installed. A version at or above the fixed version for its branch (8.2.35, 8.3.36, 8.4.27 or 8.5.12) has it. A lower number doesn’t always mean the fix is missing, because some hosting companies and Linux distributions add it to the version they already run without changing the number. Ubuntu 24.04, for example, fixed both flaws in its PHP 8.3.6 package (8.3.6-0ubuntu0.24.04.13). Your hosting company can tell you which build you have. The PHP version page goes into more detail.
What to ask your hosting company
Ask whether the PHP security update of 21 October 2026 is installed on the server your site runs on. You can send something like this:
My site [your domain] runs WordPress. Is the PHP security update from 21 October 2026 (CVE-2026-109618 and CVE-2026-109619) installed on the server it runs on? Which PHP version and build does the site use? If the update isn’t installed yet, when will it be?
Some hosting companies tell customers they don’t need to do anything. That means the hosting company is handling the update, so ask whether it is installed yet. How to read the answer:
“Your site runs PHP 8.2.35, 8.3.36, 8.4.27 or 8.5.12, or later.”
The fix is installed. These are the fixed versions from the PHP project.
“We installed the operating system’s or our vendor’s security update for these CVEs.”
The fix is installed, even if the version number is lower. PHP says Linux distributions and LTS vendors received the patches in advance, and tells users to check their vendor for updated packages.
“We added firewall rules” or “Cloudflare is protecting your site.”
The risk is reduced, but PHP is not updated. CISA says a web application firewall “may provide some protection until systems are updated or patched.” Patchstack notes that Cloudflare’s rules only help if the server accepts traffic exclusively from Cloudflare.
“We changed PHP settings” or “We disabled the affected features.”
The risk is reduced, but PHP is not updated. PHP says these interim measures “reduce exposure to specific attack paths but do not make an installation safe.”
“Your site runs PHP 8.1 or older.”
The PHP project has no fixed version for it. Ask whether the hosting company will install a backported fix or move the site to PHP 8.2 or later.
“We’re rolling out the update.”
The fix may not be on your server yet. Ask when your server will have it.
Plugins that claim to fix PHP2Shell
A plugin is part of the site’s code, and the flaw is in PHP underneath it, so it can’t be fixed from within the site’s code. The security company Patchstack advises: “Avoid unofficial ‘fix’ plugins and copy-pasted snippets. They are not verified and can break your site.”
Patchstack also says the interim PHP setting for CVE-2026-109619 belongs in php.ini, an FPM pool or the server configuration, and not in ini_set() or a .user.ini file. On hosting you don’t manage, that is a change for your hosting company to make.
WordPress maintenance mode doesn’t help
WordPress’s maintenance mode doesn’t protect a site, because PHP parses each request before the application checks the maintenance flag. Maintenance-mode plugins run inside PHP too.
Taking a site offline only helps if PHP stops handling requests. To take it offline, stop PHP-FPM and have the web server show a static maintenance page. CERT-EU advises isolating internet-facing applications from public networks until a fix is applied, and CISA says organisations that can’t update right away should take PHP-based systems offline until they can be patched. On hosting you don’t manage, ask your hosting company to do this.
PHP2Shell is not wp2shell
wp2shell is a separate pair of flaws in WordPress itself (CVE-2026-63030 and CVE-2026-60137), disclosed by Searchlight Cyber on 17 July 2026. WordPress fixed them in versions 7.0.2 and 6.9.5 and turned on forced automatic updates for sites running affected versions. A site needs both fixes: the WordPress update for wp2shell, and a PHP update on the server for PHP2Shell.
What managed WordPress hosting companies have said
These are summaries of each hosting company’s own statement as of 21 October 2026, in alphabetical order. Statuses are changing during the day, so follow the link for the current version. A hosting company that isn’t listed has not been checked here. For distributions, control panels and other hosting companies, see the fix status page.
DreamHost (DreamPress)
21 October 2026, 16:04 UTC
Rolling out PHP’s fix across all its servers. DreamHost says known attack paths are closed and its firewall is blocking exploit attempts in the meantime. DreamPress is among the products listed.
DreamHost (DreamPress) statementFlywheel
21 October 2026
“We are currently deploying patches for the Flywheel platform.” Protective measures stay active at the CDN and host layers until that is done.
Flywheel statementKinsta
21 October 2026, staff replies on Kinsta’s community forum
A temporary configuration change to reduce exposure, plus Cloudflare protections. Fixes are rolled out once they have been validated. The latest staff reply said: “The patch is still not applied, but our engineering team is working on that.” Customers don’t need to do anything.
Kinsta statementPantheon
21 October 2026, 18:22 UTC
Fixed PHP versions are rolling out in stages, and protective measures stay active until the rollout is complete. No customer action is required.
Pantheon statementPressable
21 October 2026
“Pressable sites are already protected against both vulnerabilities,” on every PHP version it offers, and customers don’t need to act. The statement doesn’t say whether that protection is the PHP update or another measure.
Pressable statementRocket.net
21 October 2026, 15:05 UTC
The PHP update is still in progress. Rocket.net warns of short interruptions during the maintenance.
Rocket.net statementSiteGround
21 October 2026, 11:30 UTC, before PHP released the fix
Protective measures on all servers: “We disabled the affected functionalities on all supported PHP versions.” Customers don’t need to change anything. The post doesn’t say the PHP update is installed.
SiteGround statementWP Engine
21 October 2026, 17:30 UTC
“We are currently deploying patches to the platform.” Protective measures stay active at the CDN and hosting layers.
WP Engine statement
Checking your site
The domain checker reads the PHP version your site shows to visitors, when it shows one, and gives you a message to send your hosting company. If you think the site may already have been attacked, the detection page lists what to look for and what to do.
Sources
- WordPress.org: Critical PHP Security ReleaseNo WordPress update required, and where to find the PHP version. 21 October 2026
- WordPress.org: Site Health screenWhere the Info tab and Server section are
- WordPress.org: Update PHPWho controls the PHP version, and switching safely
- PHP: security advisory, 21 October 2026Fixed versions, interim measures and PHP 8.1 and older
- CVE-2026-109618 · RCE via OOM corruptionGHSA-w8hw-w9fx-j79w
- CVE-2026-109619 · RCE via stale global stateGHSA-6wmf-4rv5-p3rp
- CERT-EU: Critical PHP vulnerabilities (advisory 2026-018)One unauthenticated request runs before application code; isolating internet-facing systems until patched
- ENISA: Joint statement on critical PHP vulnerabilitiesEU joint statement on both CVEs; points to the NCSC-NL repository for third-party software
- Patchstack: Major security alert: PHP vulnerable to critical RCE, attacks ongoingWarning against unofficial fix plugins. 21 October 2026
- Cloudflare: Cloudflare deploys protections against php2shell vulnerabilityWhy a plugin update can’t fix it. 21 October 2026
- CISA: Critical Vulnerabilities in PHP Require Immediate PatchingFirewalls and taking systems offline. 21 October 2026
- Ubuntu: CVE-2026-109618Fixed package versions per Ubuntu release
- WordPress.org: WordPress 7.0.2 ReleaseThe wp2shell fix. 17 July 2026
- Searchlight Cyber: wp2shell: Pre Authentication RCE in WordPress Core17 July 2026
Each hosting company’s statement is linked in the list of managed WordPress hosting companies above.