PHP2Shell and your firm's website: what to ask, and the case for leaving WordPress
No WordPress update could fix PHP2Shell: every site, up to 70% of the internet, was vulnerable, and had been for years. This is why we're on a mission to move sites off of WordPress. If you value your site security, here are five questions to ask your admin.

On October 21, the PHP project released emergency fixes for two critical flaws, nicknamed PHP2Shell, that allows an attacker to take control of a web server without a password. PHP is the language WordPress is written in, so it affected every WordPress site on earth, and the exploit had been there for years. Since it was in PHP itself, no WordPress update could fix it. And for the third of WordPress sites still on older versions of PHP, the PHP project didn't release a fixed version at all.
Our mission, the entire goal of this company, is to move customers off of WordPress. We can excuse the poor use experience, the behemoth companies overcharging their users for hosting, the smaller companies all charging $7/mo for the little plugins that should be free; however, at the end of the day, security is the most important (albeit most boring) reason to migrate.
What happened
PHP runs about 69% of the websites whose server-side language is known, including the four in ten websites built on WordPress. It builds a site's pages when visitors ask for them. Here's how the week went.
- October 20. Word of the two flaws leaked online, and the PHP project moved its fix up a day, to October 21.
- October 21. PHP released the fixes, rated both flaws 9.2 out of 10 for severity, and urged everyone running PHP to update immediately.
- The same day, the Cybersecurity and Infrastructure Security Agency (CISA) urged organizations that couldn't update right away, or that still use PHP 8.1 or older, to take their PHP systems offline until they're patched or updated. The NSA warned that the flaws "often provide a direct path to the server's file system or database." The organization behind Wikipedia took some of its systems offline until they could be patched, and government sites in several European countries went down as a precaution.
- WordPress.org posted a notice urging site owners to update PHP immediately. No WordPress update was needed or planned, because the flaws aren't in WordPress. They're underneath it.
Wiz, one of several research teams that found the flaws, demonstrated taking over the latest versions of WordPress, Drupal and Joomla without logging in. It also showed that an attacker could read pieces of the server's memory, which can hold passwords, keys, and data from other visitors' requests. On a law firm's website, another visitor's request might be someone's first message to you about a legal problem.
As of October 23, attackers were clearly trying. Amazon reported "broad exploitation attempts in the wild," and traced one attempt to October 17, four days before the fix. No break-in had been confirmed, though, and CISA hadn't listed the flaws as exploited. The security firm Sansec reports that the attack code circulating publicly doesn't work on a default PHP setup, and that most of it needs a second, serious flaw in the site itself. Another firm, VulnCheck, says it has built an attack that works on PHP's recommended production settings, and it's sharing that only with customers. That's good news, for now. It doesn't change what every WordPress site needed on October 21, or who had to do it.
Why careful firms were exposed anyway
Most WordPress security advice is about diligence: update your plugins, use strong passwords, pick a reputable host. PHP2Shell went around the first two entirely and made the third the only one that counted. There was no button to click in the WordPress dashboard and no plugin to remove. The only fix was a new version of PHP, installed on the server by whoever runs the server.
For most firms, that's the hosting company. For some, it's the designer or agency that set up the site years ago, or nobody in particular. How quickly the fix arrived depended entirely on which of those a firm had. Insurers have noticed. Insurance Business warned brokers that underwriters may ask how fast clients patched, and noted that small businesses on shared hosting are relying on their provider to do it.
The gap was wider for the 35% of WordPress sites that WordPress.org's own statistics show on PHP 8.1 or older, versions the PHP project no longer supports. They got no new release from the PHP project, only bare-bones source code patches that hosts had to build and install themselves or get from a vendor. WordPress still works with PHP 7.4, which stopped getting security fixes in November 2022, with a warning that such versions "may expose your site to security vulnerabilities." Another 23% of WordPress sites are on PHP 8.2, which stops getting security fixes on December 31.
What we found in Our Own Research
On October 23, two days after the fix, we checked the websites of nearly 14,000 small business website— sites just like yours with a blog, some bios, and a form to contact them. Almost half run WordPress, which means they were all susceptible to the attack, and had been for years.
Most WordPress sites don't say which version of PHP they run, which is good practice. But 752 of these announce it to every visitor, in the technical details their servers send along with each page. Of those 752:
- 337 named a version of PHP that the PHP project no longer supports.
- 240 named PHP 7 or older. The single most common version was PHP 7.4.33, the last release of a branch that stopped getting fixes in November 2022.
- 19 named PHP 5, which stopped getting fixes at the end of 2018.
- 257 of the 415 that named a supported version already showed the October 21 fix (thank goodness!)
A version number isn't proof either way. Some hosts patch without changing the number, some block attacks before they reach the server. Sites that announce their version probably lean toward less carefully configured hosting, too, so this is a snapshot, not a census. But it's what those servers tell anyone who asks, attackers included.
What to ask this week
If your firm's site runs on WordPress, you need answers, in writing. Here is exactly what to ask your hosting provider.
- Who manages PHP on our site? Usually the hosting company, sometimes a designer or agency. If nobody's sure, that's the first thing to fix.
- Which version are we on, and when was the October 21 fix installed? The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35, or later. Some hosts install patched builds that keep the old version number, so ask them to confirm the fix for CVE-2026-109618 and CVE-2026-109619 specifically, and whether they've followed PHP's October 23 advice to switch off a setting called session upload progress. You can see your version in WordPress under Tools → Site Health → Info → Server.
- If it's PHP 8.2 or older, when will we upgrade? Aim for 8.3 or newer, since 8.2 stops getting security fixes on December 31. On 8.1 or older, also ask how the October 21 fix was applied, since the PHP project released no fixed version for it.
- Has anyone checked for signs of a break-in? Unfamiliar administrator accounts, files, or pages are reasons to treat it as an incident: change every password and key the site uses, and work through ABA Formal Opinion 483 and your state's breach-notice law. If you carry cyber insurance, look for an alert from your carrier, and report anything suspicious under the policy's notice terms.
- What does our contact form keep? It only needs enough to start a conversation. Once a message is in your inbox and your conflicts records, the website's copy can be deleted on a schedule.
Not a one-off: 2026 hit every layer
That covers this week. Looking further out, PHP2Shell capped a year in which serious flaws turned up at every layer of a WordPress site.
- Plugins. Still the most common way in. Patchstack counted 11,334 new security holes in WordPress plugins, themes and core in 2025, up 42% from 2024, and 91% were in plugins. We've written about why plugins are a WordPress site's biggest security risk.
- Official updates. This year, attackers slipped malicious code into plugins through their official updates and their makers' own servers. In October, Rank Math said some copies of its paid SEO plugin downloaded during an 11-hour window contained malware, so the sites at risk were the ones that updated promptly, as every security checklist advises.
- WordPress itself. In 2025, only six flaws were reported in WordPress's own code, all low priority. In 2026, WordPress has shipped two fixes it rated critical. In July, it fixed a pair of flaws, known together as WP2Shell, that could be combined to take over a site with no login, and it pushed the fix to affected sites automatically. In September came another, and attackers were probing for it within five hours. CISA has since added both to its catalog of vulnerabilities known to be exploited.
- PHP. Then October 21. WP2Shell in July, PHP2Shell in October: one in WordPress, and one beneath it.
The pace is picking up for a reason. PHP2Shell was found with the help of AI: the security firm Calif, using an OpenAI model, reported the first flaw in August, and Wiz, also working with frontier AI models, found both on its own. The vulnerable code had been in PHP for more than a decade. In Wiz's words, "a single researcher completed in a week what previously would have taken a world-class team months of work." OpenAI says it expects "similar findings to increase sharply in the coming months." Attackers have the same tools, and old, sprawling code has never been cheaper to search for weaknesses and turn into working attacks.
A WordPress site is exactly that kind of code: the server's software, PHP, WordPress, a theme, and every plugin, each maintained by someone different. Each one has to be fixed quickly, by someone, every time a flaw turns up. Finding flaws just got much faster. Fixing them didn't.
Reasonable efforts, applied to a website
A firm's website shouldn't hold client files, and a well-run one doesn't. But it does collect first messages from people with legal problems, and depending on how the site invites them, the senders can be prospective clients under Model Rule 1.18. It often holds the passwords and keys to the services those messages flow into, too.
Comment 18 to Model Rule 1.6 lists the likelihood of disclosure, and the cost and difficulty of added safeguards, among the factors for judging what's reasonable. This year brought critical flaws at every layer of a WordPress site. How that weighs against the cost and effort of a safer setup is your judgment, not ours.
Why we're moving firms off WordPress
Our mission is to get firms off WordPress, and every other platform built the same way, with the same outdated technology. That includes Joomla and Drupal, which PHP2Shell reached just the same, and some of the website products sold to law firms, which run WordPress underneath. None of this is a knock on the people who build them. WordPress is a remarkable open-source project, and its openness is a big part of why four in ten websites use it. But its design makes every site the last link in a long chain, and this year every link was tested.
The sites we build work differently:
- No PHP. On October 21, the sites we run had nothing to patch, and their owners had nothing to do.
- No plugin store. Features are built into the site, and any add-on runs sealed off in its own sandbox, with only the permissions it needs. Nothing updates itself: the site's code changes only when we deploy it.
- No server for you to patch. Keeping every site we run up to date is our job, and it's part of the plan.
- A contact form built into the site. Messages go to the inbox you choose, and by default the copies kept on the site delete themselves on a schedule. Some firms choose to keep them.
No software is flawless, ours included, and our sites rely on other people's code too. We all are truly on the shoulders of giants. The difference is how many hands a fix passes through. On a WordPress site, keeping everything current is split among your host, your web person, and every plugin's developer, and the whole is nobody's job. On ours, the platform underneath is updated by its operator for every site at once, and the rest is one company's job: ours.
Moving doesn't mean starting over. We rebuild your site page for page, keep every page at the same address so search engines see the site they already know, and send you one link to review before anything changes. Here's how it works for law firms.
Get a free audit. We'll find out what your site runs on, list every plugin and who maintains it, and tell you what moving would involve. If moving isn't right for your firm, we'll say so.
Sources
- PHP: News archive (October 20–23, 2026 security announcements)
- The PHP Foundation: Today's PHP security release, and how we're strengthening PHP security (October 21, 2026)
- CISA: Critical Vulnerabilities in PHP Require Immediate Patching (October 21, 2026)
- Insurance Business: NSA warns of critical website flaw as Wikipedia, European government websites taken offline (October 21, 2026)
- WordPress.org: Critical PHP Security Release (October 21, 2026)
- Wiz Research: PHP2Shell (October 21, 2026)
- OpenAI: Patch the Planet, global response coordination as agents uncover critical vulnerabilities (October 21, 2026)
- Amazon: Threat intelligence identifies PHP2Shell exploitation before public disclosure (October 21, 2026)
- SecurityWeek: Mirai botnet operators join PHP2Shell attacks as ASLR bypass exploits emerge (October 23, 2026)
- Sansec: PHP2Shell
- W3Techs: Usage statistics of PHP
- W3Techs: Usage statistics of WordPress
- WordPress.org: PHP version statistics
- WordPress.org: Requirements
- PHP: Supported versions
- PHP: Unsupported branches
- Patchstack: State of WordPress Security in 2026
- The Hacker News: Backdoored Smart Slider 3 Pro update (April 10, 2026)
- Rank Math: PRO 3.0.123 security incident
- WordPress.org: WordPress 7.0.2 Release (July 17, 2026)
- WordPress.org: WordPress 7.1.2 Release (September 22, 2026)
- BleepingComputer: Hackers start exploiting critical WordPress flaw for code execution (September 23, 2026)
- CISA: Known Exploited Vulnerabilities Catalog
- ABA: Model Rule 1.6, Confidentiality of Information, Comment
- ABA: Model Rule 1.18, Duties to Prospective Client, Comment
- ABA: Formal Opinion 483, Lawyers' Obligations After an Electronic Data Breach or Cyberattack