A flaw in PHP can't be fixed with a WordPress update. It sits one layer lower, in the software on the server, so whoever manages that server has to act: for most SMEs the hosting provider, not the site owner. That is the core of PHP2Shell, the PHP flaw for which Smartschool, VDAB, FPS Finance and a number of hospitals in Belgium took their websites offline as a precaution, VRT NWS reported.
What is PHP2Shell?
PHP2Shell is the nickname for two critical vulnerabilities in PHP itself, CVE-2026-109618 and CVE-2026-109619, which allow someone to run their own code on a web server running PHP without logging in. On 21 October 2026, the PHP project released urgent updates for them and gave both vulnerabilities in its advance announcement a severity score of 9.2 out of 10.
PHP is the programming language that builds a page on the server as soon as someone requests it. W3Techs reports that 69.3 percent of the websites whose server-side language is known run on PHP (measured on 22 October 2026). That includes WordPress, which accounts for 39.6 percent of all websites and, as its own system requirements state, depends on PHP.
In plain language: with the first flaw, PHP runs out of memory in the middle of a request and then treats half-finished data as valid. With the second, leftovers of a previous request linger, which a following request then picks up again. Both can end with an outsider's code running on your server. In the most dangerous setup, Apache with mod_php, a request without a login can already start the attack, according to the PHP team, before your website software does anything.
From leaked number to fix
Normally, a flaw like this stays secret until the fix is ready. Linux distributions get the fix in advance, so their users can update straight away. That went wrong this time, according to the PHP Foundation itself.
Around 17:00 Belgian time on 20 October, the CVE numbers appeared online, still without technical details. At 21:30, PHP moved the release forward from 22 to 21 October. That same evening, Calif, one of the companies that reported the flaws, accidentally put a video of a working attack online. On 21 October at 09:41, Chainguard published the fix, more than six hours before the agreed time; according to the PHP Foundation, attackers could therefore already study it. The updates themselves came out around 15:30, according to CERT-EU.
Who saw what exploitation, and when
One distinction first: an attempt is not a break-in. Many reports come from honeypots, decoy servers that attract attackers. An attempt on one proves that someone is trying, not that it succeeds on real sites.
Amazon saw a first attempt on such a honeypot on 17 October, without knowing how the attacker had already obtained information by then. On 21 October between 04:00 and 10:00, more followed, from several attackers; according to Amazon, it is unclear whether they would have succeeded on real systems. The Dutch NCSC wrote on 21 October, before the patch, that public proof-of-concept code existed, but it saw no active exploitation itself. Cloudflare, with filtering rules active from 05:02, did see attack traffic aimed at its customers.
At the time of the release, the PHP team found that none of the public proofs of concept worked. That doesn't rule out working attacks: Calif showed one in its video, and watchTowr says it has reproduced both vulnerabilities itself. CISA, the US cybersecurity agency, had not yet observed any exploitation at the time of its warning on 21 October; CERT-EU rated the likelihood of it higher because proofs of concept were circulating. Meanwhile, watchTowr is seeing active attack attempts on both vulnerabilities and Amazon speaks of widespread exploitation.
My reading: that attempts are being made is certain; I found no publicly confirmed successful break-in via PHP2Shell in these sources. For an SME with a PHP site, that means two things. There is no point waiting until victims appear in the news: Amazon recommends looking for traces from 17 October, not from the disclosure. And panic doesn't help either, because the only complete fix is ready: update PHP.
What governments and WordPress.org advise
They agree on one thing: update PHP now. If that isn't possible straight away, their advice differs. CISA and the Dutch NCSC are the strictest. Anyone who can't update right away or is still on 8.1 or older must, according to CISA, take their PHP systems offline until they are updated. The NCSC writes: "Until systems have been updated, it is necessary to keep them offline as a precaution." The UK NCSC first refers to PHP's temporary measures and only advises considering taking systems offline if those fail. CERT-EU asks organisations to consider shielding internet-facing applications.
Do you need to update WordPress for this flaw? No. WordPress.org wrote on 21 October that no WordPress update is needed or planned for these vulnerabilities, because they are in PHP, and refers you to your web host for the PHP update. Updating a plugin or theme doesn't fix it either, Cloudflare stresses.
Old PHP versions are the hardest case
Which PHP versions are safe? You are protected against PHP2Shell with the patched version of your own series or a higher number within that series: 8.5.12, 8.4.27, 8.3.36 or 8.2.35. So if you run 8.3.20, you are not covered, even though that number is higher than 8.2.35, unless your provider built the fix into that version themselves (see below). PHP 8.1 and older get no new release from the PHP project, at most a minimal source code patch (for 7.4, 8.0 and 8.1) for those who compile PHP themselves. And after 31 December 2026, 8.2 will receive no more security fixes.
That affects many sites: according to W3Techs, more than a third of the websites that use PHP still run version 7 or 5 (measured on 22 October 2026). An old version number is not automatically vulnerable, though: some Linux distributions, LTS providers and hosts also build the fix into older versions; php.net refers you to your provider for this. Only whoever manages your PHP knows whether that has happened in your case.
Who updates PHP for you?
More important than all the technical details is that one question. If nobody in your business knows the answer, that is the real problem, regardless of this flaw. Most of the sites we build are static and run on Netlify without PHP on the web server; you can read why we choose that in our post on maintenance.
If you do have a PHP or WordPress site: our step-by-step plan shows how to check whether your site has been affected, our checklist covers what to put in place structurally. If you'd like us to take a look with you, that's possible via hosting and maintenance.