PHP2Shell: What the Critical PHP Flaws Mean for a Law Firm Website, and What to Do Today
Two critical flaws in PHP let anyone on the internet run code on a server without logging in. WordPress runs on PHP, and so do most law firm websites. What happened this week, what to ask your host today, and why some sites had nothing to patch.
Wolfe Services · · 7 min read
Updated
On Tuesday, October 21, 2026, the PHP project shipped an emergency release for two flaws it rated critical. Its own words: they “can allow unauthenticated remote code execution,” and “all PHP users are strongly encouraged to update immediately.” By Wednesday the Cybersecurity and Infrastructure Security Agency had told organizations to patch internet-facing systems first or take them offline, and the New York State Department of Financial Services had sent an alert to every firm it regulates. The industry name for the pair is PHP2Shell.
Law firms are not regulated by DFS. They hold the same category of information: names, injuries, employers, medical details, the first message a person sends when something has gone wrong. Most of that arrives through a form on a website, and most law firm websites run on PHP. This note is about what happened, what to ask today, and why a site built the way we build them had nothing to do on Tuesday.
What happened
The two flaws are CVE-2026-109618 and CVE-2026-109619, each scored 9.2 out of 10 on the CVSS v4 scale, by Sansec’s October 21 write-up. Both are memory bugs in PHP itself, not in any plugin or theme. One lets out-of-memory handling leave half-built request data that PHP later treats as valid. The other lets state from one request survive into the next request handled by the same worker. Either can be turned into running an attacker’s code on the server, with no login and, in the worst configuration, before the website’s own code has run at all. PHP says the risk is highest for Apache with mod_php, and that PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are affected too. Sansec reports the bugs reach back to PHP 5.4 and demonstrated them against current WordPress, Drupal and Joomla.
The timeline is the part worth sitting with:
- October 17. Amazon’s threat intelligence team later reported the first exploitation attempt, four days before anything was public, from a commercial anonymization network (SecurityWeek, October 22).
- October 20. Technical details leaked ahead of the scheduled release (Sansec, October 21).
- October 21, 07:43 UTC. Cloudflare reported attacks across its network, about six hours before the fix existed.
- October 21, 14:00 UTC. PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 shipped. Cloudflare’s chief executive described thousands of attempts in the ten hours before the announcement, tens of thousands in the 45 minutes after, hundreds of thousands within two hours, and millions since (SecurityWeek, October 22).
- October 21 and 22. CISA and DFS issued their alerts. CISA said it had not itself observed exploitation at the time of publication.
So for most of a day, every unpatched PHP server on the internet was reachable by a published method, and the people probing for it had a head start.
Update, October 23
Two days after the emergency release, PHP published an informational advisory for a third issue, CVE-2026-115560, which it calls “an unlikely RCE vector.” It is the session-handling path that researchers had been demonstrating on X since Wednesday, and the advisory confirms both what they showed and how narrow it is. The issue needs “an unusual combination of configuration and application code”: the application has to set the session serializer to one format in its configuration, switch it to another at runtime before starting the session, and leave session upload progress enabled. PHP says the setup “is unlikely in practice,” is fixing it in the regular release cycle rather than as an emergency, and suggests setting session.upload_progress.enabled to 0 until then (PHP, October 23, 2026). No exploitation had been reported as of the same day (The Hacker News, October 23, 2026).
For a firm, that adds one line to the list below: ask the host whether session upload progress is turned off. The larger point does not change. The runtime behind the intake form has produced three CVEs in three days, and the next one will not wait for the firm to find out who patches it.
Why this is a law firm problem
PHP runs 69.3% of all websites whose server-side language is known, by W3Techs’ count on October 22, 2026. WordPress alone was under 40.1% of all websites on October 11. Nearly every law firm site built by an agency in the last fifteen years is a WordPress theme on a PHP server, and the intake form sits on that same server.
That is the exposure. A flaw of this kind does not deface the homepage. It gives someone a shell on the machine that receives the form, with whatever the form has received. The DFS alert exists because the regulator understands what sits behind a financial firm’s web forms. The same reasoning applies to a firm that takes injury and employment inquiries.
It is also a responsibility problem. In October we measured 25 plaintiff-firm homepages for the website scorecard. Three sent a Content Security Policy, the header that limits which scripts may run, and none of the three restricted scripts. We did not test PHP versions, so we cannot say how many of the 25 were exposed this week. What the scorecard did show is how rarely anyone at the firm is looking at the server at all. A patch like this one has to be applied by a named person, on a named day, and most firms could not tell you who that is.
What to do today, if your site runs on PHP
- Find out whether it does. If the site is WordPress, Drupal or Joomla, it does. If you are not sure, the agency or host can tell you in one sentence.
- Get the version number in writing. Ask the host or agency which PHP version the site is running now. The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. “We’ve handled it” is not an answer; a version number is.
- If the site is on PHP 8.1 or older, it has no patch. Patchstack’s advice is to contact the vendor for a backported fix. In practice that means the site needs to move to a supported version this week, not next quarter.
- Restart after the update. The fixed binary has to be the one serving requests. A patch that is installed but not running is the same as no patch.
- If it cannot be patched today, CISA’s advice is to take it offline or put a web application firewall in front of it until it can be. For a law firm that means a day without a web form, which is cheaper than the alternative.
- Ask for a check of what ran while it was exposed. CISA points at shell activity and unexpected downloads from PHP processes. Managed hosts can run this check; ask for it by name.
- Do not install a plugin that claims to fix it. The flaw is in PHP, not in the application. Patchstack warns against unofficial patches and workaround plugins.
If the answers come back quickly with version numbers and a restart time, the firm is in good hands. If they come back as reassurance, the firm has found out something useful about who is responsible for its server.
Why some sites had nothing to patch
The sites we build do not run PHP, or any server-side language, to serve a page. The pages are built in advance and served as files from Cloudflare’s edge. There is no PHP process waiting for a request, so there was nothing on Tuesday for this flaw to reach. The intake form submits to a small function written in JavaScript on Cloudflare, which checks the submission and hands it to the firm’s practice management system within a minute. The site we built and operate for a New York firm sat through the week unchanged, and the firm’s owner spent Tuesday on cases.
This is not the same as saying such a site has no risks. It has different ones, and we would rather name them than pretend. The function that receives the form can have bugs. The build depends on packages that are published by other people, and a bad package is the supply-chain version of this week. The DNS account, the deployment token and the practice management credentials are each a key that has to be kept. What a static site removes is a whole class of exposure: a general-purpose runtime, reachable by anyone, running on the same machine as the inquiries. The note on why we left WordPress covers the rest of the reasoning.
The question for a firm is not whether its website is perfectly safe. No website is. The question is how many things have to be patched by a named person on a Tuesday, and whether the firm knows that person’s name.
Next step
The diagnosis comes before the engagement.
If this describes your firm, request a private Architecture Review of your website, search, attribution, vendors, and intake system. One document, written for the partner who signs.