WordPress · Oct 31, 2026 · 11 min read
PHP2Shell: How We Verified 13 Shared-Hosting Sites in One Evening (Without SSH)
On October 21, 2026, the PHP project shipped an emergency release for two critical remote code execution bugs in PHP itself, collectively nicknamed PHP2Shell. We manage thirteen websites on a single shared-hosting account, with no SSH access to any of them. Here is exactly how we checked every site that evening, what we found, and the short checklist we now recommend to anyone running WordPress, WooCommerce or any other PHP application on shared hosting.
What PHP2Shell is, in plain terms
PHP2Shell is the name attached to two vulnerabilities tracked as CVE-2026-109618 and CVE-2026-109619. Both sit in PHP’s core request handling rather than in any plugin, theme or framework, and both are rated 9.2 under CVSS v4. The first is triggered through memory exhaustion during request cleanup; the second abuses request state that is left behind on a PHP worker and picked up by a later request. The practical outcome of either is the same: an unauthenticated attacker who can send crafted HTTP requests to a vulnerable server can end up executing commands on it.
The disclosure did not go to plan. A coordinated release was scheduled for October 22, but technical details, including the CVE identifiers, leaked a couple of days early. The PHP security team pulled the release forward to October 21 at 14:00 UTC. Several vendors reported exploitation attempts before the patches were even public; Amazon’s threat intelligence team later traced the earliest attempts to October 17. By October 27, the US CISA had added both CVEs to its Known Exploited Vulnerabilities catalog. In other words, this was not a theoretical bug. It was being probed on real servers while most site owners were still reading the headlines.
Because the flaws are in PHP rather than in any application, the usual “my plugins are up to date” reassurance did not apply. A fully patched WordPress install on an unpatched PHP binary was still exposed. That is a different threat model from the one most WordPress owners are used to, and it is why we treated it as a same-day job rather than a next-maintenance-window job.
Which PHP versions are actually safe
This is where we saw the most confusion, including in our own first pass. The fixed versions are 8.2.35, 8.3.36, 8.4.27 and 8.5.12. The important detail is that these thresholds only apply within their own branch. You cannot compare the third number across branches.
| PHP branch | Vulnerable | Patched (this version or higher) |
|---|---|---|
| 8.2.x | 8.2.0 – 8.2.34 | 8.2.35 |
| 8.3.x | 8.3.0 – 8.3.35 | 8.3.36 |
| 8.4.x | 8.4.0 – 8.4.26 | 8.4.27 |
| 8.5.x | 8.5.0 – 8.5.11 | 8.5.12 |
| 8.1 and older | All | No official patch. Upgrade, or rely on a vendor backport. |
So 8.2.35 is safe even though it is numerically “lower” than 8.3.35, which is not. Look at the first two digits to find your row, then compare the third digit against that row’s threshold. Anything on PHP 8.1, 8.0 or 7.x received no official fix because those branches are end-of-life; hosting providers may have backported the fix into their own builds, but you have to confirm that with the provider rather than assume it.
One more trap: “newest” is not the same as “patched”. At the time, our host was already offering PHP 8.6.0 as a release candidate. That build is not on the fixed list, it is not meant for production, and nobody outside the hosting company can tell you which commit it was compiled from. We stayed on 8.2.35.
Our situation: 13 sites, one shared account, no shell
Our studio site, a news property, and eleven client and project domains all live on one SiteGround GrowBig account. The account is SFTP-only; there is no SSH, no root, and no way to run php -v on the server. If you run a small agency or manage a handful of client sites, this is probably your setup too. The question was not “how do we patch PHP” (we cannot, the host does), but “how do we verify what PHP is actually running on every site, quickly and without breaking anything”.
We have written before about the realities of WordPress security on shared hosting, and the core argument there holds here: on shared hosting the host owns the runtime, so your job is verification and configuration, not compilation.
How we checked every site without SSH
We used three methods, chosen by how much access each site gave us. All three take minutes, and none of them require touching production code.
1. The hosting control panel for the branch
SiteGround’s Site Tools has a PHP Manager per site that shows the selected major version (8.2, 8.3, and so on). This takes thirty seconds per site and immediately flags anything on 8.1 or older, which must be upgraded regardless of patch status. It does not reliably show the patch level, so it is a first filter, not the answer.
2. WordPress Site Health for the exact version
For any WordPress site, Tools → Site Health → Info → Server prints the exact PHP version string, patch level included. No file uploads, no plugins. If you only manage WordPress sites, this plus the control panel is all you need. For our two primary WordPress sites we also pulled the version programmatically through the Claude Code tooling we already have connected to them, which let us log the result alongside the rest of the check.
3. A temporary diagnostic file for everything else
For non-WordPress sites, a one-line PHP file uploaded to the web root via the file manager does the job:
<?php echo PHP_VERSION;
Load it in a browser, read the number, delete the file immediately. Use an unguessable filename, not info.php, and never leave a phpinfo() page lying around. A forgotten diagnostic file is its own vulnerability.
What we found
Twelve of thirteen sites were on PHP 8.2.35. SiteGround had rolled the patched build out server-wide within hours of the release, before we had finished reading the advisory. This is the real argument for managed shared hosting with a serious provider: the fix landed without a ticket, a maintenance window, or any action on our side. We still verified every single site, and we would do it again. “The host probably patched it” is not a security posture.
One site reported PHP 7.4.34. That version number does not exist upstream; the final official 7.4 release was 7.4.33 in 2022. A non-standard patch number like this almost always means the hosting provider backported a security fix into its own EOL build and bumped the version themselves. So the site was very likely protected, but “very likely” is not the same as confirmed, and 7.4 has been end-of-life for four years. Future fixes may not be backported.
It turned out to be a static HTML site, which meant no PHP ever executed there and the practical exposure was close to zero. We switched it to 8.2 anyway, for two reasons: it costs nothing on a site with no PHP code, and it removes the last EOL runtime from the account so there is nothing to scramble over when the host eventually drops 7.4. We also searched its web root for stray .php files, because old contact forms and forgotten diagnostic scripts are exactly what turns a “static” site into a PHP site.
Total time, including the research and a few minutes of confusion over branch thresholds: one evening. Total code changed on any production site: none.
The checklist we now recommend
- Inventory first. List every domain on every hosting account you touch, including the ones you “forgot about”. The sites nobody thinks about are the ones that stay unpatched.
- Read the exact version, not the branch. Use Site Health for WordPress, a temporary diagnostic file for anything else. Compare against the table above within the correct branch.
- Anything on 8.1 or older gets upgraded, backport or not. Use a staging copy if the site has old themes or custom code; most sites move to 8.2 or 8.3 without incident.
- Do not jump to a release candidate because it has the biggest number. Stay on a stable branch that is on the fixed list.
- Ask your host in writing if any version looks non-standard (a patch number upstream never published). One sentence is enough: “Does your build include the fixes for CVE-2026-109618 and CVE-2026-109619?”
- Put a WAF in front of what matters. Cloudflare pushed emergency rules for these CVEs on the day of disclosure. A WAF buys time; it is not a substitute for the patch.
- Review
session.upload_progress. Disabling it was the recommended mitigation while patches were pending, and PHP has since advised keeping it off as a defence against a related, not-yet-patched issue (CVE-2026-115560). On shared hosting this is usually a toggle in the control panel’s PHP settings; almost no WordPress site needs the feature. - Delete your diagnostic files. Every single one.
- Plan the next upgrade now. PHP 8.2 reaches end of security support on December 31, 2026. If you are on 8.2 today, you have one more move to make before the year is out.
What this incident taught us
Three things stood out. First, runtime vulnerabilities need a different reflex than plugin vulnerabilities. Our usual WordPress hardening work focuses on plugins and themes because that is where almost all CVEs live. PHP2Shell bypassed all of it. The answer is not more plugins; it is knowing, at any moment, exactly which PHP build each site runs and who is responsible for patching it.
Second, a good managed host is worth more than its line item suggests, but only if you verify. The patch arriving automatically saved us hours. Confirming it took minutes and turned an assumption into a fact we can tell clients.
Third, consistency is a security control. Thirteen sites on the same branch means one version to track, one EOL date to plan around, and no odd one out quietly running a four-year-old runtime. The 7.4 site was harmless in practice, but it was the only site that required a judgement call instead of a lookup, and judgement calls are where mistakes happen.
If you manage a portfolio of sites and are not sure what is running under them, this is a good week to find out; we have written a step-by-step guide for checking your own site. If you would rather we did it, get in touch: a runtime and hosting audit is one of the smaller engagements we offer, and PHP2Shell is a reminder of why it exists.
Frequently asked questions
Is WordPress affected by PHP2Shell?
Yes, indirectly. PHP2Shell is a vulnerability in PHP itself, not in WordPress, so any WordPress site running an unpatched PHP version is exposed regardless of how up to date WordPress, its plugins and themes are. The fix is to move PHP to a patched version; no WordPress update addresses it.
How do I find my exact PHP version on shared hosting?
On WordPress, go to Tools → Site Health → Info → Server; the full version string is listed there. On any other PHP site, upload a temporary file containing <?php echo PHP_VERSION;, open it in a browser, note the version and delete the file. Your hosting control panel usually shows only the branch (8.2, 8.3), which is not enough on its own.
Is PHP 8.2.35 safe even though 8.3.35 is not?
Yes. Each PHP branch has its own fixed version: 8.2.35, 8.3.36, 8.4.27 and 8.5.12. The third number only means something within its own branch, so 8.2.35 is patched while 8.3.35 is one release short of the 8.3 fix. Find your branch first, then compare the patch number.
My host shows a PHP version that does not exist upstream, like 7.4.34. What does that mean?
It almost always means the provider backported a security fix into their own build of an end-of-life branch and incremented the version number themselves. It is a good sign, but confirm it with the host in writing, and treat it as a reason to upgrade off the EOL branch rather than a reason to stay on it.
Should I upgrade to the newest PHP version to be safe?
Only if it is a stable release on the fixed list. Release candidates and betas, such as PHP 8.6.0 RC builds offered by some hosts, are not production software and may or may not include the fix depending on when they were compiled. A patched stable branch is the safer choice.
Does a WAF like Cloudflare protect me from PHP2Shell?
It helps. Cloudflare and other WAF vendors shipped rules targeting these CVEs on the day of disclosure, and a WAF can block many exploitation attempts. It does not fix the underlying bug, so treat it as a buffer while you confirm the PHP patch, not as a replacement for it.
Was PHP2Shell actually exploited, or was it just hype?
It was exploited. Multiple security vendors observed attempts before the patch was public, Amazon’s threat intelligence team reported attempts starting four days before the release, and CISA added both CVEs to its Known Exploited Vulnerabilities catalog on October 27, 2026. The disclosure was messy, but the risk was real.
What should I do about the related CVE-2026-115560?
At the time of writing it had no dedicated patch and requires an unusual combination of configuration and application code to exploit. The PHP team’s interim advice is to keep session.upload_progress.enabled set to Off. On shared hosting this is normally a PHP setting in your control panel, and almost no WordPress or WooCommerce site depends on the feature.